WordPress.org

Make WordPress Core

Changeset 30305


Ignore:
Timestamp:
11/11/2014 07:35:40 PM (6 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: Minor formatting and docs tweaks, clearer variable name.

Props celloexpressions, see #29988

Location:
trunk/src/wp-content/themes/twentyfifteen
Files:
3 edited

Legend:

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

    r30274 r30305  
    1818    $color_scheme = twentyfifteen_get_color_scheme();
    1919
    20     $wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
    21     $wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
     20    $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage';
     21    $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
    2222
    2323    // Add color scheme setting and control.
     
    255255
    256256/**
    257  * Binds JS handlers to make Customizer preview reload changes asynchronously.
     257 * Binds JS handlers to make the Customizer preview reload changes asynchronously.
    258258 *
    259259 * @since Twenty Fifteen 1.0
     
    266266/**
    267267 * Output an Underscore template for generating CSS for the color scheme.
     268 *
     269 * The template generates the css dynamically for instant display in the Customizer preview,
     270 * and to be saved in a `theme_mod` for display on the front-end.
    268271 *
    269272 * @since Twenty Fifteen 1.0
     
    513516    .site-title a:hover,
    514517    .site-title a:focus {
    515         color: {{ data.sidebar_textcolor2 }};
     518        color: {{ data.secondary_sidebar_textcolor }};
    516519    }
    517520
     
    593596        .widget .wp-caption-text,
    594597        .widget .gallery-caption {
    595             color: {{ data.sidebar_textcolor2 }};
     598            color: {{ data.secondary_sidebar_textcolor }};
    596599        }
    597600
     
    606609        .widget_calendar tbody a:hover,
    607610        .widget_calendar tbody a:focus {
    608             background-color: {{ data.sidebar_textcolor2 }};
     611            background-color: {{ data.secondary_sidebar_textcolor }};
    609612        }
    610613
    611614        .widget blockquote {
    612             border-color: {{ data.sidebar_textcolor2 }};
     615            border-color: {{ data.secondary_sidebar_textcolor }};
    613616        }
    614617
  • trunk/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js

    r30274 r30305  
    22/**
    33 * Add a listener to the Color Scheme control to update other color controls to new values/defaults.
     4 * Also trigger an update of the Color Scheme CSS when a color is changed.
    45 */
    56
     
    4647    } );
    4748
     49    // Generate the CSS for the current Color Scheme.
    4850    function getCSS() {
    4951        var scheme = api( 'color_scheme' )(),
     
    5961        colors['border_color'] = Color( colors.textcolor ).toCSS( 'rgba', 0.1 );
    6062        colors['border_focus_color'] = Color( colors.textcolor ).toCSS( 'rgba', 0.3 );
    61         colors['sidebar_textcolor2'] = Color( colors.sidebar_textcolor ).toCSS( 'rgba', 0.7 );
     63        colors['secondary_sidebar_textcolor'] = Color( colors.sidebar_textcolor ).toCSS( 'rgba', 0.7 );
    6264        colors['sidebar_border_color'] = Color( colors.sidebar_textcolor ).toCSS( 'rgba', 0.1 );
    6365        colors['sidebar_border_focus_color'] = Color( colors.sidebar_textcolor ).toCSS( 'rgba', 0.3 );
  • trunk/src/wp-content/themes/twentyfifteen/js/customize-preview.js

    r30275 r30305  
    1111    }
    1212
    13     // Site title and description.
     13    // Site title.
    1414    wp.customize( 'blogname', function( value ) {
    1515        value.bind( function( to ) {
     
    1818    } );
    1919
     20    // Site tagline.
    2021    wp.customize( 'blogdescription', function( value ) {
    2122        value.bind( function( to ) {
     
    2324        } );
    2425    } );
    25    
     26
     27    // Color Scheme CSS.
    2628    wp.customize( 'color_scheme_css', function( value ) {
    2729        value.bind( function( to ) {
Note: See TracChangeset for help on using the changeset viewer.