WordPress.org

Make WordPress Core

Changeset 26227


Ignore:
Timestamp:
11/15/2013 09:19:33 PM (7 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: general cleanup for spacing, inline comments. Props obenland, see #25946.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r26225 r26227  
    9898    ) );
    9999
    100     /*
    101      * This theme allows users to set a custom background.
    102      */
     100    // This theme allows users to set a custom background.
    103101    add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(
    104102        'default-color' => 'f5f5f5',
    105103    ) ) );
    106104
    107     /*
    108      * Add support for featured content.
    109      */
     105    // Add support for featured content.
    110106    add_theme_support( 'featured-content', array(
    111107        'featured_content_filter' => 'twentyfourteen_get_featured_posts',
     
    113109    ) );
    114110
    115     /*
    116      * This theme uses its own gallery styles.
    117      */
     111    // This theme uses its own gallery styles.
    118112    add_filter( 'use_default_gallery_style', '__return_false' );
    119113}
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r26097 r26227  
    3333<body <?php body_class(); ?>>
    3434<div id="page" class="hfeed site">
    35     <?php do_action( 'before' ); ?>
    36 
    3735    <?php if ( get_header_image() ) : ?>
    3836    <div id="site-header">
  • trunk/src/wp-content/themes/twentyfourteen/image.php

    r26217 r26227  
    7474            <nav id="image-navigation" class="navigation image-navigation">
    7575                <div class="nav-links">
    76                 <?php previous_image_link( false, __( '<div class="previous-image">Previous Image</div>', 'twentyfourteen' ) ); ?>
    77                 <?php next_image_link( false, __( '<div class="next-image">Next Image</div>', 'twentyfourteen' ) ); ?>
     76                <div class="previous-image"><?php previous_image_link( false, __( 'Previous Image', 'twentyfourteen' ) ); ?></div>
     77                <div class="next-image"><?php next_image_link( false, __( 'Next Image', 'twentyfourteen' ) ); ?></div>
    7878                </div><!-- .nav-links -->
    7979            </nav><!-- #image-navigation -->
  • trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php

    r26211 r26227  
    3535    ) ) );
    3636
    37     add_filter( 'theme_mod_accent_mid',  'twentyfourteen_accent_mid'  );
     37    add_filter( 'theme_mod_accent_mid',   'twentyfourteen_accent_mid'   );
    3838    add_filter( 'theme_mod_accent_light', 'twentyfourteen_accent_light' );
    3939
     
    139139 */
    140140function twentyfourteen_rebuild_accent_colors() {
    141     set_theme_mod( 'accent_mid',  twentyfourteen_accent_mid()  );
     141    set_theme_mod( 'accent_mid',   twentyfourteen_accent_mid()   );
    142142    set_theme_mod( 'accent_light', twentyfourteen_accent_light() );
    143143}
     
    158158        return;
    159159
    160     $accent_mid = get_theme_mod( 'accent_mid' );
     160    $accent_mid   = get_theme_mod( 'accent_mid'  );
    161161    $accent_light = get_theme_mod( 'accent_light' );
    162162
     
    318318        }';
    319319
    320 
    321320    wp_add_inline_style( 'twentyfourteen-style', $css );
    322321}
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r26152 r26227  
    163163 * when on index views, and a div element when on a single view.
    164164 *
     165 * @since Twenty Fourteen 1.0
     166 *
    165167 * @return void
    166168*/
  • trunk/src/wp-content/themes/twentyfourteen/js/functions.js

    r26084 r26227  
    111111        if ( body.is( '.slider' ) ) {
    112112            $( '.featured-content' ).featuredslider( {
    113                 selector:  '.featured-content-inner > article',
     113                selector: '.featured-content-inner > article',
    114114                controlsContainer: '.featured-content'
    115115            } );
  • trunk/src/wp-content/themes/twentyfourteen/search.php

    r26217 r26227  
    4040get_sidebar();
    4141get_footer();
    42 
  • trunk/src/wp-content/themes/twentyfourteen/sidebar-content.php

    r26030 r26227  
    1212?>
    1313<div id="content-sidebar" class="content-sidebar widget-area" role="complementary">
    14     <?php do_action( 'before_sidebar' ); ?>
    15 
    1614    <?php dynamic_sidebar( 'sidebar-2' ); ?>
    1715</div><!-- #content-sidebar -->
  • trunk/src/wp-content/themes/twentyfourteen/sidebar.php

    r25979 r26227  
    2424    <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
    2525    <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
    26         <?php
    27             do_action( 'before_sidebar' );
    28             dynamic_sidebar( 'sidebar-1' );
    29         ?>
    30     </div><!-- #primary-sidebar .primary-sidebar -->
     26        <?php dynamic_sidebar( 'sidebar-1' ); ?>
     27    </div><!-- #primary-sidebar -->
    3128    <?php endif; ?>
    3229</div><!-- #secondary -->
Note: See TracChangeset for help on using the changeset viewer.