<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Katerio
*/
get_header();
?>
<div id="primary" class="content-area">
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( th90_is_builder_page() ): ?>
<?php the_content(); ?>
<?php else: ?>
<div class="container">
<div class="section-inner">
<main id="main" class="site-main" role="main">
<div class="page-container">
<?php th90_single_featured_image(); ?>
<div class="page-content<?php echo esc_attr( ! th90_woo_check_pages() ? ' entry-content article-content' : '' ); ?>">
<?php
do_action( 'th90_above_content' );
the_content();
do_action( 'th90_below_content' );
?>
</div>
<div class="clearfix"></div>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title screen-reader-text">' . esc_html__( 'Pages:', 'katerio' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'katerio' ) . ' </span>%',
'separator' => '',
) );
?>
<?php if ( is_user_logged_in() ) : ?>
<div class="single-tags">
<div class="single-tags-inner">
<?php edit_post_link( esc_html__( 'Edit', 'katerio' ), '<div class="edit-link">', '</div>' ); ?>
</div>
</div>
<?php endif; ?>
<?php comments_template(); ?>
</div>
</main><!-- #main -->
<?php get_sidebar(); ?>
</div> <!-- .section-inner -->
</div> <!-- .container -->
<?php endif; ?>
<?php endwhile; ?>
</div><!-- #primary -->
<?php
get_footer();