Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying Search Results pages.
- *
- * @package WordPress
- * @subpackage Viva Hotel
- */
- get_header();
- global $vh_from_search, $vh_blog_image_layout;
- $vh_blog_image_layout = 'with_full_image';
- ?>
- <div class="container">
- <div class="row">
- <div class="span12">
- <div class="page-<?php echo LAYOUT; ?> page-wrapper">
- <div class="content">
- <?php wp_reset_postdata(); ?>
- <div class="<?php echo LAYOUT; ?>-pull margin_top_30 no_left_margin span12">
- <?php echo '<div class="breadcrumb">' . vh_breadcrumbs() . '</div>'; ?>
- <div class="page-title no_left_margin span12">
- <?php if ( have_posts() ) { ?>
- <h1><?php printf( __( 'Search Results for: %s', 'vh' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
- <?php } else { ?>
- <h1><?php _e( 'Nothing Found', 'vh' ); ?></h1>
- <?php } ?>
- </div>
- <div class="main-content no_left_margin span12">
- <div class="main-inner">
- <?php if ( have_posts() ) {
- $vh_from_search = false;
- // Include the Post-Format-specific template for the content.
- get_template_part( 'loop', get_post_format() );
- if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
- } else { ?>
- <div class="entry-content">
- <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'vh'); ?></p>
- <?php
- $vh_is_in_sidebar = 'content';
- get_search_form();
- ?>
- </div><!--end of entry-content-->
- <?php } ?>
- </div>
- </div>
- </div>
- <?php $vh_is_in_sidebar = false; ?>
- <div class="clearfix"></div>
- </div><!--end of content-->
- <div class="clearfix"></div>
- </div><!--end of shadow1-->
- </div><!--end of span12-->
- </div><!--end of row-->
- </div><!--end of container-->
- <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement