104 lines
3.9 KiB
PHP
104 lines
3.9 KiB
PHP
<?php
|
|
/**
|
|
* The Template for displaying all single posts.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Eleven
|
|
* @since Twenty Eleven 1.0
|
|
*/
|
|
|
|
get_header('single'); ?>
|
|
<div id="single">
|
|
<div id="left">
|
|
<div class="box space">
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
|
<?php
|
|
$m_options = array();
|
|
$id = get_the_ID();
|
|
$m_options['origin']['lat'] = get_the_latitude($id);
|
|
$m_options['origin']['lng'] = get_the_longitude($id);
|
|
$m_options['origin']['zoom'] = 19;
|
|
$m_options['mapType'] = 'SATELLITE';
|
|
|
|
the_map("map_canvas",false,$m_options);
|
|
print_r($m_options);
|
|
?>
|
|
</div>
|
|
<div class="box">
|
|
<footer id="colophon" role="contentinfo">
|
|
<div id="site-info">
|
|
<p>
|
|
<a href="<?php echo qtrans_convertURL(get_option('home') . '/feed/podcast'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/feed.png"></a> - <a href="<?php echo get_option('home') ?>/wp-admin"> Login</a> - <?php insert_upload_form(__("Upload recording","soundmap_theme")); ?>
|
|
</p>
|
|
<hr>
|
|
<div id ="logos">
|
|
<p class="logo-margin"><?php _e('A project of: ','soundmap_theme') ?><br>
|
|
<a href="http://www.audio-lab.org"><img src="<?php echo get_template_directory_uri(); ?>/images/audiolab.png"></a></p>
|
|
<p><?php _e('With the support: ','soundmap_theme') ?><br>
|
|
<a href="http://www.gipuzkoa.eus/" style="display:none;"><img src="<?php echo get_template_directory_uri(); ?>/images/diputacion.jpg"></a>
|
|
<a href="http://www.re-tramontana.org/"><img height=41px src="<?php echo get_template_directory_uri(); ?>/images/tramontana.jpg"></a>
|
|
<a href="http://www.eke.org" style="display:none;"><img src="<?php echo get_template_directory_uri(); ?>/images/eke.jpg"></a></p>
|
|
</div>
|
|
<div class="clear"></div>
|
|
<hr>
|
|
<a href="<?php echo get_option('home'); ?>/">SOINUMAPA.NET 2005-15</a> / <a href="http://www.audio-lab.org" target="_blank">AUDIOLAB</a></br>
|
|
<?php _e('Made with the <a href="http://www.audio-lab.org">SoundMap Plugin</a>','soundmap_theme')?> /
|
|
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'soundmap_theme' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'soundmap_theme' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'soundmap_theme' ), 'WordPress' ); ?></a>
|
|
</div>
|
|
</footer><!-- #colophon -->
|
|
</div>
|
|
</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 id="content" role="main" class="box">
|
|
|
|
<?php get_template_part( 'content', 'single' ); ?>
|
|
|
|
|
|
</div><!-- #content -->
|
|
<?php endwhile; // end of the loop. ?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- #single -->
|
|
|
|
</div><!-- #main -->
|
|
|
|
|
|
</div><!-- #page -->
|
|
|
|
<?php wp_footer(); ?>
|
|
<script src="<?php echo get_template_directory_uri(); ?>/js/soundmap_theme_single.js" type="text/javascript"></script>
|
|
<!-- Piwik -->
|
|
<script type="text/javascript">
|
|
var _paq = _paq || [];
|
|
_paq.push(['trackPageView']);
|
|
_paq.push(['enableLinkTracking']);
|
|
(function() {
|
|
var u="http://analytics.audio-lab.org/";
|
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
|
_paq.push(['setSiteId', 1]);
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
|
})();
|
|
</script>
|
|
<noscript><p><img src="http://analytics.audio-lab.org/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
|
|
<!-- End Piwik Code -->
|
|
</div>
|
|
</body>
|
|
</html>
|