Make WordPress Core

Ticket #28504: 28504.6.diff

File 28504.6.diff, 7.5 KB (added by celloexpressions, 10 years ago)

Refresh.

  • src/wp-admin/css/customize-controls.css

     
    292292        height: 22px;
    293293}
    294294
     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
    295322.wp-full-overlay-sidebar .wp-full-overlay-header {
    296323        -webkit-transition: padding ease-in-out .18s;
    297324        transition: padding ease-in-out .18s;
  • src/wp-content/themes/twentyeleven/inc/theme-options.php

     
    551551        // Default Layout
    552552        $wp_customize->add_section( 'twentyeleven_layout', array(
    553553                'title'    => __( 'Layout', 'twentyeleven' ),
     554                'icon'     => 'dashicons-align-right',
    554555                'priority' => 50,
    555556        ) );
    556557
  • src/wp-content/themes/twentyfourteen/inc/customizer.php

     
    3737
    3838        // Add the featured content section in case it's not already there.
    3939        $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' ),
    4243                        esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
    4344                        admin_url( 'edit.php?show_sticky=1' )
    4445                ),
  • src/wp-includes/class-wp-customize-manager.php

     
    12301230
    12311231                $this->add_section( 'title_tagline', array(
    12321232                        'title'    => __( 'Site Title & Tagline' ),
     1233                        'icon'     => 'dashicons-feedback',
    12331234                        'priority' => 20,
    12341235                ) );
    12351236
     
    12591260
    12601261                $this->add_section( 'colors', array(
    12611262                        'title'          => __( 'Colors' ),
     1263                        'icon'           => 'dashicons-art',
    12621264                        'priority'       => 40,
    12631265                ) );
    12641266
     
    13041306
    13051307                $this->add_section( 'header_image', array(
    13061308                        'title'          => __( 'Header Image' ),
     1309                        'icon'           => 'dashicons-camera',
    13071310                        'theme_supports' => 'custom-header',
    13081311                        'priority'       => 60,
    13091312                ) );
     
    13241327
    13251328                $this->add_section( 'background_image', array(
    13261329                        'title'          => __( 'Background Image' ),
     1330                        'icon'           => 'dashicons-format-image',
    13271331                        'theme_supports' => 'custom-background',
    13281332                        'priority'       => 80,
    13291333                ) );
     
    14091413
    14101414                $this->add_section( 'nav', array(
    14111415                        'title'          => __( 'Navigation' ),
     1416                        'icon'           => 'dashicons-menu',
    14121417                        'theme_supports' => 'menus',
    14131418                        'priority'       => 100,
    14141419                        'description'    => $description . "\n\n" . __( 'You can edit your menu content on the Menus screen in the Appearance section.' ),
     
    14421447
    14431448                // Replicate behavior from options-reading.php and hide front page options if there are no pages
    14441449                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,
    14491455                                'description'    => __( 'Your theme supports a static front page.' ),
    14501456                        ) );
    14511457
  • src/wp-includes/class-wp-customize-panel.php

     
    102102        public $description = '';
    103103
    104104        /**
     105         * Dasicon for this panel.
     106         *
     107         * @since 4.3.0
     108         * @access public
     109         * @var string
     110         */
     111        public $icon = '';
     112
     113        /**
    105114         * Customizer sections for this panel.
    106115         *
    107116         * @since 4.0.0
     
    296305                $classes = 'accordion-section control-section control-panel control-panel-' . $this->type;
    297306                ?>
    298307                <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">
    300309                                <?php echo esc_html( $this->title ); ?>
    301310                                <span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span>
    302311                        </h3>
  • src/wp-includes/class-wp-customize-section.php

     
    111111        public $description = '';
    112112
    113113        /**
     114         * Dasicon for the section.
     115         *
     116         * @since 4.3.0
     117         * @access public
     118         * @var string
     119         */
     120        public $icon = '';
     121
     122        /**
    114123         * Customizer controls for this section.
    115124         *
    116125         * @since 3.4.0
     
    303312                $classes = 'accordion-section control-section control-section-' . $this->type;
    304313                ?>
    305314                <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">
    307316                                <?php echo esc_html( $this->title ); ?>
    308317                                <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span>
    309318                        </h3>
  • src/wp-includes/class-wp-customize-widgets.php

     
    343343
    344344                $this->manager->add_panel( 'widgets', array(
    345345                        'title'       => __( 'Widgets' ),
     346                        'icon'        => 'dashicons-welcome-widgets-menus',
    346347                        'description' => __( 'Widgets are independent sections of content that can be placed into widgetized areas provided by your theme (commonly called sidebars).' ),
    347348                        'priority'    => 110,
    348349                ) );