File: /home/kashmira/www/razitahir.com/wp-content/themes/upress/archive.php
<?php
/**
* The template for displaying archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package UrduPress
*/
get_header();
$archive_layout = get_theme_mod('archive_layout_setting', 'wide');
$found_posts = $GLOBALS['wp_query']->found_posts;
$translation = upress_translation();
?>
<div id="primary" class="content-area">
<?php if ( true == get_theme_mod( 'archive_layout_header_setting', true ) ) : ?>
<div class="archive-header">
<div class="archive-header-col">
<div class="archive-heading"><?php the_archive_title(); ?></div>
<div class="archive-info">
<p>
<span class="before-txt"><?php esc_html_e( $translation['archives']['posts_archive_before'], 'upaper' ); ?></span>
<span class="posts-count"><?php echo esc_attr($found_posts) ?></span>
<span class="after-txt"><?php esc_html_e( $translation['archives']['posts_archive_after'], 'upaper' ); ?></span>
</p>
</div>
</div>
</div>
<?php endif; ?>
<div class="arcchive-content-layout mt-10">
<?php if($archive_layout == 'left'): ?>
<div class="main-sidebar col-lg-5 col-md-5 col-sm-6" id="sidebar">
<?php get_sidebar() ?>
</div>
<?php endif; ?>
<div id="main" class="archive-main <?php echo ($archive_layout == 'wide' ? 'col-lg-16 col-md-16 col-sm-16 col-xs-16 pl-0 pr-0' : 'col-lg-11 col-md-11 col-sm-10 col-xs-16') ?>" role="main">
<div class="archive-posts-grid<?php echo ($archive_layout == 'wide' ? ' wide-layout' : '') ?>">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
get_template_part( 'template-parts/content', 'archive' );
?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>
</div>
<?php if ( function_exists( 'upress_page_navi' ) ) { ?>
<?php upress_page_navi(); ?>
<?php } else { ?>
<?php the_posts_navigation(); ?>
<?php } ?>
</div><!-- #main -->
<?php if($archive_layout == 'right'): ?>
<div class="main-sidebar col-lg-5 col-md-5 col-sm-6" id="sidebar">
<?php get_sidebar() ?>
</div>
<?php endif; ?>
</div>
</div><!-- #primary -->
<?php get_footer(); ?>