File: /home/carrerup/.trash/techland/page.php
<?php
/**
* default page template
*/
get_header();
// get metabox page layout option
$techland_mb_page_layout = rwmb_meta( 'techland_page_layout' );
$techland_page_layout = $techland_mb_page_layout != '' ? $techland_mb_page_layout : 'full-width';
// if empty metabox option set metabox page layout
$techland_page_layout_ctrl = ( $techland_page_layout == 'left-sidebar' OR $techland_page_layout == 'right-sidebar' ) ? 'col-12 col-lg-8 col-xl-9 pl-lg-10 pr-lg-10 nt-has-sidebar' : 'col-12 col-lg-10 nt-no-sidebar' ; // sidebar setting
$techland_justify = 'full-width' == $techland_page_layout ? ' justify-content-center' : '';
$techland_page_container_type = rwmb_meta( 'techland_page_container_type' );
$techland_page_container_type = $techland_page_container_type != '' ? $techland_page_container_type : 'container';
do_action( "techland_before_page" );
?>
<div id="nt-page-container" class="nt-page-layout">
<!-- Hero section - this function using on all inner pages -->
<?php techland_hero_section(); ?>
<div id="nt-page" class="nt-theme-inner-container section">
<div class="<?php echo esc_attr($techland_page_container_type); ?>">
<div class="row<?php echo esc_attr($techland_justify); ?>">
<!-- Left sidebar -->
<?php
if ( $techland_page_layout =='left-sidebar' ) {
get_sidebar();
}
?>
<!-- Sidebar control column -->
<div class="<?php echo esc_attr( $techland_page_layout_ctrl ) ?>">
<?php
while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="nt-theme-content nt-clearfix content-container">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
esc_html__( 'Continue reading %s', 'techland' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) );
/* theme page link pagination */
techland_wp_link_pages();
?>
</div><!-- End .nt-theme-content -->
</div><!--End article -->
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
// End the loop.
endwhile;
?>
</div>
<!-- Right sidebar -->
<?php
if ( $techland_page_layout =='right-sidebar' ) {
get_sidebar();
}
?>
</div><!--End row -->
</div><!--End container -->
</div><!--End #blog -->
</div><!--End page general div -->
<?php
// you can use this action for add any content after container element
do_action( "techland_after_page" );
get_footer();
?>