Advertisement
Guest User

Single.php

a guest
Feb 6th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package presscore
  6. * @since presscore 0.1
  7. */
  8.  
  9. // File Security Check
  10. if ( ! defined( 'ABSPATH' ) ) { exit; }
  11.  
  12. $config = Presscore_Config::get_instance();
  13. $config->base_init();
  14.  
  15. get_header(); ?>
  16.  
  17. <?php if ( presscore_is_content_visible() ): ?>
  18.  
  19. <!-- !- Content -->
  20. <div id="content" class="content" role="main">
  21.  
  22. <?php while ( have_posts() ) : the_post(); ?>
  23.  
  24. <?php get_template_part( 'content-single', str_replace( 'dt_', '', get_post_type() ) ); ?>
  25.  
  26. <?php
  27. // If comments are open or we have at least one comment, load up the comment template
  28. if ( comments_open() || '0' != get_comments_number() )
  29. comments_template( '', true );
  30. ?>
  31.  
  32. <?php endwhile; // end of the loop. ?>
  33.  
  34. </div><!-- #content .wf-cell -->
  35.  
  36. <?php do_action('presscore_after_content'); ?>
  37.  
  38. <?php endif; // content is visible ?>
  39.  
  40. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement