audiolab-theme/sidebar.php
2016-12-23 20:38:21 +01:00

48 lines
1.0 KiB
PHP

<?php
if (is_page()) {
// Retrieve parent page navigation
global $wp_query;
if(empty($wp_query->post->post_parent)) {
$parent = get_the_ID();
$parent_title = get_the_title();
}
else {
$parent = $wp_query->post->post_parent;
$parent_data = get_post($parent);
$parent_title = $parent_data->post_title;
}
$wp_list_pages = wp_list_pages('title_li=&depth=1&child_of=' . $parent . '&echo=0');
}
?>
<div class="span-7">
<div id="sidebar" role="complementary" >
<?php //wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
<ul class="parent-widgets">
<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar')) {
?>
<!-- Meta links -->
<li>
<h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php
}
?>
</ul>
</div><!-- id="sidebar" -->
<div id="contact">
<p class="emilio"></p>
<p>Kristobaldegi 14<br/>
Loiola Auzoa<br />
20014 Donostia - San Sebastián</p>
</div>
</div>