Make WordPress Core


Ignore:
Timestamp:
12/03/2013 06:26:26 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: re-add the Header Text Customization Option. Props iamtakashi, fixes #26338; see #25540.

File:
1 edited

Legend:

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

    r26567 r26573  
    1717function twentyfourteen_customize_register( $wp_customize ) {
    1818    // Add postMessage support for site title and description.
    19     $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage';
    20     $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
     19    $wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
     20    $wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
     21    $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
     22
     23    // Rename the label to "Display Site Title & Tagline" in order to make this option extra clear.
     24    $wp_customize->add_control( 'display_header_text', array(
     25        'settings' => 'header_textcolor',
     26        'label'    => __( 'Display Site Title & Tagline', 'twentyfourteen' ),
     27        'section'  => 'title_tagline',
     28        'type'     => 'checkbox',
     29    ) );
     30
     31    // Rename the label to "Site Title Color" because this only effects the site title in this theme.
     32    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_textcolor', array(
     33        'label'   => __( 'Site Title Color', 'twentyfourteen' ),
     34        'section' => 'colors',
     35    ) ) );
    2136
    2237    // Add custom description to Colors and Background sections.
     
    5469 */
    5570function twentyfourteen_customize_preview_js() {
    56     wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20120827', true );
     71    wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20131130', true );
    5772}
    5873add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
Note: See TracChangeset for help on using the changeset viewer.