Skip to content

Instantly share code, notes, and snippets.

@tibicostan
Created March 22, 2016 15:05
Show Gist options
  • Save tibicostan/59a5593a1f6551da5699 to your computer and use it in GitHub Desktop.
Save tibicostan/59a5593a1f6551da5699 to your computer and use it in GitHub Desktop.
<?php get_header() ?>
<?php
global $porto_settings;
?>
<div id="content" role="main">
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
<?php get_template_part('slideshow', 'page') ?>
<?php endif; ?>
<?php porto_render_rich_snippets() ?>
<div class="page-content">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="pagination" role="navigation">',
'after' => '</div>'
) );
?>
</div>
</article>
<?php
$share = porto_get_meta_value('page_share');
if ($porto_settings['share-enable'] && 'no' !== $share && ('yes' === $share || ('yes' !== $share && $porto_settings['page-share']))) : ?>
<div class="page-share">
<h3><i class="fa fa-share"></i><?php _e('Share on', 'porto') ?></h3>
<?php get_template_part('share') ?>
</div>
<?php endif; ?>
<?php if ($porto_settings['page-comment']) : ?>
<?php
wp_reset_postdata();
comments_template();
?>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php get_footer() ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment