40 lines
978 B
PHP
40 lines
978 B
PHP
<?php
|
|
/**
|
|
* آرشیو برچسب وبلاگ
|
|
*
|
|
* @package Hesabix2
|
|
*/
|
|
|
|
get_header();
|
|
|
|
$term = get_queried_object();
|
|
$title = single_tag_title('', false);
|
|
$desc = $term instanceof WP_Term && $term->description ? $term->description : '';
|
|
$paged = max(1, (int) get_query_var('paged'));
|
|
$layout_class = hesabix2_blog_layout_class();
|
|
|
|
global $wp_query;
|
|
?>
|
|
|
|
<div class="<?php echo esc_attr($layout_class); ?>">
|
|
<main id="main-content" class="blog-archive layout-main min-h-screen bg-slate-50">
|
|
<?php hesabix2_render_blog_archive_hero($title, $desc); ?>
|
|
|
|
<?php
|
|
get_template_part('template-parts/blog/archive-body', null, array(
|
|
'blog_query' => $wp_query,
|
|
'search' => '',
|
|
'show_featured' => $paged < 2,
|
|
));
|
|
?>
|
|
</main>
|
|
|
|
<?php if (hesabix2_show_layout_sidebar()) : ?>
|
|
<aside class="layout-sidebar" role="complementary">
|
|
<?php dynamic_sidebar('sidebar-1'); ?>
|
|
</aside>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|