2013-07-29 00:55:10 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2013-10-12 00:02:11 +02:00
|
|
|
* The Sidebar containing the main widget area
|
2013-07-29 00:55:10 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Fourteen
|
2013-10-12 00:02:11 +02:00
|
|
|
* @since Twenty Fourteen 1.0
|
2013-07-29 00:55:10 +02:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<div id="secondary">
|
2013-10-30 15:39:10 +01:00
|
|
|
<?php
|
|
|
|
$description = get_bloginfo( 'description' );
|
|
|
|
if ( ! empty ( $description ) ) :
|
|
|
|
?>
|
|
|
|
<h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
|
|
|
|
<?php endif; ?>
|
2013-07-29 00:55:10 +02:00
|
|
|
|
2013-10-30 15:39:10 +01:00
|
|
|
<?php if ( has_nav_menu( 'secondary' ) ) : ?>
|
|
|
|
<nav role="navigation" class="navigation site-navigation secondary-navigation">
|
|
|
|
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
2013-07-29 00:55:10 +02:00
|
|
|
|
2013-10-15 18:46:09 +02:00
|
|
|
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
|
|
|
|
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
|
2013-08-15 05:13:29 +02:00
|
|
|
<?php
|
|
|
|
do_action( 'before_sidebar' );
|
|
|
|
dynamic_sidebar( 'sidebar-1' );
|
|
|
|
?>
|
2013-10-30 15:39:10 +01:00
|
|
|
</div><!-- #primary-sidebar .primary-sidebar -->
|
2013-10-15 18:46:09 +02:00
|
|
|
<?php endif; ?>
|
2013-07-29 00:55:10 +02:00
|
|
|
</div><!-- #secondary -->
|