WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/16/2016 10:07:41 PM (4 years ago)
Author:
davidakennedy
Message:

Twenty Seventeen: Improves code readability and code standards in files

Adds better DocBlock comments and fixes some spacing issues based on PHP_CodeSniffer WordPress coding standards.

Props sstoqnov.

Fixes #39152.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php

    r39384 r39618  
    1111?>
    1212<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php _e( 'Top Menu', 'twentyseventeen' ); ?>">
    13     <button class="menu-toggle" aria-controls="top-menu" aria-expanded="false"><?php echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) ); echo twentyseventeen_get_svg( array( 'icon' => 'close' ) ); _e( 'Menu', 'twentyseventeen' ); ?></button>
     13    <button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
     14        <?php
     15        echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) );
     16        echo twentyseventeen_get_svg( array( 'icon' => 'close' ) );
     17        _e( 'Menu', 'twentyseventeen' );
     18        ?>
     19    </button>
     20
    1421    <?php wp_nav_menu( array(
    1522        'theme_location' => 'top',
Note: See TracChangeset for help on using the changeset viewer.