Advertisement
rdusnr

Untitled

May 26th, 2017
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: My Page Page Template
  4. *
  5. * Description: Show a page template with left sidebar
  6. *
  7. *
  8. * @package WordPress
  9. * @subpackage Kleo
  10. * @author SeventhQueen <themesupport@seventhqueen.com>
  11. * @since Kleo 1.0
  12. */
  13.  
  14. get_header(); ?>
  15.  
  16.  
  17. <?php
  18. //create left sidebar template
  19. kleo_switch_layout('left');
  20. ?>
  21.  
  22. <?php get_template_part('page-parts/general-title-section'); ?>
  23.  
  24. <?php get_template_part('page-parts/general-before-wrap'); ?>
  25.  
  26. <?php
  27. if ( have_posts() ) :
  28. // Start the Loop.
  29. while ( have_posts() ) : the_post();
  30.  
  31. /*
  32. * Include the post format-specific template for the content. If you want to
  33. * use this in a child theme, then include a file called called content-___.php
  34. * (where ___ is the post format) and that will be used instead.
  35. */
  36. get_template_part( 'content', 'page' );
  37. ?>
  38.  
  39. <?php get_template_part( 'page-parts/posts-social-share' ); ?>
  40.  
  41. <?php if ( sq_option( 'page_comments', 0 ) == 1 ): ?>
  42.  
  43. <!-- Begin Comments -->
  44. <?php
  45. if ( comments_open() || get_comments_number() ) {
  46. comments_template( '', true );
  47. } ?>
  48. <!-- End Comments -->
  49.  
  50. <?php endif; ?>
  51.  
  52. <?php endwhile;
  53.  
  54. endif;
  55. ?>
  56.  
  57. <?php get_template_part('page-parts/general-after-wrap'); ?>
  58.  
  59. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement