Changeset 23539
- Timestamp:
- 02/28/2013 09:35:26 PM (12 years ago)
- Location:
- trunk/wp-content/themes/twentythirteen
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/footer.php
r23452 r23539 14 14 </div><!-- #main --> 15 15 <footer id="colophon" class="site-footer" role="contentinfo"> 16 <?php get_sidebar( ' footer' ); ?>16 <?php get_sidebar( 'main' ); ?> 17 17 18 18 <div class="site-info"> -
trunk/wp-content/themes/twentythirteen/functions.php
r23523 r23539 170 170 171 171 // Adds Masonry to handle vertical alignment of footer widgets. 172 if ( is_active_sidebar( 'sidebar- 2' ) )172 if ( is_active_sidebar( 'sidebar-1' ) ) 173 173 wp_enqueue_script( 'jquery-masonry' ); 174 174 … … 226 226 function twentythirteen_widgets_init() { 227 227 register_sidebar( array( 228 'name' => __( ' Sidebar', 'twentythirteen' ),228 'name' => __( 'Main Widget Area', 'twentythirteen' ), 229 229 'id' => 'sidebar-1', 230 'description' => __( 'Appears on posts and pages', 'twentythirteen' ),230 'description' => __( 'Appears in the footer section of the site', 'twentythirteen' ), 231 231 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 232 232 'after_widget' => '</aside>', … … 236 236 237 237 register_sidebar( array( 238 'name' => __( ' FooterWidget Area', 'twentythirteen' ),238 'name' => __( 'Secondary Widget Area', 'twentythirteen' ), 239 239 'id' => 'sidebar-2', 240 'description' => __( 'Appears in the footer section of the site', 'twentythirteen' ),240 'description' => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ), 241 241 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 242 242 'after_widget' => '</aside>', … … 506 506 $classes[] = 'single-author'; 507 507 508 if ( is_active_sidebar( 'sidebar- 1' ) && ! is_attachment() && ! is_404() )508 if ( is_active_sidebar( 'sidebar-2' ) && ! is_attachment() && ! is_404() ) 509 509 $classes[] = 'sidebar'; 510 510 -
trunk/wp-content/themes/twentythirteen/js/functions.js
r23533 r23539 93 93 var columnWidth = $( 'body' ).is( '.sidebar' ) ? 228 : 245; 94 94 95 $( '# tertiary .widget-area' ).masonry( {95 $( '#secondary .widget-area' ).masonry( { 96 96 itemSelector: '.widget', 97 97 columnWidth: columnWidth, -
trunk/wp-content/themes/twentythirteen/sidebar.php
r23452 r23539 1 1 <?php 2 2 /** 3 * The sidebar containing the main widget area.3 * The sidebar containing the secondary widget area, displays on posts and pages. 4 4 * 5 5 * If no active widgets in this sidebar, it will be hidden completely. … … 10 10 */ 11 11 12 if ( is_active_sidebar( 'sidebar- 1' ) ) : ?>13 <div id=" secondary" class="sidebar-container" role="complementary">12 if ( is_active_sidebar( 'sidebar-2' ) ) : ?> 13 <div id="tertiary" class="sidebar-container" role="complementary"> 14 14 <div class="sidebar-inner"> 15 15 <div class="widget-area"> 16 <?php dynamic_sidebar( 'sidebar- 1' ); ?>16 <?php dynamic_sidebar( 'sidebar-2' ); ?> 17 17 </div> 18 18 </div> 19 </div><!-- # secondary -->19 </div><!-- #tertiary --> 20 20 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.