Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Template for displaying the home page.
- *
- * @license For the full license information, please view the Licensing folder
- * that was distributed with this source code.
- *
- * @package Bimber_Theme 4.10
- */
- // Prevent direct script access.
- if ( ! defined( 'ABSPATH' ) ) {
- die( 'No direct script access allowed' );
- }
- get_header();
- $bimber_home_settings = bimber_get_home_settings();
- bimber_set_template_part_data( $bimber_home_settings );
- ?>
- <style>
- .mashsb-stretched .mashsb-buttons {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start;
- }
- .mashsb-compact .mashsb-buttons a {
- min-width: 0;
- padding-top: 10px;
- padding-bottom: 10px;
- }
- .mashsb-box .mashsb-buttons a, .mashsb-box .mashsb-buttons .onoffswitch, .mashsb-box .mashsb-buttons .onoffswitch2 {
- margin: 6px 0 0 6px;
- }
- .mashsb-box .mashsb-buttons a {
- padding: 13px;
- margin-right: 3px;
- margin-bottom: 3px;
- float: left;
- border: 0;
- text-decoration: none;
- }
- .mashsb-buttons a.mash-center, .mashsb-count, .onoffswitch, .onoffswitch2 {
- text-align: center;
- }
- .mashsb-buttons a {
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- -ms-border-radius: 4px;
- -o-border-radius: 4px;
- border-radius: 4px;
- color: white;
- }
- .mashicon-facebook {
- background: #2d5f9a;
- }
- .mashicon-twitter {
- background: #00c3f3;
- }
- [class*=" mashicon-"], [class^=mashicon-] {
- position: relative;
- display: inline-block;
- }
- </style>
- <div class="g1-row g1-row-layout-page g1-row-padding-m archive-body archive-body-stream">
- <div class="g1-row-inner">
- <div id="primary" class="g1-column">
- <div class="g1-collection">
- <div class="g1-collection-viewport">
- <ul class="g1-collection-items">
- <?php bimber_set_template_part_data( $bimber_home_settings ); ?>
- <?php while ( snax_user_posts() ) : snax_the_post(); ?>
- <?php do_action( 'bimber_home_loop_before_post', 'stream', $wp_query->current_post + 1 ); ?>
- <li class="g1-collection-item g1-collection-item-1of3">
- <?php get_template_part( 'template-parts/content-stream', get_post_format() ); ?>
- </li>
- <?php do_action( 'bimber_home_loop_after_post', 'stream', $wp_query->current_post + 1 ); ?>
- <?php endwhile; ?>
- </ul>
- </div>
- <?php get_template_part( 'template-parts/archive/pagination', $bimber_home_settings['pagination'] ); ?>
- </div><!-- .g1-collection -->
- </div><!-- .g1-column -->
- </div>
- <div class="g1-row-background"></div>
- </div>
- <?php bimber_reset_template_part_data(); ?>
- <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement