Make WordPress Core

Ticket #25946: 25946.4.diff

File 25946.4.diff, 7.2 KB (added by obenland, 12 years ago)
  • wp-content/themes/twentyfourteen/sidebar.php

     
    2727                        do_action( 'before_sidebar' );
    2828                        dynamic_sidebar( 'sidebar-1' );
    2929                ?>
    30         </div><!-- #primary-sidebar .primary-sidebar -->
     30        </div><!-- #primary-sidebar -->
    3131        <?php endif; ?>
    3232</div><!-- #secondary -->
  • wp-content/themes/twentyfourteen/sidebar-footer.php

     
    1313
    1414<div id="supplementary">
    1515        <div id="footer-sidebar" class="footer-sidebar widget-area" role="complementary">
    16                 <?php dynamic_sidebar( 'sidebar-3' ); ?>
     16                <?php
     17                        do_action( 'before_sidebar' );
     18                        dynamic_sidebar( 'sidebar-3' );
     19                ?>
    1720        </div><!-- #footer-sidebar -->
    1821</div><!-- #supplementary -->
  • wp-content/themes/twentyfourteen/functions.php

     
    9191                'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',
    9292        ) );
    9393
    94         /*
    95          * This theme allows users to set a custom background.
    96          */
     94        // This theme allows users to set a custom background.
    9795        add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(
    9896                'default-color' => 'f5f5f5',
    9997        ) ) );
    10098
    101         /*
    102          * Add support for featured content.
    103          */
     99        // Add support for featured content.
    104100        add_theme_support( 'featured-content', array(
    105101                'featured_content_filter' => 'twentyfourteen_get_featured_posts',
    106102                'max_posts' => 6,
    107103        ) );
    108104
    109         /*
    110          * This theme uses its own gallery styles.
    111          */
     105        // This theme uses its own gallery styles.
    112106        add_filter( 'use_default_gallery_style', '__return_false' );
    113107}
    114108endif; // twentyfourteen_setup
  • wp-content/themes/twentyfourteen/inc/customizer.php

     
    3434                'section'  => 'colors',
    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
    4040        // Add the featured content section in case it's not already there.
     
    138138 * @return void
    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}
    144144add_action( 'update_option_theme_mods_twentyfourteen', 'twentyfourteen_rebuild_accent_colors' );
     
    157157        if ( '#24890d' === $accent_color )
    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
    163163        $css = '/* Custom accent color. */
     
    317317                        color: ' . $accent_light . ';
    318318                }';
    319319
    320 
    321320        wp_add_inline_style( 'twentyfourteen-style', $css );
    322321}
    323322add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' );
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    162162 * Displays an optional post thumbnail, with an anchor element
    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*/
    167169function twentyfourteen_post_thumbnail() {
  • wp-content/themes/twentyfourteen/search.php

     
    4141<?php
    4242get_sidebar();
    4343get_footer();
    44 
  • wp-content/themes/twentyfourteen/image.php

     
    7474
    7575                        <nav id="image-navigation" class="navigation image-navigation">
    7676                                <div class="nav-links">
    77                                 <?php previous_image_link( false, __( '<div class="previous-image">Previous Image</div>', 'twentyfourteen' ) ); ?>
    78                                 <?php next_image_link( false, __( '<div class="next-image">Next Image</div>', 'twentyfourteen' ) ); ?>
     77                                <div class="previous-image"><?php previous_image_link( false, __( 'Previous Image', 'twentyfourteen' ) ); ?></div>
     78                                <div class="next-image"><?php next_image_link( false, __( 'Next Image', 'twentyfourteen' ) ); ?></div>
    7979                                </div><!-- .nav-links -->
    8080                        </nav><!-- #image-navigation -->
    8181
  • wp-content/themes/twentyfourteen/js/functions.js

     
    110110        _window.load( function() {
    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                        } );
    116116                }
  • wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js

     
    1 jQuery( document ).ready( function( $ ) {
    2         $( document ).keydown( function( e ) {
     1jQuery( function( $ ) {
     2        $( document ).on( 'keydown.twentyfourteen', function( e ) {
    33                var url = false;
    4                 if ( e.which === 37 ) {  // Left arrow key code
     4
     5                // Left arrow key code.
     6                if ( e.which === 37 ) {
    57                        url = $( '.previous-image a' ).attr( 'href' );
    6                 }
    7                 else if ( e.which === 39 ) {  // Right arrow key code
     8
     9                // Right arrow key code.
     10                } else if ( e.which === 39 ) {
    811                        url = $( '.entry-attachment a' ).attr( 'href' );
    912                }
     13
    1014                if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) {
    1115                        window.location = url;
    1216                }
  • wp-content/themes/twentyfourteen/sidebar-content.php

     
    1111        return;
    1212?>
    1313<div id="content-sidebar" class="content-sidebar widget-area" role="complementary">
    14         <?php do_action( 'before_sidebar' ); ?>
    15 
    16         <?php dynamic_sidebar( 'sidebar-2' ); ?>
     14        <?php
     15                do_action( 'before_sidebar' );
     16                dynamic_sidebar( 'sidebar-2' );
     17        ?>
    1718</div><!-- #content-sidebar -->