<?php
/**
 * Displaying all pages.
 * @package Multipurpose Corporate
*/

get_header(); ?>

<?php do_action( 'multipurpose_corporate_page_header' ); ?>

<main id="main" role="main" class="main-content">
    <div class="main-content container">
        <div class="wrapper">
            <?php while ( have_posts() ) : the_post(); ?>
                <?php the_post_thumbnail(); ?>
                <h1><?php the_title(); ?></h1>
                <div class="entry-content"><?php the_content();?></div>
                <?php
                wp_link_pages( array(
                    'before' => '<div class="page-links">' . __( 'Pages:', 'multipurpose-corporate' ),
                    'after'  => '</div>',
                ) );
                
                    //If comments are open or we have at least one comment, load up the comment template
                    if ( comments_open() || '0' != get_comments_number() )
                        comments_template();
                ?>
            <?php endwhile; // end of the loop. ?>
            <div class="clear"></div>    
        </div>
    </div>
</main>    

<?php do_action( 'multipurpose_corporate_page_footer' ); ?>

<?php get_footer(); ?>