soundmap_theme/search_o.php
2016-11-29 01:18:17 +01:00

67 lines
1.8 KiB
PHP

<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header('search'); ?>
<div id="main-content">
<div id="left">
<?php the_map("map_canvas") ?>
</div>
<div id="right">
<div class="box space">
<div class="logo">
<div class="menu-languages-rigth">
<a href="<?php bloginfo('url'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png"></a>
</div><!-- menu-languages right -->
<div class="clear"></div>
</div><!-- logo -->
</div>
<div class="box space">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'soundmap_theme' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header>
<?php get_template_part( 'loop', 'results' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'soundmap_theme' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'soundmap_theme' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
<div class="clear"></div>
</div><!-- box -->
<?php if (is_active_sidebar('sidebar-footer')){ ?>
<div class="box space">
<?php dynamic_sidebar( 'sidebar-footer' );?>
</div>
<?php } ?>
<?php get_template_part("footer-box"); ?>
</div><!-- right -->
</div>
<?php wp_footer(); ?>
</body>
</html>