Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying pages.
  4. *
  5. * @license For the full license information, please view the Licensing folder
  6. * that was distributed with this source code.
  7. *
  8. * @package Bimber_Theme 4.10
  9. */
  10.  
  11. // Prevent direct script access.
  12. if ( ! defined( 'ABSPATH' ) ) {
  13. die( 'No direct script access allowed' );
  14. }
  15.  
  16. get_header();
  17. ?>
  18. <?php
  19. $bimber_home_settings = bimber_get_home_settings();
  20. bimber_set_template_part_data( $bimber_home_settings );
  21. ?>
  22.  
  23. <?php
  24. if ( bimber_can_use_plugin( 'bbpress/bbpress.php' )){
  25. if ( is_bbpress() && bimber_show_home_featured_entries() ) :
  26. get_template_part( 'template-parts/featured/' . $bimber_home_settings['featured_entries_template'] );
  27. get_template_part( 'template-parts/ads/ad-after-featured-content' );
  28. endif;
  29. }
  30. ?>
  31. <div id="primary" class="g1-primary-max">
  32. <div id="content" role="main">
  33.  
  34. <?php
  35. while ( have_posts() ) : the_post();
  36.  
  37. // Include the page content template.
  38. get_template_part( 'template-parts/content', 'page' );
  39. endwhile;
  40. ?>
  41.  
  42. </div><!-- #content -->
  43. </div><!-- #primary -->
  44.  
  45. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement