Advertisement
cyberdev

Untitled

Aug 28th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 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. <style>
  21. .mashsb-stretched .mashsb-buttons {
  22. display: -webkit-flex;
  23. display: -ms-flexbox;
  24. display: flex;
  25. -webkit-flex-wrap: wrap;
  26. -ms-flex-wrap: wrap;
  27. flex-wrap: wrap;
  28. -webkit-align-items: flex-start;
  29. -ms-flex-align: start;
  30. align-items: flex-start;
  31. }
  32. .mashsb-compact .mashsb-buttons a {
  33. min-width: 0;
  34. padding-top: 10px;
  35. padding-bottom: 10px;
  36. }
  37. .mashsb-box .mashsb-buttons a, .mashsb-box .mashsb-buttons .onoffswitch, .mashsb-box .mashsb-buttons .onoffswitch2 {
  38. margin: 6px 0 0 6px;
  39. }
  40. .mashsb-box .mashsb-buttons a {
  41. padding: 13px;
  42. margin-right: 3px;
  43. margin-bottom: 3px;
  44. float: left;
  45. border: 0;
  46. text-decoration: none;
  47. }
  48. .mashsb-buttons a.mash-center, .mashsb-count, .onoffswitch, .onoffswitch2 {
  49. text-align: center;
  50. }
  51. .mashsb-buttons a {
  52. -webkit-border-radius: 4px;
  53. -moz-border-radius: 4px;
  54. -ms-border-radius: 4px;
  55. -o-border-radius: 4px;
  56. border-radius: 4px;
  57. color: white;
  58. }
  59. .mashicon-facebook {
  60. background: #2d5f9a;
  61. }
  62.  
  63. .mashicon-twitter {
  64. background: #00c3f3;
  65. }
  66. [class*=" mashicon-"], [class^=mashicon-] {
  67. position: relative;
  68. display: inline-block;
  69. }
  70. .g1-row-layout-page{background-color: #1a1a1a;}
  71. .entry-author{display:none}
  72. </style>
  73. <div class="g1-row g1-row-layout-page g1-row-padding-m archive-body archive-body-stream">
  74. <div class="g1-row-inner">
  75.  
  76. <div id="primary" class="g1-column">
  77.  
  78. <div class="g1-collection">
  79. <div class="g1-collection-viewport">
  80. <ul class="g1-collection-items">
  81. <?php bimber_set_template_part_data( $bimber_home_settings ); ?>
  82. <?php while ( snax_user_posts() ) : snax_the_post(); ?>
  83.  
  84. <?php do_action( 'bimber_home_loop_before_post', 'stream', $wp_query->current_post + 1 ); ?>
  85.  
  86. <li class="g1-collection-item g1-collection-item-1of3">
  87. <?php get_template_part( 'template-parts/content-stream', get_post_format() ); ?>
  88. </li>
  89.  
  90. <?php do_action( 'bimber_home_loop_after_post', 'stream', $wp_query->current_post + 1 ); ?>
  91. <?php endwhile; ?>
  92. </ul>
  93. </div>
  94.  
  95. <?php get_template_part( 'template-parts/archive/pagination', $bimber_home_settings['pagination'] ); ?>
  96. </div><!-- .g1-collection -->
  97.  
  98. </div><!-- .g1-column -->
  99.  
  100. </div>
  101. <div class="g1-row-background"></div>
  102. </div>
  103.  
  104. <?php bimber_reset_template_part_data(); ?>
  105.  
  106. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement