Guest User

afasf

a guest
May 14th, 2016
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.47 KB | None | 0 0
  1. <?php
  2. global $avia_config;
  3.  
  4. if (have_posts()) :
  5.  
  6.         global $posts;
  7.                       $post_ids = array();
  8.                       foreach($posts as $post) $post_ids[] = $post->ID;
  9.  
  10.  
  11.                           $atts   = array(
  12.                               'type' => 'grid',
  13.                               'items' => 12,
  14.                               'columns' => 3,
  15.                               'class' => 'avia-builder-el-no-sibling',
  16.                               'paginate' => 'yes',
  17.                               'use_main_query_pagination' => 'yes',
  18.                               'custom_query' => array( 'post__in'=>$post_ids )
  19.                           );
  20.  
  21.                           $blog = new avia_post_slider($atts);
  22.                           $blog->query_entries();
  23.                           echo "<div class='entry-content-wrapper'>".$blog->html()."</div>";
  24.  
  25.     else:
  26. ?>
  27.  
  28.  
  29.  
  30.     <article class="entry entry-content-wrapper clearfix" id='search-fail'>
  31.             <p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>>
  32.                 <strong><?php _e('Nothing Found', 'avia_framework'); ?></strong><br/>
  33.                <?php _e('Sorry, no posts matched your criteria. Please try another search', 'avia_framework'); ?>
  34.             </p>
  35.  
  36.             <div class='hr_invisible'></div>
  37.  
  38.             <section class="search_not_found">
  39.                 <p><?php _e('You might want to consider some of our suggestions to get better results:', 'avia_framework'); ?></p>
  40.                 <ul>
  41.                     <li><?php _e('Check your spelling.', 'avia_framework'); ?></li>
  42.                     <li><?php _e('Try a similar keyword, for example: tablet instead of laptop.', 'avia_framework'); ?></li>
  43.                     <li><?php _e('Try using more than one keyword.', 'avia_framework'); ?></li>
  44.                 </ul>
  45.  
  46.                 <div class='hr_invisible'></div>
  47.                 <h3 class=''><?php _e('Feel like browsing some posts instead?', 'avia_framework'); ?></h3>
  48.  
  49.         <?php
  50.         the_widget('avia_combo_widget', 'error404widget', array('widget_id'=>'arbitrary-instance-'.$id,
  51.                 'before_widget' => '<div class="widget avia_combo_widget">',
  52.                 'after_widget' => '</div>',
  53.                 'before_title' => '<h3 class="widgettitle">',
  54.                 'after_title' => '</h3>'
  55.             ));
  56.         echo '</section>';
  57.     echo "</article>";
  58.  
  59.     endif;
  60.     echo avia_pagination('', 'nav');
  61. ?>
Advertisement
Add Comment
Please, Sign In to add comment