Advertisement
cyberdev

Untitled

Jul 31st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying the home page.
  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. $bimber_home_settings = bimber_get_home_settings();
  18. bimber_set_template_part_data( $bimber_home_settings );
  19. ?>
  20.  
  21. <div class="g1-row g1-row-layout-page g1-row-padding-m archive-body">
  22. <div class="g1-row-inner">
  23.  
  24. <div id="primary" class="g1-column">
  25.  
  26. <div class="g1-collection g1-collection-columns-3">
  27. <div class="g1-collection-viewport">
  28. <ul class="g1-collection-items">
  29. <?php bimber_set_template_part_data( $bimber_home_settings ); ?>
  30. <?php while ( snax_user_posts() ) : snax_the_post(); ?>
  31.  
  32. <?php do_action( 'bimber_home_loop_before_post', 'grid', $wp_query->current_post + 1 ); ?>
  33.  
  34. <li class="g1-collection-item g1-collection-item-1of3">
  35. <?php get_template_part( 'template-parts/content-grid-standard', get_post_format() ); ?>
  36. </li>
  37.  
  38. <?php do_action( 'bimber_home_loop_after_post', 'grid', $wp_query->current_post + 1 ); ?>
  39. <?php endwhile; ?>
  40. </ul>
  41. </div>
  42.  
  43. <?php get_template_part( 'template-parts/archive/pagination', $bimber_home_settings['pagination'] ); ?>
  44. </div><!-- .g1-collection -->
  45.  
  46. </div><!-- .g1-column -->
  47.  
  48. </div>
  49. <div class="g1-row-background"></div>
  50. </div>
  51.  
  52. <?php bimber_reset_template_part_data(); ?>
  53.  
  54. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement