<?php
/**
 * Class IS_Medify_Content_Page
 * 
 * @package IS-Medify
 * 
 * @since 1.0.0
 *  
*/
class IS_Medify_Content_Page {

	/**
	 * Class Construct Method.
	*/
	public function __construct() {
		$this->IS_Medify_Setup_Hook_Page();
	}

	/**
	 * IS_Medify_Setup_Hook_Page Function For Theme Page .
	*/
	public function IS_Medify_Setup_Hook_Page() {
		add_action( 'IS_Medify_Do_Function_Page', array( $this, 'IS_Medify_Page_Show_Content' ) );
	}

	/**
	 * IS-Medify Theme Page.
	*/
	public function IS_Medify_Page_Show_Content() { ?>
		<div class="container-fluid space" id="primary">
			<div class="container blogs">
			<div class="col-md-9 rightside">
				<?php
				while ( have_posts() ) :
					the_post();

					get_template_part( 'template-parts/content', 'page' );

					// 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.
				?>
			</div>
			<?php get_sidebar(); ?>
			</div>
		</div> <?php
	}
}
new IS_Medify_Content_Page;