<?php
/**
 * Template part for displaying page content in page.php
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package IS-Medify
 * 
 * @since 1.0.0
 * 
*/
?>
<div class="row post-area">
	<div <?php post_class();?>>
		<?php if( has_post_thumbnail() ) : ?>
			<div class="col-md-12 no-pad">
				<div class="img-thumbnail gallery">
					<?php $data= array('class' =>'img-responsive'); 
					the_post_thumbnail('is-medify-post-thumb', $data); ?>
					<div class="overlay">
						<div class="overlay-icon">
							<a rel="prettyPhoto[post]" href="<?php echo esc_url(wp_get_attachment_url(get_post_thumbnail_id())); ?>"><i class="fa fa-search"></i></a>
						<?php if(!is_page() && !is_single() ) { ?>
						<a href="<?php the_permalink(); ?>"><span class="fa fa-chain"></span></a>
						<?php } ?>
						</div>
					</div>
				</div>
			</div>
		<?php endif; ?>
			<div class="col-md-12 border">
				<div class="post_title">
				    <?php the_title( '<h3 class="entry-title">', '</h3>' ); ?>
				</div>
				<?php if(get_the_category_list() != '') { ?>
				    <div class="category"><b><?php esc_html_e('Categories :','is-medify'); ?></b><?php the_category(' , '); ?></div>
				<?php } ?>
				<div class="post_content">
				    <?php the_content(); ?>
				</div>
				<?php $defaults = array(
					'before'           => '<p>' . __( 'Pages:','is-medify' ),
					'after'            => '</p>',
					'link_before'      => '',
					'link_after'       => '',
					'next_or_number'   => 'number',
					'separator'        => ' ',
					'nextpagelink'     => __( 'Next page','is-medify'),
					'previouspagelink' => __( 'Previous page','is-medify' ),
					'pagelink'         => '%',
					'echo'             => 1
					);
				wp_link_pages( $defaults );	?>
			</div>
		<?php if ( get_edit_post_link() ) : ?>
		<footer class="entry-footer">
			<?php
			edit_post_link(
				sprintf(
					wp_kses(
						/* translators: %s: Name of current post. Only visible to screen readers */
						__( 'Edit Page <span class="screen-reader-text">%s</span>', 'is-medify' ),
						array(
							'span' => array(
								'class' => array(),
							),
						)
					),
					wp_kses_post( get_the_title() )
				),
				'<span class="edit-link">',
				'</span>'
			);
			?>
		</footer><!-- .entry-footer -->
	    <?php endif; ?>
	</div>
</div>
