HEX
Server: Apache
System: Linux r5.a1center.net 4.18.0-513.5.1.lve.el8.x86_64 #1 SMP Tue Nov 21 10:14:49 UTC 2023 x86_64
User: redpsiju (1623)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /home/redpsiju/files/wp-content/themes/bizworx/archive.php
<?php
/**
 * The template for displaying archive pages.
 *
 * @package Bizworx
 */

get_header();

$layout = bizworx_blog_layout();

?>

	<div id="primary" class="content-area <?php echo ( $layout == 'fullwidth' )  ? 'col-md-12 ' : 'col-md-9 '; echo esc_attr($layout); ?>">
		<main id="main" class="post-wrap" role="main">

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

			<header class="page-header">
				<?php
					the_archive_title( '<h3 class="archive-title">', '</h3>' );
					the_archive_description( '<div class="taxonomy-description">', '</div>' );
				?>
			</header><!-- .page-header -->

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

				<?php
						get_template_part( 'content', get_post_format() );
				?>

			<?php endwhile; ?>
			<?php
				wp_link_pages( array(
					'before' => '<div class="page-links">' . __( 'Pages:', 'bizworx' ),
					'after'  => '</div>',
				) );
			?>
			</div>
			
			<?php
				the_posts_pagination( array(
					'mid_size'  => 1,
				) );
			?>	

		<?php else : ?>

			<?php get_template_part( 'content', 'none' ); ?>

		<?php endif; ?>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php 
	if ( $layout == 'classic' ) :
	get_sidebar();
	endif;
?>
<?php get_footer(); ?>