77 lines
2.0 KiB
PHP
77 lines
2.0 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* The Template for displaying all single posts.
|
||
|
*
|
||
|
* @package WordPress
|
||
|
* @subpackage Twenty_Eleven
|
||
|
* @since Twenty Eleven 1.0
|
||
|
*/
|
||
|
|
||
|
get_header(); ?>
|
||
|
<div id="main-content">
|
||
|
<div id="left">
|
||
|
<?php the_map("map_canvas", true) ?>
|
||
|
</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">
|
||
|
<?php dynamic_sidebar( 'sidebar-2' );?>
|
||
|
</div>
|
||
|
|
||
|
<div class="box space">
|
||
|
|
||
|
<div id="content">
|
||
|
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||
|
<article id="post-<?php echo $id ?>" <?php post_class('visible-page'); ?>>
|
||
|
<div class="entry-content">
|
||
|
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'soundmap_theme' ) ); ?>
|
||
|
</div><!-- .entry-content -->
|
||
|
</article><!-- #post-<?php the_ID(); ?> -->
|
||
|
<?php endwhile; // end of the loop. ?>
|
||
|
<?php
|
||
|
|
||
|
$soundmap_theme_options = soundmap_theme_get_theme_options();
|
||
|
$main_pages = $soundmap_theme_options['main-pages'];
|
||
|
$args = array(
|
||
|
'include' => explode(",", $main_pages),
|
||
|
'sort_order' => 'ASC',
|
||
|
'sort_column' => 'ID'
|
||
|
);
|
||
|
$pages = get_pages($args);
|
||
|
foreach($pages as $page)
|
||
|
{
|
||
|
$id = $page->ID;
|
||
|
setup_postdata($page);
|
||
|
get_template_part('slide-content');
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
|
||
|
</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>
|