Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Template for displaying all store articles.
- *
- * @package WCfM Markeplace Views Store/articles
- *
- * For edit coping this to yourtheme/wcfm/store
- *
- */
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
- global $WCFM, $WCFMmp, $avia_config, $more;
- ?>
- <?php do_action( 'wcfmmp_store_before_articles', $store_user->get_id() ); ?>
- <div class='container_wrap container_wrap_first main_color <?php avia_layout_class('main'); ?>'>
- <div class='container template-blog '>
- <main class='content <?php avia_layout_class('content'); ?> units' <?php avia_markup_helper(array('context' => 'content', 'post_type' => 'post')); ?>>
- <?php
- $tds = term_description();
- if ($tds) {
- echo "<div class='category-term-description'>{$tds}</div>";
- }
- $avia_config['blog_style'] = apply_filters('avf_blog_style', avia_get_option('blog_style', 'multi-big'), 'archive');
- if ($avia_config['blog_style'] == 'blog-grid') {
- global $posts;
- $post_ids = array();
- foreach ($posts as $post) {
- $post_ids[] = $post->ID;
- }
- if (!empty($post_ids)) {
- $atts = array(
- 'type' => 'grid',
- 'items' => get_option('posts_per_page'),
- 'columns' => 3,
- 'class' => 'avia-builder-el-no-sibling',
- 'paginate' => 'yes',
- 'use_main_query_pagination' => 'yes',
- 'custom_query' => array(
- 'post__in' => $post_ids,
- 'post_type' => get_post_types()
- )
- );
- /**
- * @since 4.5.5
- * @return array
- */
- $atts = apply_filters('avf_post_slider_args', $atts, 'archive');
- $blog = new avia_post_slider($atts);
- $blog->query_entries();
- echo "<div class='entry-content-wrapper'>" . $blog->html() . "</div>";
- } else {
- get_template_part('includes/loop', 'index');
- }
- } else {
- /* Run the loop to output the posts.
- * If you want to overload this in a child theme then include a file
- * called loop-index.php and that will be used instead.
- */
- $more = 0;
- get_template_part('includes/loop', 'index');
- }
- ?>
- </main>
- </div>
- </div>
- <?php do_action( 'wcfmmp_store_after_articles', $store_user->get_id() ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement