Ticket #28504: 28504.6.diff
File 28504.6.diff, 7.5 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
292 292 height: 22px; 293 293 } 294 294 295 .control-section .accordion-section-title { 296 padding-left: 45px; 297 } 298 299 .in-sub-panel .control-section .accordion-section-title { 300 padding-left: 14px; 301 } 302 303 .in-sub-panel .control-section .accordion-section-title:before { 304 display: none; 305 } 306 307 .control-section .accordion-section-title:before { 308 font: normal 20px/1 dashicons; 309 position: absolute; 310 top: 11px; 311 left: 14px; 312 -webkit-font-smoothing: antialiased; 313 -moz-osx-font-smoothing: grayscale; 314 } 315 316 /* Don't override custom icons, which get an additional class. */ 317 .control-panel > [class="accordion-panel-title "]:before, 318 .control-section > [class="accordion-section-title "]:before { 319 content: "\f111"; 320 } 321 295 322 .wp-full-overlay-sidebar .wp-full-overlay-header { 296 323 -webkit-transition: padding ease-in-out .18s; 297 324 transition: padding ease-in-out .18s; -
src/wp-content/themes/twentyeleven/inc/theme-options.php
551 551 // Default Layout 552 552 $wp_customize->add_section( 'twentyeleven_layout', array( 553 553 'title' => __( 'Layout', 'twentyeleven' ), 554 'icon' => 'dashicons-align-right', 554 555 'priority' => 50, 555 556 ) ); 556 557 -
src/wp-content/themes/twentyfourteen/inc/customizer.php
37 37 38 38 // Add the featured content section in case it's not already there. 39 39 $wp_customize->add_section( 'featured_content', array( 40 'title' => __( 'Featured Content', 'twentyfourteen' ), 41 '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' ), 40 'title' => __( 'Featured Content', 'twentyfourteen' ), 41 'icon' => 'dashicons-star-filled', 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' ) 44 45 ), -
src/wp-includes/class-wp-customize-manager.php
1230 1230 1231 1231 $this->add_section( 'title_tagline', array( 1232 1232 'title' => __( 'Site Title & Tagline' ), 1233 'icon' => 'dashicons-feedback', 1233 1234 'priority' => 20, 1234 1235 ) ); 1235 1236 … … 1259 1260 1260 1261 $this->add_section( 'colors', array( 1261 1262 'title' => __( 'Colors' ), 1263 'icon' => 'dashicons-art', 1262 1264 'priority' => 40, 1263 1265 ) ); 1264 1266 … … 1304 1306 1305 1307 $this->add_section( 'header_image', array( 1306 1308 'title' => __( 'Header Image' ), 1309 'icon' => 'dashicons-camera', 1307 1310 'theme_supports' => 'custom-header', 1308 1311 'priority' => 60, 1309 1312 ) ); … … 1324 1327 1325 1328 $this->add_section( 'background_image', array( 1326 1329 'title' => __( 'Background Image' ), 1330 'icon' => 'dashicons-format-image', 1327 1331 'theme_supports' => 'custom-background', 1328 1332 'priority' => 80, 1329 1333 ) ); … … 1409 1413 1410 1414 $this->add_section( 'nav', array( 1411 1415 'title' => __( 'Navigation' ), 1416 'icon' => 'dashicons-menu', 1412 1417 'theme_supports' => 'menus', 1413 1418 'priority' => 100, 1414 1419 'description' => $description . "\n\n" . __( 'You can edit your menu content on the Menus screen in the Appearance section.' ), … … 1442 1447 1443 1448 // Replicate behavior from options-reading.php and hide front page options if there are no pages 1444 1449 if ( get_pages() ) { 1445 $this->add_section( 'static_front_page', array( 1446 'title' => __( 'Static Front Page' ), 1447 // 'theme_supports' => 'static-front-page', 1448 'priority' => 120, 1450 $this->add_section( 'static_front_page', array( 1451 'title' => __( 'Static Front Page' ), 1452 'icon' => 'dashicons-admin-post', 1453 // 'theme_supports' => 'static-front-page', 1454 'priority' => 120, 1449 1455 'description' => __( 'Your theme supports a static front page.' ), 1450 1456 ) ); 1451 1457 -
src/wp-includes/class-wp-customize-panel.php
102 102 public $description = ''; 103 103 104 104 /** 105 * Dasicon for this panel. 106 * 107 * @since 4.3.0 108 * @access public 109 * @var string 110 */ 111 public $icon = ''; 112 113 /** 105 114 * Customizer sections for this panel. 106 115 * 107 116 * @since 4.0.0 … … 296 305 $classes = 'accordion-section control-section control-panel control-panel-' . $this->type; 297 306 ?> 298 307 <li id="accordion-panel-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> 299 <h3 class="accordion-section-title " tabindex="0">308 <h3 class="accordion-section-title <?php echo sanitize_html_class( $this->icon ); ?>" tabindex="0"> 300 309 <?php echo esc_html( $this->title ); ?> 301 310 <span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span> 302 311 </h3> -
src/wp-includes/class-wp-customize-section.php
111 111 public $description = ''; 112 112 113 113 /** 114 * Dasicon for the section. 115 * 116 * @since 4.3.0 117 * @access public 118 * @var string 119 */ 120 public $icon = ''; 121 122 /** 114 123 * Customizer controls for this section. 115 124 * 116 125 * @since 3.4.0 … … 303 312 $classes = 'accordion-section control-section control-section-' . $this->type; 304 313 ?> 305 314 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> 306 <h3 class="accordion-section-title " tabindex="0">315 <h3 class="accordion-section-title <?php echo sanitize_html_class( $this->icon ); ?>" tabindex="0"> 307 316 <?php echo esc_html( $this->title ); ?> 308 317 <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span> 309 318 </h3> -
src/wp-includes/class-wp-customize-widgets.php
343 343 344 344 $this->manager->add_panel( 'widgets', array( 345 345 'title' => __( 'Widgets' ), 346 'icon' => 'dashicons-welcome-widgets-menus', 346 347 'description' => __( 'Widgets are independent sections of content that can be placed into widgetized areas provided by your theme (commonly called sidebars).' ), 347 348 'priority' => 110, 348 349 ) );