<?php
/**
* The template for displaying date archive pages.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package GridMini WordPress Theme
* @copyright Copyright (C) 2025 ThemesDNA
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
* @author ThemesDNA <themesdna@gmail.com>
*/

get_header(); ?>

<div class="gridmini-main-wrapper gridmini-clearfix" id="gridmini-main-wrapper" itemscope="itemscope" itemtype="http://schema.org/Blog" role="main">
<div class="theiaStickySidebar">
<div class="gridmini-main-wrapper-inside gridmini-clearfix">

<?php gridmini_before_main_content(); ?>

<div class="gridmini-posts-wrapper" id="gridmini-posts-wrapper">

<?php if ( !(gridmini_get_option('hide_date_title')) ) { ?>
<div class="gridmini-page-header-outside">
<header class="gridmini-page-header">
<div class="gridmini-page-header-inside">
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
</div>
</header>
</div>
<?php } ?>

<div class="gridmini-posts-content">

<?php if (have_posts()) : ?>

    <div class="gridmini-posts gridmini-posts-grid">
    <?php while (have_posts()) : the_post(); ?>

        <?php get_template_part( 'template-parts/content-grid' ); ?>

    <?php endwhile; ?>
    </div>
    <div class="clear"></div>

    <?php gridmini_posts_navigation(); ?>

<?php else : ?>

  <?php get_template_part( 'template-parts/content', 'none' ); ?>

<?php endif; ?>

</div>

</div><!--/#gridmini-posts-wrapper -->

<?php gridmini_after_main_content(); ?>

</div>
</div>
</div><!-- /#gridmini-main-wrapper -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>