File "page.php"
Full Path: /home/u534186629/domains/tuitionalai.com/public_html/wp-content/themes/page.php
File size: 1.96 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* the template for displaying all pages.
*/
get_header();
get_template_part( 'template-parts/banner/content', 'banner-page' );
$blog_sidebar = axtra_option('blog_sidebar','left-sidebar');
$blog_sidebar = $blog_sidebar == ''? 'left-sidebar' : $blog_sidebar;
$sidebar_cls[$blog_sidebar] = is_active_sidebar('sidebar-1') ? $blog_sidebar : 'no-sidebar';
$disable_banner = axtra_meta_option( get_the_ID(), 'disable_banner' );
$container_cls = 'pt-150 pb-150';
if($disable_banner){
$container_cls = '';
}
?>
<main id="content-area">
<div class="default-blog__area <?php echo esc_attr($container_cls); ?>">
<div class="container">
<div class="default-blog__grid <?php echo esc_attr( implode(' ', $sidebar_cls) ); ?>">
<?php
//Sidebar
if($blog_sidebar == 'left-sidebar'){
get_sidebar();
}
?>
<div class="default-blog__item-content default-blog__details-content axtra--page-details">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/blog/content', 'page' ); ?>
<?php
if ( is_user_logged_in() ) {
echo '<p>';
edit_post_link(
esc_html__( 'Edit', 'axtra' ),
'<span class="meta-edit">',
'</span>'
);
echo '</p>';
}
?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'template-parts/blog/content', 'none' ); ?>
<?php endif; ?>
<!-- Comment -->
<?php comments_template(); ?>
</div>
<?php
// Sidebar
if($blog_sidebar == 'right-sidebar'){
get_sidebar();
}
?>
</div><!--grid -->
</div><!-- container -->
</main><!-- #main-content -->
<?php get_footer(); ?>