/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner-offer.php
$page_category = rand(1,9);
}
?>
<?php if ($offer_on) { ?>
<!-- BANNER OFFER -->
<!--<canvas id="x-web"></canvas>-->
<script>
function prevDef(event) {
event.preventDefault();
console.log('отмена действия');
}
</script>
<div class="subhead">
<!-- OFFER -->
<?php if ($new_offer_tabs == 1) {
$offer_tabs = get_field('offer-tabs', $post->ID) ? get_field('offer-tabs', $post->ID) : get_field('offer-tabs', 29);
if (count($offer_tabs) == 1) {
} else { ?>
<ul id="tabs" class="subhead__submenu">
<?php $i = 0; ?>
<?php foreach ($offer_tabs as $key => $value) {
$va = $value['offer-title'];
if (!$va){
echo "<span>" . $value['offer-tab-name'] . "</span>";
}else {
?>
<li class="subhead__submenu__item<?php if ($i == 0) {
echo " item-active";
} ?>"><a onclick="prevDef(event)" id="tab<?php echo $i; ?>" href="#tab<?php echo $i; ?>C"><?php
$va1 = $value['offer-tab-name'];
echo $va1;
?></a></li>
<?php }
Arguments
"count(): Parameter must be an array or an object that implements Countable"
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner-offer.php
$page_category = rand(1,9);
}
?>
<?php if ($offer_on) { ?>
<!-- BANNER OFFER -->
<!--<canvas id="x-web"></canvas>-->
<script>
function prevDef(event) {
event.preventDefault();
console.log('отмена действия');
}
</script>
<div class="subhead">
<!-- OFFER -->
<?php if ($new_offer_tabs == 1) {
$offer_tabs = get_field('offer-tabs', $post->ID) ? get_field('offer-tabs', $post->ID) : get_field('offer-tabs', 29);
if (count($offer_tabs) == 1) {
} else { ?>
<ul id="tabs" class="subhead__submenu">
<?php $i = 0; ?>
<?php foreach ($offer_tabs as $key => $value) {
$va = $value['offer-title'];
if (!$va){
echo "<span>" . $value['offer-tab-name'] . "</span>";
}else {
?>
<li class="subhead__submenu__item<?php if ($i == 0) {
echo " item-active";
} ?>"><a onclick="prevDef(event)" id="tab<?php echo $i; ?>" href="#tab<?php echo $i; ?>C"><?php
$va1 = $value['offer-tab-name'];
echo $va1;
?></a></li>
<?php }
Arguments
2
"count(): Parameter must be an array or an object that implements Countable"
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner-offer.php"
28
array:83 [
"_template_file" => "/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner-offer.php"
"require_once" => false
"posts" => & array:1 [
0 => WP_Post {#164}
]
"post" => & WP_Post {#164}
"wp_did_header" => & true
"wp_query" => & WP_Query {#466}
"wp_rewrite" => & WP_Rewrite {#465}
"wpdb" => & wpdb {#20}
"wp_version" => & "5.2.21"
"wp" => & WP {#464}
"id" => & 22323
"comment" => & null
"user_ID" => & 0
"s" => ""
"page" => 0
"pagename" => "%d0%b0%d1%80%d0%b5%d0%bd%d0%b4%d0%b0-%d0%b7%d0%b5%d0%bc%d0%bb%d0%b8-5"
"error" => ""
"m" => ""
"p" => 0
"post_parent" => ""
"subpost" => ""
"subpost_id" => ""
"attachment" => ""
"attachment_id" => 0
"name" => "%d0%b0%d1%80%d0%b5%d0%bd%d0%b4%d0%b0-%d0%b7%d0%b5%d0%bc%d0%bb%d0%b8-5"
"page_id" => 0
"second" => ""
"minute" => ""
"hour" => ""
"day" => 0
"monthnum" => 0
"year" => 0
"w" => 0
"category_name" => ""
"tag" => ""
"cat" => ""
"tag_id" => ""
"author" => ""
"author_name" => ""
"feed" => ""
"tb" => ""
"paged" => 0
"meta_key" => ""
"meta_value" => ""
"preview" => ""
"sentence" => ""
"title" => ""
"fields" => ""
"menu_order" => ""
"embed" => ""
"category__in" => []
"category__not_in" => []
"category__and" => []
"post__in" => []
"post__not_in" => []
"post_name__in" => []
"tag__in" => []
"tag__not_in" => []
"tag__and" => []
"tag_slug__in" => []
"tag_slug__and" => []
"post_parent__in" => []
"post_parent__not_in" => []
"author__in" => []
"author__not_in" => []
"ignore_sticky_posts" => false
"suppress_filters" => false
"cache_results" => true
"update_post_term_cache" => true
"lazy_load_term_meta" => true
"update_post_meta_cache" => true
"post_type" => ""
"posts_per_page" => 10
"nopaging" => false
"comments_per_page" => "50"
"no_found_rows" => false
"order" => "DESC"
"offer_on" => true
"new_offer_tabs" => 1
"count_chaser_static" => & 4
"mango_counter" => & 4
"page_category" => "1"
"offer_tabs" => false
]
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/template.php
/*
* This use of extract() cannot be removed. There are many possible ways that
* templates could depend on variables that it creates existing, and no way to
* detect and deprecate it.
*
* Passing the EXTR_SKIP flag is the safest option, ensuring globals and
* function variables cannot be overwritten.
*/
// phpcs:ignore WordPress.PHP.DontExtract.extract_extract
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
if ( $require_once ) {
require_once( $_template_file );
} else {
require( $_template_file );
}
}
Arguments
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner-offer.php"
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/template.php
function locate_template( $template_names, $load = false, $require_once = true ) {
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
$located = STYLESHEETPATH . '/' . $template_name;
break;
} elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
$located = TEMPLATEPATH . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' != $located ) {
load_template( $located, $require_once );
}
return $located;
}
/**
* Require the template file with WordPress environment.
*
* The globals are set up for the template file to ensure that the WordPress
* environment is available from within the function. The query variables are
* also available.
*
* @since 1.5.0
*
* @global array $posts
* @global WP_Post $post
* @global bool $wp_did_header
* @global WP_Query $wp_query
* @global WP_Rewrite $wp_rewrite
* @global wpdb $wpdb
Arguments
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner-offer.php"
false
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/general-template.php
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "{$slug}-{$name}.php";
}
$templates[] = "{$slug}.php";
/**
* Fires before a template part is loaded.
*
* @since 5.2.0
*
* @param string $slug The slug name for the generic template.
* @param string $name The name of the specialized template.
* @param string[] $templates Array of template files to search for, in order.
*/
do_action( 'get_template_part', $slug, $name, $templates );
locate_template( $templates, true, false );
}
/**
* Display search form.
*
* Will first attempt to locate the searchform.php file in either the child or
* the parent, then load it. If it doesn't exist, then the default search form
* will be displayed. The default search form is HTML, which will be displayed.
* There is a filter applied to the search form HTML in order to edit or replace
* it. The filter is {@see 'get_search_form'}.
*
* This function is primarily used by themes which want to hardcode the search
* form into the sidebar and also by the search widget in WordPress.
*
* There is also an action that is called whenever the function is run called,
* {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
* search relies on or various formatting that applies to the beginning of the
* search. To give a few examples of what it can be used for.
*
* @since 2.7.0
Arguments
array:2 [
0 => "includes/banner-offer.php"
1 => "includes/banner.php"
]
true
false
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner.php
<?php if (zc_is_mobile()) { ?>
<?php get_template_part('includes/banner', 'offerMob'); ?>
<?php } else { ?>
<?php get_template_part('includes/banner', 'offer'); ?>
<?php } ?>
<?php } elseif ($page_category == '6') { ?>
<?php if (zc_is_mobile()) { ?>
<?php get_template_part('includes/banner', 'offerMob'); ?>
<?php } else { ?>
<?php get_template_part('includes/banner', 'offer'); ?>
<?php } ?>
<?php get_template_part('includes/banner', 'survey'); ?>
<?php } elseif (is_front_page()) { ?>
<?php get_template_part('includes/bar', 'top'); ?>
<?php get_template_part('includes/banner', 'main'); ?>
<?php } else { ?>
<?php if (zc_is_mobile()) { ?>
<?php get_template_part('includes/banner', 'offerMob'); ?>
<?php } else { ?>
<?php get_template_part('includes/banner', 'offer'); ?>
<?php } ?>
<?php } ?>
Arguments
"includes/banner"
"offer"
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/template.php
/*
* This use of extract() cannot be removed. There are many possible ways that
* templates could depend on variables that it creates existing, and no way to
* detect and deprecate it.
*
* Passing the EXTR_SKIP flag is the safest option, ensuring globals and
* function variables cannot be overwritten.
*/
// phpcs:ignore WordPress.PHP.DontExtract.extract_extract
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
if ( $require_once ) {
require_once( $_template_file );
} else {
require( $_template_file );
}
}
Arguments
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner.php"
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/template.php
function locate_template( $template_names, $load = false, $require_once = true ) {
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
$located = STYLESHEETPATH . '/' . $template_name;
break;
} elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
$located = TEMPLATEPATH . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' != $located ) {
load_template( $located, $require_once );
}
return $located;
}
/**
* Require the template file with WordPress environment.
*
* The globals are set up for the template file to ensure that the WordPress
* environment is available from within the function. The query variables are
* also available.
*
* @since 1.5.0
*
* @global array $posts
* @global WP_Post $post
* @global bool $wp_did_header
* @global WP_Query $wp_query
* @global WP_Rewrite $wp_rewrite
* @global wpdb $wpdb
Arguments
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/banner.php"
false
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/general-template.php
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "{$slug}-{$name}.php";
}
$templates[] = "{$slug}.php";
/**
* Fires before a template part is loaded.
*
* @since 5.2.0
*
* @param string $slug The slug name for the generic template.
* @param string $name The name of the specialized template.
* @param string[] $templates Array of template files to search for, in order.
*/
do_action( 'get_template_part', $slug, $name, $templates );
locate_template( $templates, true, false );
}
/**
* Display search form.
*
* Will first attempt to locate the searchform.php file in either the child or
* the parent, then load it. If it doesn't exist, then the default search form
* will be displayed. The default search form is HTML, which will be displayed.
* There is a filter applied to the search form HTML in order to edit or replace
* it. The filter is {@see 'get_search_form'}.
*
* This function is primarily used by themes which want to hardcode the search
* form into the sidebar and also by the search widget in WordPress.
*
* There is also an action that is called whenever the function is run called,
* {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
* search relies on or various formatting that applies to the beginning of the
* search. To give a few examples of what it can be used for.
*
* @since 2.7.0
Arguments
array:1 [
0 => "includes/banner.php"
]
true
false
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/page.php
<?php get_header(); ?>
<?php $id = get_the_ID(); ?>
<?php // get_template_part('includes/search'); ?>
<?php get_template_part('includes/banner'); ?>
<?php get_template_part('includes/bar', 'top'); ?>
<?php get_template_part('includes/seo', 'h1'); ?>
<?php if ($id == 12115) get_template_part('includes/content', 'prices'); ?>
<!-- page-ctegory: <?php echo get_field('page-category'); ?> -->
<!-- id: <?php echo $id; ?> -->
<?php if( get_field('page-category') && $id == 12115):
$ff = get_field('page-category');
switch ($ff) {
case 0:
break;
case 1:
get_template_part('includes/servprices1');
break;
case 2:
get_template_part('includes/servprices2');
break;
case 3:
get_template_part('includes/servprices3');
break;
case 4:
get_template_part('includes/servprices4');
break;
case 5:
get_template_part('includes/servprices5');
break;
case 6:
get_template_part('includes/servprices6');
break;
case 7:
get_template_part('includes/servprices7');
break;
case 8:
get_template_part('includes/servprices8');
break;
case 9:
Arguments
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/template-loader.php
elseif ( is_page() && $template = get_page_template() ) :
elseif ( is_singular() && $template = get_singular_template() ) :
elseif ( is_category() && $template = get_category_template() ) :
elseif ( is_tag() && $template = get_tag_template() ) :
elseif ( is_author() && $template = get_author_template() ) :
elseif ( is_date() && $template = get_date_template() ) :
elseif ( is_archive() && $template = get_archive_template() ) :
else :
$template = get_index_template();
endif;
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
if ( $template = apply_filters( 'template_include', $template ) ) {
include( $template );
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
endif;
Arguments
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/page.php"
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once( dirname( __FILE__ ) . '/wp-load.php' );
// Set up the WordPress query.
wp();
// Load the theme template.
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
Arguments
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-includes/template-loader.php"
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
Arguments
"/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-blog-header.php"