archive.php (1708B)
1 <?php 2 /** 3 * The template for displaying archive pages 4 * 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 6 * 7 * @package appside 8 */ 9 10 get_header(); 11 $page_layout_options = Appside_Group_Fields_Value::page_layout_options('archive'); 12 ?> 13 14 <div id="primary" class="content-area archive-page-content-area padding-120"> 15 <main id="main" class="site-main"> 16 <div class="container"> 17 <div class="row"> 18 <div class="<?php echo esc_attr($page_layout_options['content_column_class']);?>"> 19 <?php if ( have_posts() ) : ?> 20 21 <?php 22 /* Start the Loop */ 23 while ( have_posts() ) : 24 the_post(); 25 26 /* 27 * Include the Post-Type-specific template for the content. 28 * If you want to override this in a child theme, then include a file 29 * called content-___.php (where ___ is the Post Type name) and that will be used instead. 30 */ 31 get_template_part( 'template-parts/content', get_post_format() ); 32 33 endwhile; 34 ?> 35 <div class="blog-pagination"> 36 <?php Appside()->post_pagination();?> 37 </div> 38 39 <?php 40 else : 41 42 get_template_part( 'template-parts/content', 'none' ); 43 44 endif; 45 ?> 46 </div> 47 <?php if ($page_layout_options['sidebar_enable']):?> 48 <div class="<?php echo esc_attr($page_layout_options['sidebar_column_class']);?>"> 49 <?php get_sidebar();?> 50 </div> 51 <?php endif;?> 52 </div> 53 </div> 54 </main><!-- #main --> 55 </div><!-- #primary --> 56 57 <?php 58 59 get_footer();