Ticket #28504: 28504.2.diff
File 28504.2.diff, 6.8 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
268 268 height: 22px; 269 269 } 270 270 271 .control-section .accordion-section-title { 272 padding-left: 45px; 273 } 274 275 .in-sub-panel .control-section .accordion-section-title { 276 padding-left: 14px; 277 } 278 279 .control-section .accordion-section-title:before { 280 font: normal 20px/1 dashicons; 281 position: absolute; 282 top: 11px; 283 left: 14px; 284 -webkit-font-smoothing: antialiased; 285 -moz-osx-font-smoothing: grayscale; 286 } 287 288 /* Don't override custom icons, which get an additional class. */ 289 .control-panel > [class="accordion-section-title "]:before, 290 .control-section > [class="accordion-section-title "]:before { 291 content: "\f111"; 292 } 293 271 294 .wp-full-overlay-sidebar .wp-full-overlay-header { 272 295 -webkit-transition: padding ease-in-out .18s; 273 296 transition: padding ease-in-out .18s; -
src/wp-content/themes/twentyeleven/inc/theme-options.php
550 550 // Default Layout 551 551 $wp_customize->add_section( 'twentyeleven_layout', array( 552 552 'title' => __( 'Layout', 'twentyeleven' ), 553 'icon' => 'dashicons-align-right', 553 554 'priority' => 50, 554 555 ) ); 555 556 -
src/wp-content/themes/twentyfourteen/inc/customizer.php
38 38 // Add the featured content section in case it's not already there. 39 39 $wp_customize->add_section( 'featured_content', array( 40 40 'title' => __( 'Featured Content', 'twentyfourteen' ), 41 'icon' => 'dashicons-star-filled', 41 42 'description' => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), 42 43 esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), 43 44 admin_url( 'edit.php?show_sticky=1' ) -
src/wp-includes/class-wp-customize-manager.php
931 931 932 932 $this->add_section( 'title_tagline', array( 933 933 'title' => __( 'Site Title & Tagline' ), 934 'icon' => 'dashicons-feedback', 934 935 'priority' => 20, 935 936 ) ); 936 937 … … 960 961 961 962 $this->add_section( 'colors', array( 962 963 'title' => __( 'Colors' ), 964 'icon' => 'dashicons-art', 963 965 'priority' => 40, 964 966 ) ); 965 967 … … 1005 1007 1006 1008 $this->add_section( 'header_image', array( 1007 1009 'title' => __( 'Header Image' ), 1010 'icon' => 'dashicons-camera', 1008 1011 'theme_supports' => 'custom-header', 1009 1012 'priority' => 60, 1010 1013 ) ); … … 1025 1028 1026 1029 $this->add_section( 'background_image', array( 1027 1030 'title' => __( 'Background Image' ), 1031 'icon' => 'dashicons-format-image', 1028 1032 'theme_supports' => 'custom-background', 1029 1033 'priority' => 80, 1030 1034 ) ); … … 1104 1108 1105 1109 $this->add_section( 'nav', array( 1106 1110 'title' => __( 'Navigation' ), 1111 'icon' => 'dashicons-menu', 1107 1112 'theme_supports' => 'menus', 1108 1113 'priority' => 100, 1109 1114 'description' => sprintf( _n('Your theme supports %s menu. Select which menu you would like to use.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . "\n\n" . __('You can edit your menu content on the Menus screen in the Appearance section.'), … … 1137 1142 1138 1143 $this->add_section( 'static_front_page', array( 1139 1144 'title' => __( 'Static Front Page' ), 1145 'icon' => 'dashicons-admin-post', 1140 1146 // 'theme_supports' => 'static-front-page', 1141 1147 'priority' => 120, 1142 1148 'description' => __( 'Your theme supports a static front page.' ), -
src/wp-includes/class-wp-customize-panel.php
74 74 public $description = ''; 75 75 76 76 /** 77 * Dasicon for this panel. 78 * 79 * @since 4.1.0 80 * @access public 81 * @var string 82 */ 83 public $icon = ''; 84 85 /** 77 86 * Customizer sections for this panel. 78 87 * 79 88 * @since 4.0.0 … … 170 179 protected function render() { 171 180 ?> 172 181 <li id="accordion-panel-<?php echo esc_attr( $this->id ); ?>" class="control-section control-panel accordion-section"> 173 <h3 class="accordion-section-title " tabindex="0">182 <h3 class="accordion-section-title <?php echo $this->icon; ?>" tabindex="0"> 174 183 <?php echo esc_html( $this->title ); ?> 175 184 <span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span> 176 185 </h3> -
src/wp-includes/class-wp-customize-section.php
83 83 public $description = ''; 84 84 85 85 /** 86 * Dasicon for the section. 87 * 88 * @since 4.1.0 89 * @access public 90 * @var string 91 */ 92 public $icon = ''; 93 94 /** 86 95 * Customizer controls for this section. 87 96 * 88 97 * @since 3.4.0 … … 177 186 } 178 187 ?> 179 188 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> 180 <h3 class="accordion-section-title " tabindex="0">189 <h3 class="accordion-section-title <?php echo $this->icon; ?>" tabindex="0"> 181 190 <?php echo esc_html( $this->title ); ?> 182 191 <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span> 183 192 </h3> -
src/wp-includes/class-wp-customize-widgets.php
435 435 436 436 $this->manager->add_panel( 'widgets', array( 437 437 'title' => __( 'Widgets' ), 438 'icon' => 'dashicons-welcome-widgets-menus', 438 439 'description' => __( 'Widgets are independent sections of content that can be placed into widgetized areas provided by your theme (commonly called sidebars).' ), 439 440 'priority' => 110, 440 441 ) );