balmet.com

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

index.php (1978B)


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