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

get_header(); ?>

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

<?php gridflex_before_main_content(); ?>

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

<?php if ( !(gridflex_get_option('hide_author_title')) ) { ?>
<div class="gridflex-page-header-outside">
<header class="gridflex-page-header">
<div class="gridflex-page-header-inside">
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php if ( !(gridflex_get_option('hide_author_description')) ) { ?><?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?><?php } ?>
</div>
</header>
</div>
<?php } ?>

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

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

    <div class="gridflex-posts gridflex-posts-grid">
    <?php $gridflex_post_counter=1; while (have_posts()) : the_post(); ?>

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

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

    <?php gridflex_posts_navigation(); ?>

<?php else : ?>

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

<?php endif; ?>

</div>

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

<?php gridflex_after_main_content(); ?>

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

<?php get_sidebar(); ?>

<?php get_footer(); ?>