Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.92 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying Search Results pages.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Viva Hotel
  7.  */
  8.  
  9. get_header();
  10. global $vh_from_search, $vh_blog_image_layout;
  11. $vh_blog_image_layout = 'with_full_image';
  12. ?>
  13.  
  14. <div class="container">
  15.     <div class="row">
  16.         <div class="span12">
  17.             <div class="page-<?php echo LAYOUT; ?> page-wrapper">
  18.                 <div class="content">
  19.                     <?php wp_reset_postdata(); ?>
  20.                     <div class="<?php echo LAYOUT; ?>-pull margin_top_30 no_left_margin span12">
  21.                         <?php echo '<div class="breadcrumb">' . vh_breadcrumbs() . '</div>'; ?>
  22.                         <div class="page-title no_left_margin span12">
  23.                             <?php if ( have_posts() ) { ?>
  24.                                 <h1><?php printf( __( 'Search Results for: %s', 'vh' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
  25.                             <?php } else { ?>
  26.                                 <h1><?php _e( 'Nothing Found', 'vh' ); ?></h1>
  27.                             <?php } ?>
  28.                         </div>
  29.                         <div class="main-content no_left_margin span12">
  30.                             <div class="main-inner">
  31.                                 <?php if ( have_posts() ) {
  32.                                     $vh_from_search = false;
  33.  
  34.                                     // Include the Post-Format-specific template for the content.
  35.                                     get_template_part( 'loop', get_post_format() );
  36.  
  37.                                     if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  38.  
  39.                                 } else { ?>
  40.                                     <div class="entry-content">
  41.                                         <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'vh'); ?></p>
  42.                                         <?php
  43.                                         $vh_is_in_sidebar = 'content';
  44.                                         get_search_form();
  45.                                         ?>
  46.                                     </div><!--end of entry-content-->
  47.                                 <?php } ?>
  48.                             </div>
  49.                         </div>
  50.                     </div>
  51.                     <?php $vh_is_in_sidebar = false; ?>
  52.                     <div class="clearfix"></div>
  53.                 </div><!--end of content-->
  54.                 <div class="clearfix"></div>
  55.             </div><!--end of shadow1-->
  56.         </div><!--end of span12-->
  57.     </div><!--end of row-->
  58. </div><!--end of container-->
  59. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement