author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 17:39:30 +0200 | |
changeset 7 | cf61fcea0001 |
parent 5 | 5e2f62d02dcd |
permissions | -rw-r--r-- |
5 | 1 |
<?php |
2 |
/** |
|
3 |
* The Sidebar containing the main widget area |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Twenty_Fourteen |
|
7 |
* @since Twenty Fourteen 1.0 |
|
8 |
*/ |
|
9 |
?> |
|
10 |
<div id="secondary"> |
|
11 |
<?php |
|
12 |
$description = get_bloginfo( 'description', 'display' ); |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
13 |
if ( ! empty( $description ) ) : |
5 | 14 |
?> |
15 |
<h2 class="site-description"><?php echo esc_html( $description ); ?></h2> |
|
16 |
<?php endif; ?> |
|
17 |
||
18 |
<?php if ( has_nav_menu( 'secondary' ) ) : ?> |
|
19 |
<nav role="navigation" class="navigation site-navigation secondary-navigation"> |
|
20 |
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> |
|
21 |
</nav> |
|
22 |
<?php endif; ?> |
|
23 |
||
24 |
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> |
|
25 |
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary"> |
|
26 |
<?php dynamic_sidebar( 'sidebar-1' ); ?> |
|
27 |
</div><!-- #primary-sidebar --> |
|
28 |
<?php endif; ?> |
|
29 |
</div><!-- #secondary --> |