soundmap_theme/front-page.php

78 lines
2.1 KiB
PHP
Raw Normal View History

2016-11-29 01:18:17 +01:00
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id="main-content">
2016-11-29 04:27:14 +01:00
<div id="left" style="position:absolute;width:100%;height:100%;">
2016-11-29 01:18:17 +01:00
<?php the_map("map_canvas", true) ?>
2016-11-29 04:27:14 +01:00
2016-11-29 01:18:17 +01:00
</div>
2016-11-29 04:27:14 +01:00
<div id="right" style="display:none;">
<div class="box space" style="background:none;">
2016-11-29 01:18:17 +01:00
<div class="logo">
<div class="menu-languages-rigth">
2016-11-29 04:27:14 +01:00
<a href="<?php bloginfo('url'); ?>"><span style="font-family:sans;font-size:20pt;font-weight:bold;">SOINEKO PAISAIA</span></a>
2016-11-29 01:18:17 +01:00
</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>