soundmap_theme/front-page.php

78 lines
2.1 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" style="position:absolute;width:100%;height:100%;">
<?php the_map("map_canvas", true) ?>
</div>
<div id="right" style="display:none;">
<div class="box space" style="background:none;">
<div class="logo">
<div class="menu-languages-rigth">
<a href="<?php bloginfo('url'); ?>"><span style="font-family:sans;font-size:20pt;font-weight:bold;">SOINEKO PAISAIA</span></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">&rarr;</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>