Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wcfmmp_before_store_article', function( $store_id, $store_info ) {
- $sidebar_configs = besa_tbay_get_blog_layout_configs();
- $blog_columns = apply_filters( 'loop_blog_columns', 1 );
- $columns = $blog_columns;
- if(isset($blog_columns) && $blog_columns >= 3) {
- $screen_desktop = 3;
- $screen_desktopsmall = 2;
- $screen_tablet = 2;
- } else {
- $screen_desktop = $blog_columns;
- $screen_desktopsmall = $blog_columns;
- $screen_tablet = $blog_columns;
- }
- $screen_mobile = 1;
- $data_responsive = ' data-xlgdesktop='. $columns .'';
- $data_responsive .= ' data-desktop='. $screen_desktop .'';
- $data_responsive .= ' data-desktopsmall='. $screen_desktopsmall .'';
- $data_responsive .= ' data-tablet='. $screen_tablet .'';
- $data_responsive .= ' data-mobile='. $screen_mobile .'';
- ?>
- <div id="main-content" class="<?php echo esc_attr($sidebar_configs['main']['class']); ?>" style="margin: 0 30px;">
- <div id="main" class="site-main layout-blog">
- <?php do_action( 'besa_post_template_main_content_before' ); ?>
- <div class="row grid" <?php echo $data_responsive; ?>
- <?php
- }, 50, 2);
- add_action( 'wcfmmp_store_article_template', function() {
- $skin = besa_tbay_get_theme();
- get_template_part( 'post-formats/'.$skin.'/content', get_post_format() );
- });
- add_action( 'wcfmmp_store_article_template_none', function() {
- $skin = besa_tbay_get_theme();
- get_template_part( 'post-formats/'.$skin.'/content', 'none' );
- });
- add_action( 'wcfmmp_after_store_article', function( $store_id, $store_info ) {
- echo '</div>';
- do_action( 'besa_post_template_main_content_after' );
- echo '</div>';
- echo '</div>';
- }, 50, 2);
- add_filter( 'wcfm_is_allow_store_articles', '__return_true' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement