added .row div in each template added changing content classes function added custom template page added wp core styles added searchform template
28 lines
884 B
PHP
28 lines
884 B
PHP
<?php
|
|
/**
|
|
* Страница архивов записей (archive.php)
|
|
* @package WordPress
|
|
* @subpackage your-clean-template-3
|
|
*/
|
|
get_header(); ?>
|
|
<section>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="<?php content_class_by_sidebar(); ?>">
|
|
<h1><?php // заголовок архивов
|
|
if (is_day()) : printf('Daily Archives: %s', get_the_date());
|
|
elseif (is_month()) : printf('Monthly Archives: %s', get_the_date('F Y'));
|
|
elseif (is_year()) : printf('Yearly Archives: %s', get_the_date('Y'));
|
|
else : 'Archives';
|
|
endif; ?></h1>
|
|
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
|
<?php get_template_part('loop'); ?>
|
|
<?php endwhile;
|
|
else: echo '<p>Нет записей.</p>'; endif; ?>
|
|
<?php pagination(); ?>
|
|
</div>
|
|
<?php get_sidebar(); ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<?php get_footer(); ?>
|