- Timestamp:
- 03/01/2016 10:17:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php
r32314 r36797 511 511 $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 512 512 513 if ( isset( $wp_customize->selective_refresh ) ) { 514 $wp_customize->selective_refresh->add_partial( 'blogname', array( 515 'selector' => '#site-title a', 516 'container_inclusive' => false, 517 'render_callback' => 'twentyeleven_customize_partial_blogname', 518 ) ); 519 $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 520 'selector' => '#site-description', 521 'container_inclusive' => false, 522 'render_callback' => 'twentyeleven_customize_partial_blogdescription', 523 ) ); 524 } 525 513 526 $options = twentyeleven_get_theme_options(); 514 527 $defaults = twentyeleven_get_default_theme_options(); … … 576 589 577 590 /** 591 * Render the site title for the selective refresh partial. 592 * 593 * @since Twenty Eleven 2.4 594 * @see twentyeleven_customize_register() 595 * 596 * @return void 597 */ 598 function twentyeleven_customize_partial_blogname() { 599 bloginfo( 'name' ); 600 } 601 602 /** 603 * Render the site tagline for the selective refresh partial. 604 * 605 * @since Twenty Eleven 2.4 606 * @see twentyeleven_customize_register() 607 * 608 * @return void 609 */ 610 function twentyeleven_customize_partial_blogdescription() { 611 bloginfo( 'description' ); 612 } 613 614 /** 578 615 * Bind JS handlers to make Customizer preview reload changes asynchronously. 579 616 *
Note: See TracChangeset
for help on using the changeset viewer.