balmet.com

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

page.php (1609B)


      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 welbim
     13  */
     14 get_header();
     15 
     16 $page_single_col               = '12';
     17 $welbim_theme_metabox_page_col = get_post_meta( get_the_ID(), 'welbim_core_page_col', true );
     18 if ( $welbim_theme_metabox_page_col == 'on' ) :
     19 	$page_single_col    = '8';
     20 	$page_extra_class   = 'service-details';
     21 	$page_extra_class_2 = 'service-details-content';
     22 else :
     23 	$page_extra_class   = null;
     24 	$page_extra_class_2 = null;
     25 endif;
     26 ?>
     27 <section class="blog-details sidebar-page-container sec-pad-2 <?php echo esc_attr( $page_extra_class ); ?>">
     28 	<div class="auto-container">
     29 		<div class="row clearfix">
     30 
     31 			<?php
     32 			if ( $welbim_theme_metabox_page_col == 'on' ) :
     33 				do_action( 'page_advance_content_left' );
     34 			endif;
     35 			?>
     36 			<div class="col-lg-<?php echo esc_attr( $page_single_col ); ?> col-md-12 col-sm-12 content-side">
     37 				<div class="blog-standard-content blog-details-content <?php echo esc_attr( $page_extra_class_2 ); ?>">
     38 					<?php
     39 					while ( have_posts() ) :
     40 						the_post();
     41 						get_template_part( 'template-parts/content', 'page' );
     42 					endwhile; // End of the loop.
     43 					?>
     44 				</div>
     45 			</div>
     46 
     47 			<?php
     48 			if ( $welbim_theme_metabox_page_col == 'on' ) :
     49 				do_action( 'page_advance_content_right' );
     50 			endif;
     51 			?>
     52 
     53 		</div>
     54 	</div>
     55 </section>
     56 <?php
     57 get_footer();