balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

archive.php (1689B)


      1 <?php
      2 
      3 /**
      4  * The main template file
      5  *
      6  * This is the most generic template file in a WordPress theme
      7  * and one of the two required files for a theme (the other being style.css).
      8  * It is used to display a page when nothing more specific matches a query.
      9  * E.g., it puts together the home page when no home.php file exists.
     10  *
     11  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
     12  *
     13  * @package welbim
     14  */
     15 
     16 get_header();
     17 
     18 
     19 if (is_active_sidebar('sidebar-1')) :
     20 	$blog_post_list_class = 'col-lg-8';
     21 else :
     22 	$blog_post_list_class = 'col-lg-12';
     23 endif;
     24 ?>
     25 
     26 <div class="sidebar-page-container">
     27 	<div class="auto-container">
     28 		<div class="row">
     29 			<div class="<?php echo esc_attr($blog_post_list_class); ?> col-md-12 col-sm-12 content-side">
     30 				<div class="blog-standard-content">
     31 					<?php
     32 					if (have_posts()) :
     33 						while (have_posts()) :
     34 							the_post();
     35 							get_template_part('template-parts/blog-layout/blog-standard-content');
     36 						endwhile;
     37 					else :
     38 						get_template_part('template-parts/content', 'none');
     39 					endif;
     40 					?>
     41 					<?php if (get_the_posts_pagination()) : ?>
     42 						<div class="pagination-wrapper">
     43 							<?php
     44 							the_posts_pagination(
     45 								array(
     46 									'mid_size'  => 2,
     47 									'prev_text' => '<i class="far fa-angle-left"></i>',
     48 									'next_text' => '<i class="far fa-angle-right"></i>',
     49 								)
     50 							);
     51 							?>
     52 						</div>
     53 					<?php endif; ?>
     54 				</div>
     55 			</div>
     56 			<?php if (is_active_sidebar('sidebar-1')) { ?>
     57 				<div class="col-lg-4">
     58 					<aside class="sidebar blog-sidebar">
     59 						<?php get_sidebar(); ?>
     60 					</aside>
     61 				</div>
     62 			<?php
     63 			}
     64 			?>
     65 		</div>
     66 	</div>
     67 </div>
     68 <?php
     69 get_footer();