Changeset 20263 for trunk/wp-includes/class-wp-customize.php
- Timestamp:
- 03/22/2012 08:07:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize.php
r20260 r20263 562 562 563 563 $this->add_setting( 'background_image', array( 564 'label' => 'Background Image', 565 'section' => 'background', 566 'control' => 'upload', 564 'label' => 'Background Image', 565 'section' => 'background', 566 'control' => 'upload', 567 'default' => get_theme_support( 'custom-background', 'default-image' ), 568 ) ); 569 570 $this->add_setting( 'background_repeat', array( 571 'label' => 'Background Repeat', 572 'section' => 'background', 573 'visibility' => 'background_image', 574 'control' => 'radio', 575 'choices' => array( 576 'no-repeat' => __('No Repeat'), 577 'repeat' => __('Tile'), 578 'repeat-x' => __('Tile Horizontally'), 579 'repeat-y' => __('Tile Vertically'), 580 ), 581 'default' => 'repeat', 582 ) ); 583 584 $this->add_setting( 'background_position_x', array( 585 'label' => 'Background Position', 586 'section' => 'background', 587 'visibility' => 'background_image', 588 'control' => 'radio', 589 'choices' => array( 590 'left' => __('Left'), 591 'center' => __('Center'), 592 'right' => __('Right'), 593 ), 594 'default' => 'left', 595 ) ); 596 597 $this->add_setting( 'background_attachment', array( 598 'label' => 'Background Attachment', 599 'section' => 'background', 600 'visibility' => 'background_image', 601 'control' => 'radio', 602 'choices' => array( 603 'fixed' => __('Fixed'), 604 'scroll' => __('Scroll'), 605 ), 606 'default' => 'fixed', 567 607 ) ); 568 608
Note: See TracChangeset
for help on using the changeset viewer.