/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/page-blog-item.php
<?php
$category = get_the_category();
$name = $category[1]->cat_name;
?>
<?php $caty = get_the_category();
$catlenght = count($categories);
?>
<!-- <a href="<?php echo get_permalink(); ?>" class="page-blog-item">
<div class="item-title">
<?php the_title(); ?>
</div>
<div class="item-content">
<div class="item-col">
<div class="item-image">
<?php echo wp_get_attachment_image(get_post_thumbnail_id($post->ID), 'full'); ?>
<div class="blog-item-cat">
<?php echo $name; ?>
</div>
</div>
</div>
<div class="item-col">
<div class="item-content-title">
<?php the_title(); ?>
</div>
<div class="item-text">
<div class="item-text-content">
<div class="item-text-overlay"></div>
<?php the_excerpt(); ?>
</div>
<div class="item-text-read">Читать</div>
</div>
</div>
</div>
</a> -->
<article itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
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/page-blog-item.php
<?php
$category = get_the_category();
$name = $category[1]->cat_name;
?>
<?php $caty = get_the_category();
$catlenght = count($categories);
?>
<!-- <a href="<?php echo get_permalink(); ?>" class="page-blog-item">
<div class="item-title">
<?php the_title(); ?>
</div>
<div class="item-content">
<div class="item-col">
<div class="item-image">
<?php echo wp_get_attachment_image(get_post_thumbnail_id($post->ID), 'full'); ?>
<div class="blog-item-cat">
<?php echo $name; ?>
</div>
</div>
</div>
<div class="item-col">
<div class="item-content-title">
<?php the_title(); ?>
</div>
<div class="item-text">
<div class="item-text-content">
<div class="item-text-overlay"></div>
<?php the_excerpt(); ?>
</div>
<div class="item-text-read">Читать</div>
</div>
</div>
</div>
</a> -->
<article itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
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/page-blog-item.php"
7
array:79 [
"_template_file" => "/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/page-blog-item.php"
"require_once" => false
"posts" => & array:10 [
0 => WP_Post {#163}
1 => WP_Post {#160}
2 => WP_Post {#1243}
3 => WP_Post {#1244}
4 => WP_Post {#1245}
5 => WP_Post {#1246}
6 => WP_Post {#1247}
7 => WP_Post {#1248}
8 => WP_Post {#1249}
9 => WP_Post {#1638}
]
"post" => & WP_Post {#9681}
"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" => & 1211
"comment" => & null
"user_ID" => & 0
"s" => ""
"page" => 0
"pagename" => "блог"
"error" => ""
"m" => ""
"p" => 0
"post_parent" => ""
"subpost" => ""
"subpost_id" => ""
"attachment" => ""
"attachment_id" => 0
"name" => null
"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"
"category" => array:1 [
0 => WP_Term {#8596}
]
"caty" => array:1 [
0 => WP_Term {#8595}
]
]
/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/page-blog-item.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/page-blog-item.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/page-blog-item.php"
1 => "includes/page.php"
]
true
false
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/includes/page-blog.php
'post_status' => 'publish',
'cat' => $cat,
'orderby' => $orderby,
'order' => $order,
'paged' => $paged,
'posts_per_page' => 30,
);
$query = new WP_Query($args);
if ($query->have_posts()) {
?>
<script>
var url = '<?php echo site_url(); ?>/wp-admin/admin-ajax.php',
posts = '<?php echo serialize($query->query_vars); ?>',
current_page = '<?php echo $paged; ?>',
max_pages = '<?php echo $query->max_num_pages; ?>';
</script>
<?php
while ($query->have_posts()) {
$query->the_post();
get_template_part('includes/page', 'blog-item');
}
if ($query->max_num_pages > 1) {
?>
<div class="load-more"><a href="#">Загрузить еще</a></div>
<?php
}
} else {
echo 'В данной категории пока нет статей.';
}
wp_reset_postdata();
?>
</div>
</div>
</div>
</section>
<!-- <div class="page-blog-right">
<div class="page-blog-search">
<?php //get_template_part('includes/page', 'blog-search'); ?>
</div>
<div class="page-blog-categories">
Arguments
"includes/page"
"blog-item"
/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/page-blog.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/page-blog.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/page-blog.php"
1 => "includes/page.php"
]
true
false
/var/www/www-root/data/www/xn----7sbbf6ab7ab4ael4cr4b1dj.xn--p1ai/wp-content/themes/zem-pr/home.php
<?php get_header(); ?>
<?php get_template_part('includes/page', 'blog'); ?>
<?php get_template_part('includes/blog', 'widget'); ?>
<?php get_footer(); ?>
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/home.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"