WordPress/wp-content/themes/twentyfourteen/sidebar.php
Lance Willett 7d35419e62 Importing the Further theme, first pass at the new default theme for 2014.
A magazine theme with clean, responsive design focused on highlighting featured content prominently on home page.

This is slated for 3.8. Development will occur in trunk for the theme, and in plugins for the nice-to-have features.

Nice-to-have improvements include:

- Add a Contributors page template to highlight authors.
- Easy-to-manage featured content.
- Add support for an Authors widget to highlight authors.

Welcome, Twenty Fourteen né Further. Props iamtakashi, see #24858.


git-svn-id: http://core.svn.wordpress.org/trunk@24832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-28 22:55:10 +00:00

44 lines
1.3 KiB
PHP

<?php
/**
* The Sidebar containing the main widget areas.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<div id="secondary">
<div id="secondary-top">
<?php
$description = get_bloginfo( 'description' );
if ( ! empty ( $description ) ) : ?>
<h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
<?php endif; ?>
<?php if ( has_nav_menu( 'secondary' ) ) : ?>
<nav role="navigation" class="site-navigation secondary-navigation">
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
</nav>
<?php endif; ?>
</div>
<div id="secondary-bottom" class="widget-area" role="complementary">
<?php do_action( 'before_sidebar' ); ?>
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
<aside id="categories" class="widget widget_categories">
<h1 class="widget-title"><?php _e( 'Categories', 'twentyfourteen' ); ?></h1>
<ul>
<?php wp_list_categories( array( 'title_li' => '' ) ); ?>
</ul>
</aside>
<aside id="archives" class="widget widget_archive">
<h1 class="widget-title"><?php _e( 'Archives', 'twentyfourteen' ); ?></h1>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</aside>
<?php endif; // end sidebar widget area ?>
</div><!-- .widget-area -->
</div><!-- #secondary -->