Make WordPress Core


Ignore:
Timestamp:
11/19/2014 08:27:09 PM (12 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: doc cleanup, addresses removing periods from file header summaries, some spacing, loop documentation, and https instead of http.

Props DrewAPicture, MikeHansenMe, see #30149.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/sidebar.php

    r30046 r30394  
    11<?php
    22/**
    3  * The sidebar containing the main widget area.
     3 * The sidebar containing the main widget area
    44 *
    55 * @package WordPress
     
    1010if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' )  ) : ?>
    1111        <div id="secondary" class="secondary">
     12
    1213                <?php if ( has_nav_menu( 'primary' ) ) : ?>
    13                 <nav id="site-navigation" class="main-navigation" role="navigation">
    14                         <?php
    15                                 wp_nav_menu( array(
    16                                         'menu_class'     => 'nav-menu',
    17                                         'theme_location' => 'primary',
    18                                 ) );
    19                         ?>
    20                 </nav><!-- .main-navigation -->
     14                        <nav id="site-navigation" class="main-navigation" role="navigation">
     15                                <?php
     16                                        // Primary navigation menu.
     17                                        wp_nav_menu( array(
     18                                                'menu_class'     => 'nav-menu',
     19                                                'theme_location' => 'primary',
     20                                        ) );
     21                                ?>
     22                        </nav><!-- .main-navigation -->
    2123                <?php endif; ?>
    2224
    2325                <?php if ( has_nav_menu( 'social' ) ) : ?>
    24                 <nav id="social-navigation" class="social-navigation" role="navigation">
    25                         <?php
    26                                 wp_nav_menu( array(
    27                                         'theme_location' => 'social',
    28                                         'depth'          => 1,
    29                                         'link_before'    => '<span class="screen-reader-text">',
    30                                         'link_after'     => '</span>',
    31                                 ) );
    32                         ?>
    33                 </nav><!-- .social-navigation -->
     26                        <nav id="social-navigation" class="social-navigation" role="navigation">
     27                                <?php
     28                                        // Social links navigation menu.
     29                                        wp_nav_menu( array(
     30                                                'theme_location' => 'social',
     31                                                'depth'          => 1,
     32                                                'link_before'    => '<span class="screen-reader-text">',
     33                                                'link_after'     => '</span>',
     34                                        ) );
     35                                ?>
     36                        </nav><!-- .social-navigation -->
    3437                <?php endif; ?>
    3538
    3639                <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
    37                 <div id="widget-area" class="widget-area" role="complementary">
    38                         <?php dynamic_sidebar( 'sidebar-1' ); ?>
    39                 </div><!-- .widget-area -->
     40                        <div id="widget-area" class="widget-area" role="complementary">
     41                                <?php dynamic_sidebar( 'sidebar-1' ); ?>
     42                        </div><!-- .widget-area -->
    4043                <?php endif; ?>
     44
    4145        </div><!-- .secondary -->
     46
    4247<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.