Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $avia_config;
- if (have_posts()) :
- global $posts;
- $post_ids = array();
- foreach($posts as $post) $post_ids[] = $post->ID;
- $atts = array(
- 'type' => 'grid',
- 'items' => 12,
- 'columns' => 3,
- 'class' => 'avia-builder-el-no-sibling',
- 'paginate' => 'yes',
- 'use_main_query_pagination' => 'yes',
- 'custom_query' => array( 'post__in'=>$post_ids )
- );
- $blog = new avia_post_slider($atts);
- $blog->query_entries();
- echo "<div class='entry-content-wrapper'>".$blog->html()."</div>";
- else:
- ?>
- <article class="entry entry-content-wrapper clearfix" id='search-fail'>
- <p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>>
- <strong><?php _e('Nothing Found', 'avia_framework'); ?></strong><br/>
- <?php _e('Sorry, no posts matched your criteria. Please try another search', 'avia_framework'); ?>
- </p>
- <div class='hr_invisible'></div>
- <section class="search_not_found">
- <p><?php _e('You might want to consider some of our suggestions to get better results:', 'avia_framework'); ?></p>
- <ul>
- <li><?php _e('Check your spelling.', 'avia_framework'); ?></li>
- <li><?php _e('Try a similar keyword, for example: tablet instead of laptop.', 'avia_framework'); ?></li>
- <li><?php _e('Try using more than one keyword.', 'avia_framework'); ?></li>
- </ul>
- <div class='hr_invisible'></div>
- <h3 class=''><?php _e('Feel like browsing some posts instead?', 'avia_framework'); ?></h3>
- <?php
- the_widget('avia_combo_widget', 'error404widget', array('widget_id'=>'arbitrary-instance-'.$id,
- 'before_widget' => '<div class="widget avia_combo_widget">',
- 'after_widget' => '</div>',
- 'before_title' => '<h3 class="widgettitle">',
- 'after_title' => '</h3>'
- ));
- echo '</section>';
- echo "</article>";
- endif;
- echo avia_pagination('', 'nav');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment