balmet.com

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

page.php (2169B)


      1 <?php
      2 /**
      3  * The template for displaying all pages
      4  *
      5  * This is the template that displays all pages by default.
      6  * Please note that this is the WordPress construct of pages
      7  * and that other 'pages' on your WordPress site may use a
      8  * different template.
      9  *
     10  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
     11  *
     12  * @package Appside
     13  */
     14 
     15 get_header();
     16 
     17 $page_layout_meta = Appside_Group_Fields_Value::page_layout('appside');
     18 $page_container_meta = Appside_Group_Fields_Value::page_container('appside','container_options');
     19 $full_width_class = $page_layout_meta['content_column_class'] == 'col-lg-12' ? ' full-width-content-area ' : '';
     20 ?>
     21 <?php
     22 
     23 if ('blank' == $page_layout_meta['layout']):
     24 
     25 	while ( have_posts() ) :
     26 		the_post();
     27 
     28 		get_template_part( 'template-parts/content', 'page' );
     29 
     30 	endwhile; // End of the loop.
     31 
     32 else:
     33 	?>
     34     <div id="primary" class="content-area appside-page-content-area padding-120 page-content-wrap-<?php the_ID(); ?> <?php echo esc_attr($full_width_class);?>">
     35         <main id="main" class="site-main">
     36             <div class="<?php echo esc_attr($page_container_meta['page_container_class'])?>">
     37                 <div class="row">
     38                     <div class="<?php echo esc_attr($page_layout_meta['content_column_class']);?>">
     39                         <div class="page-content-inner-<?php the_ID(); ?>">
     40 							<?php
     41 							while ( have_posts() ) :
     42 								the_post();
     43 								get_template_part( 'template-parts/content', 'page' );
     44 
     45 								// If comments are open or we have at least one comment, load up the comment template.
     46 								if ( comments_open() || get_comments_number() ) :
     47 									comments_template();
     48 								endif;
     49 
     50 							endwhile; // End of the loop.
     51 							?>
     52                         </div>
     53                     </div>
     54 					<?php if ($page_layout_meta['sidebar_enable']): ?>
     55                         <div class="<?php echo esc_attr($page_layout_meta['sidebar_column_class']);?>">
     56 							<?php get_sidebar();?>
     57                         </div>
     58 					<?php endif; ?>
     59                 </div>
     60             </div>
     61         </main><!-- #main -->
     62     </div><!-- #primary -->
     63 <?php
     64 
     65 endif;
     66 get_footer();