- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php
r42343 r43571 275 275 276 276 foreach ( twentyeleven_color_schemes() as $scheme ) { 277 ?>277 ?> 278 278 <div class="layout image-radio-option color-scheme"> 279 279 <label class="description"> … … 286 286 </label> 287 287 </div> 288 <?php288 <?php 289 289 } 290 290 } … … 439 439 return; 440 440 } 441 ?>441 ?> 442 442 <style> 443 443 /* Link color */ … … 467 467 } 468 468 </style> 469 <?php469 <?php 470 470 } 471 471 add_action( 'wp_head', 'twentyeleven_print_link_color_style' ); … … 524 524 if ( isset( $wp_customize->selective_refresh ) ) { 525 525 $wp_customize->selective_refresh->add_partial( 526 'blogname', array( 526 'blogname', 527 array( 527 528 'selector' => '#site-title a', 528 529 'container_inclusive' => false, … … 531 532 ); 532 533 $wp_customize->selective_refresh->add_partial( 533 'blogdescription', array( 534 'blogdescription', 535 array( 534 536 'selector' => '#site-description', 535 537 'container_inclusive' => false, … … 543 545 544 546 $wp_customize->add_setting( 545 'twentyeleven_theme_options[color_scheme]', array( 547 'twentyeleven_theme_options[color_scheme]', 548 array( 546 549 'default' => $defaults['color_scheme'], 547 550 'type' => 'option', … … 557 560 558 561 $wp_customize->add_control( 559 'twentyeleven_color_scheme', array( 562 'twentyeleven_color_scheme', 563 array( 560 564 'label' => __( 'Color Scheme', 'twentyeleven' ), 561 565 'section' => 'colors', … … 569 573 // Link Color (added to Color Scheme section in Customizer) 570 574 $wp_customize->add_setting( 571 'twentyeleven_theme_options[link_color]', array( 575 'twentyeleven_theme_options[link_color]', 576 array( 572 577 'default' => twentyeleven_get_default_link_color( $options['color_scheme'] ), 573 578 'type' => 'option', … … 579 584 $wp_customize->add_control( 580 585 new WP_Customize_Color_Control( 581 $wp_customize, 'link_color', array( 586 $wp_customize, 587 'link_color', 588 array( 582 589 'label' => __( 'Link Color', 'twentyeleven' ), 583 590 'section' => 'colors', … … 589 596 // Default Layout 590 597 $wp_customize->add_section( 591 'twentyeleven_layout', array( 598 'twentyeleven_layout', 599 array( 592 600 'title' => __( 'Layout', 'twentyeleven' ), 593 601 'priority' => 50, … … 596 604 597 605 $wp_customize->add_setting( 598 'twentyeleven_theme_options[theme_layout]', array( 606 'twentyeleven_theme_options[theme_layout]', 607 array( 599 608 'type' => 'option', 600 609 'default' => $defaults['theme_layout'], … … 610 619 611 620 $wp_customize->add_control( 612 'twentyeleven_theme_options[theme_layout]', array( 621 'twentyeleven_theme_options[theme_layout]', 622 array( 613 623 'section' => 'twentyeleven_layout', 614 624 'type' => 'radio',
Note: See TracChangeset
for help on using the changeset viewer.