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

80 lines
2.0 KiB
PHP

<?php
/**
* Template Name: Gipuzkoako Ura
*
* @package WordPress
* @subpackage SoundMap Theme
* @since SoundMap 1.0
*/
get_header('gipuzkoako-ura'); ?>
<div id="main-content">
<div id="left">
<?php
$tag = "gipuzkoako-urak";
query_posts('tag='.$tag);
the_map("map_canvas",false,"tag=$tag&order=ASC",$tag); ?>
</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() ) : ?>
<?php
global $wp_query;
$markers_count = $wp_query->post_count;
?>
<header class="page-header">
<h1 class="page-title"><?php printf( __( 'Category Archives: %s', 'soundmap_theme' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?> (<?php echo $markers_count ?>)</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>