????

Your IP : 18.227.46.202


Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/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 will use a different template.
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Templates
 */

// Get site header
get_header(); ?>

    <div id="content-wrap" class="container clr">

        <?php tb_hook_primary_before(); ?>

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

            <?php tb_hook_content_before(); ?>

            <div id="content" class="clr site-content">

                <?php tb_hook_content_top(); ?>

                <?php
                // Main page loop
                while ( have_posts() ) : the_post(); ?>

                    <article class="clr">

                        <?php
                        // Check if page should display featured image
                        if ( has_post_thumbnail() && tb_get_mod( 'page_featured_image' ) ) : ?>

                            <div id="page-featured-img" class="clr">

                                <?php
                                // Dislpay full featured image
                                tb_post_thumbnail( array(
                                    'size'  => 'full',
                                    'alt'   => tb_get_esc_title(),
                                ) ); ?>
                                
                            </div><!-- #page-featured-img -->

                        <?php endif; ?>

                        <div class="entry-content entry clr">

                            <?php
                            // Output page content
                            the_content(); ?>

                            <?php
                            // Output page pagination
                            wp_link_pages( array(
                                'before'        => '<div class="page-links clr">',
                                'after'         => '</div>',
                                'link_before'   => '<span>',
                                'link_after'    => '</span>',
                            ) ); ?>

                        </div><!-- .entry-content -->

                        <?php
                        // Get social sharing template part
                        get_template_part( 'partials/social', 'share' ); ?>

                    </article><!-- #post -->

                    <?php
                    // Check if comments are enabled for pages
                    if ( tb_get_mod( 'page_comments' ) ) : ?>
                    
                        <?php
                        // Display comments
                        comments_template(); ?>

                    <?php endif; ?>

                <?php
                // End main loop
                endwhile; ?>

                <?php tb_hook_content_bottom(); ?>

            </div><!-- #content -->

            <?php tb_hook_content_after(); ?>

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

        <?php tb_hook_primary_after(); ?>

    </div><!-- #content-wrap -->

<?php
// Get site footer
get_footer(); ?>