// post content
            the_content();
    }
    ?>

	<?php 
    wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'the7mk2'), 'after' => '</div>'));
    ?>

	<?php 
    $post_tags = '';
    $config = presscore_get_config();
    if ($config->get('post.meta.fields.tags')) {
        $post_tags = presscore_get_post_tags_html();
    }
    $share_buttons = presscore_display_share_buttons_for_post('post', array('echo' => false));
    if ($share_buttons || $post_tags) {
        printf('<div class="post-meta wf-mobile-collapsed">%s</div>', $post_tags . $share_buttons);
    }
    ?>

	<?php 
    // 'theme options' -> 'general' -> 'show author info on blog post pages'
    if ($config->get('post.author_block')) {
        presscore_display_post_author();
    }
    ?>

	<?php 
    presscore_display_related_posts();
    ?>
			<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>

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

					<?php 
            the_content();
            ?>

					<?php 
            presscore_display_share_buttons_for_post('page');
            ?>

					<?php 
            comments_template('', true);
            ?>

				<?php 
        }
        ?>

			<?php 
    } else {
        ?>

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

							<?php 
        $img_meta = wp_get_attachment_image_src($post->ID, 'full');
        $img_args = array('img_meta' => $img_meta, 'img_id' => $post->ID, 'custom' => 'data-dt-img-description="' . esc_attr(get_the_excerpt()) . '"', 'class' => 'alignnone rollover rollover-zoom dt-single-mfp-popup dt-mfp-item mfp-image', 'title' => get_the_title(), 'wrap' => '<a %HREF% %CLASS% %CUSTOM% %TITLE%><img %IMG_CLASS% %SRC% %ALT% %SIZE% /></a>');
        if (isset($img_meta[1]) && $img_meta[1] < 890) {
            $img_args['wrap'] = "\n" . '<img %IMG_CLASS% %SRC% %SIZE% %ALT%/>' . "\n";
            $img_args['class'] = '';
            $img_args['img_class'] = 'alignleft';
            $img_args['custom'] = '';
        }
        dt_get_thumb_img($img_args);
        the_content();
        presscore_display_share_buttons_for_post('photo');
        ?>

						</article>

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

					<?php 
    }
    ?>

				<?php 
}
?>
 /**
  * Display share buttons for page templates.
  *
  * @since 3.1.5
  */
 function presscore_share_buttons_for_page_action()
 {
     if (is_page()) {
         presscore_display_share_buttons_for_post('page');
     }
 }