Current File : /home/tekstore/public_html/wp-content/themes/kuteshop/page.php
<?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://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage KuteShop
 * @since 1.0
 * @version 1.0
 */

get_header();

$page_layout = kuteshop_page_layout();
$meta_class  = kuteshop_theme_option_meta( '_custom_page_side_options', null, 'page_extra_class' );
$page_title  = kuteshop_theme_option_meta( '_custom_page_side_options', null, 'page_title', 1 );
if ( class_exists( 'WooCommerce' ) ) {
    if ( is_checkout() || is_account_page() || is_cart() ) {
        $page_layout['layout'] = 'full';
    }
}
/* CLASS */
$main_class = array(
    "container",
    "site-content",
    "sidebar-{$page_layout['layout']}",
);
if ( !empty( $meta_class ) ) {
    $main_class[] = $meta_class;
}
?>

    <!-- .site-content-contain -->
    <div id="content" class="<?php echo implode( ' ', $main_class ); ?>">

        <?php
        kuteshop_breadcrumb();
        if ( $page_title == 1 ) kuteshop_page_title();
        ?>

        <div id="primary" class="content-area">

            <main id="main" class="site-main">

                <?php
                while ( have_posts() ) :
                    the_post();
                    ?>
                    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                        <div class="entry-content">
                            <?php
                            the_content();
                            wp_link_pages( array(
                                    'before'      => '<div class="post-pagination"><span class="title">' . esc_html__( 'Pages:', 'kuteshop' ) . '</span>',
                                    'after'       => '</div>',
                                    'link_before' => '<span>',
                                    'link_after'  => '</span>',
                                )
                            );
                            ?>
                        </div><!-- .entry-content -->
                    </article><!-- #post-## -->
                    <?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();
                    endif;
                endwhile; // End of the loop.
                ?>

            </main><!-- #main -->

        </div><!-- #primary -->

        <?php if ( $page_layout['layout'] != 'full' ) : ?>
            <aside id="secondary" class="widget-area <?php echo esc_attr( $page_layout['sidebar'] ); ?>"
                   role="complementary"
                   aria-label="<?php esc_attr_e( 'Page Sidebar', 'kuteshop' ); ?>">
                <?php dynamic_sidebar( $page_layout['sidebar'] ); ?>
            </aside><!-- #secondary -->
        <?php endif; ?>

    </div><!-- .site-content-contain -->

<?php
get_footer();