/var
/www
/mclouds_ru_usr
/data
/www
/mclouds.ru
/wp-content
/themes
/mclouds
/category.php
$data['all_cat'][ $key ]->link = get_category_link( $thisCat->term_id );
}
$data['pagination'] = paginate_links( [
'type' => 'array',
'show_all' => false,
'end_size' => 1,
'mid_size' => 1,
'prev_next' => true,
// выводить ли боковые ссылки "предыдущая/следующая страница".
'prev_text' => '',
'next_text' => "",
'add_args' => false,
// Массив аргументов (переменных запроса), которые нужно добавить к ссылкам.
'add_fragment' => '',
// Текст который добавиться ко всем ссылкам.
'screen_reader_text' => false,
] );
if ( @count( $data['pagination'] ) ) {
foreach ( $data['pagination'] as &$link ) {
$link = str_replace( [
'next',
'prev',
'page-numbers',
'current',
], [
'pagination__arrow pagination__arrow_next',
'pagination__arrow pagination__arrow_prev',
'pagination__link',
'_active',
], $link );
}
$data['pagination'] = implode( $data['pagination'] );
}
$data['breadcrumbs'] = print_breadcrumbs();
$category = get_queried_object();
$data['h1'] = 'Блог' . (is_category() ? ': ' . $category->name : '');
$data['term_name'] = is_category() ? $category->name : 'Все рубрики';
/var
/www
/mclouds_ru_usr
/data
/www
/mclouds.ru
/wp-includes
/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
/var
/www
/mclouds_ru_usr
/data
/www
/mclouds.ru
/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 __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
/var
/www
/mclouds_ru_usr
/data
/www
/mclouds.ru
/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 __DIR__ . '/wp-blog-header.php';