Advertisement
rdusnr

Untitled

Sep 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts
  4. *
  5. * @package WordPress
  6. * @subpackage Kleo
  7. * @since Kleo 1.0
  8. */
  9.  
  10. get_header(); ?>
  11.  
  12. <?php
  13. //Specific class for post listing */
  14. if ( kleo_postmeta_enabled() ) {
  15. $meta_status = ' with-meta';
  16. if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) {
  17. $meta_status .= ' inline-meta';
  18. }
  19. add_filter( 'kleo_main_template_classes', create_function( '$cls', '$cls .= "' . $meta_status . '"; return $cls;' ) );
  20. }
  21.  
  22. /* Related posts logic */
  23. $related = sq_option( 'related_posts', 1 );
  24. if ( ! is_singular( 'post' ) ) {
  25. $related = sq_option( 'related_custom_posts', 0 );
  26. }
  27. //post setting
  28. if ( get_cfield( 'related_posts' ) != '' ) {
  29. $related = get_cfield( 'related_posts' );
  30. }
  31. ?>
  32.  
  33. <?php get_template_part( 'page-parts/general-title-section' ); ?>
  34.  
  35. <?php get_template_part( 'page-parts/general-before-wrap' ); ?>
  36.  
  37. <?php /* Start the Loop */ ?>
  38. <?php while ( have_posts() ) : the_post(); ?>
  39.  
  40. <?php get_template_part( 'page-parts/posts-social-share' ); ?>
  41.  
  42. <?php get_template_part( 'content', get_post_format() ); ?>
  43.  
  44.  
  45. <?php
  46. if ( $related == 1 ) {
  47. get_template_part( 'page-parts/posts-related' );
  48. }
  49. ?>
  50.  
  51. <?php
  52. if ( sq_option( 'post_navigation', 1 ) == 1 ) :
  53. // Previous/next post navigation.
  54. kleo_post_nav();
  55. endif;
  56. ?>
  57.  
  58. <!-- Begin Comments -->
  59. <?php
  60. if ( comments_open() || get_comments_number() ) {
  61. comments_template( '', true );
  62. }
  63. ?>
  64. <!-- End Comments -->
  65.  
  66. <?php endwhile; ?>
  67.  
  68. <?php get_template_part( 'page-parts/general-after-wrap' ); ?>
  69.  
  70. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement