- Timestamp:
- 12/03/2013 06:26:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r26567 r26573 17 17 function twentyfourteen_customize_register( $wp_customize ) { 18 18 // 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 ) ) ); 21 36 22 37 // Add custom description to Colors and Background sections. … … 54 69 */ 55 70 function twentyfourteen_customize_preview_js() { 56 wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '201 20827', true );71 wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20131130', true ); 57 72 } 58 73 add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
Note: See TracChangeset
for help on using the changeset viewer.