/home/awneajlw/public_html/decenttraders.online/wp-content/themes/diziti/author.php
<?php
/**
 * Blog Main File.
 *
 * @package DIZITI
 * @author  Codify Theme
 * @version 1.0
 */

get_header();
$author_id = get_queried_object_id();
global $wp_query;
$data  = \DIZITI\Includes\Classes\Common::instance()->data( 'author' )->get();
$layout = $data->get( 'layout' );
$sidebar = $data->get( 'sidebar' );
$layout = ( $layout ) ? $layout : 'right';
$sidebar = ( $sidebar ) ? $sidebar : 'default-sidebar';
if (is_active_sidebar( $sidebar )) {$layout = 'right';} else{$layout = 'full';}
$class = ( !$layout || $layout == 'full' ) ? 'col-12 col-lg-12' : 'col-12 col-lg-8';
if ( class_exists( '\Elementor\Plugin' ) AND $data->get( 'tpl-type' ) == 'e' AND $data->get( 'tpl-elementor' ) ) {
	echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $data->get( 'tpl-elementor' ) );
} else {
?>
	
<?php if ( $data->get( 'enable_banner' ) ) : ?>
	<?php do_action( 'diziti_banner', $data );?>
<?php else:?>
<!-- Breadcrumb Section Start-->
<div class="breadcrumb-wrapper bg-cover pt-60 wow fadeInUp" data-wow-delay=".6s"
	<?php if( $data->get( 'banner' ) ){?>style="background-image: url('<?php echo esc_url( $data->get( 'banner' ) ); ?>');"<?php };?>>
	<div class="container">
		<div class="page-heading">
			<h1 class="wow fadeInUp" data-wow-delay=".3s"><?php if( $data->get( 'title' ) ) echo wp_kses( $data->get( 'title' ), true ); else( the_title( ) ); ?></h1>
			<ul class="breadcrumb-items wow fadeInUp" data-wow-delay=".5s">
				<?php echo diziti_the_breadcrumb(); ?>
			</ul>
		</div>
	</div>
</div>
<!--Breadcrumb Section End-->

<?php endif;?>

<!-- sidebar-page-container -->
<section class="blog-section fix section-padding">
	<div class="blog-wrapper style1">
		<div class="container">
			<div class="row g-4">
			<?php if( $data->get( 'layout' ) == 'left' ): ?>
			<div class="col-12 col-lg-4">
                <div class="blog-main-sidebar">
                    <?php dynamic_sidebar( $sidebar ); ?>
                </div>
            </div>
			<?php endif; ?>
			<div class="content-side <?php echo esc_attr( $class ); ?>">
				<div class="blog-page-three__inner">
					<div class="thm-unit-test">
						
						<?php
							while ( have_posts() ) :
								the_post();
								diziti_template_load( 'templates/blog/blog.php', compact( 'data' ) );
							endwhile;
							wp_reset_postdata();
						?>
							
					</div>
					
					<!--Pagination-->
					<div class="page-nav-wrap pt-20 text-center wow fadeInUp" data-wow-delay=".4s">
						<?php diziti_the_pagination( $wp_query->max_num_pages );?>
					</div>
				</div>
			</div>
			<?php if( $data->get( 'layout' ) == 'right' ): ?>
			<div class="col-12 col-lg-4">
                <div class="blog-main-sidebar">
                    <?php dynamic_sidebar( $sidebar ); ?>
                </div>
            </div>
			<?php endif; ?>
			</div>
		</div>
	</div>
</section> 
<!--End blog area-->
	<?php
}
get_footer();