Make WordPress Themes

source: twentyfourteen/4.3/sidebar.php

Last change on this file was 248592, checked in by themedropbox, 13 months ago

New version of Twenty Fourteen - 4.1

File size: 830 bytes
Line 
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?>
11<div id="secondary">
12        <?php
13                $description = get_bloginfo( 'description', 'display' );
14        if ( ! empty( $description ) ) :
15                ?>
16        <h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
17        <?php endif; ?>
18
19        <?php if ( has_nav_menu( 'secondary' ) ) : ?>
20        <nav class="navigation site-navigation secondary-navigation">
21                <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
22        </nav>
23        <?php endif; ?>
24
25        <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
26        <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
27                <?php dynamic_sidebar( 'sidebar-1' ); ?>
28        </div><!-- #primary-sidebar -->
29        <?php endif; ?>
30</div><!-- #secondary -->
Note: See TracBrowser for help on using the repository browser.