39 lines
935 B
PHP
39 lines
935 B
PHP
<?php
|
|
/**
|
|
* آرشیو تاریخ / عمومی پستها
|
|
*
|
|
* @package Hesabix2
|
|
*/
|
|
|
|
get_header();
|
|
|
|
$paged = max(1, (int) get_query_var('paged'));
|
|
$layout_class = hesabix2_blog_layout_class();
|
|
|
|
global $wp_query;
|
|
$title = wp_strip_all_tags(get_the_archive_title());
|
|
$desc = get_the_archive_description();
|
|
?>
|
|
|
|
<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();
|