Advertisement
Guest User

Untitled

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