Make WordPress Core


Ignore:
Timestamp:
12/02/2014 10:15:33 PM (12 years ago)
Author:
ocean90
Message:

Customizer: Add panel/section type as CSS class to the HTML container.

see #28709.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-section.php

    r30656 r30714  
    113113
    114114        /**
    115          * @since 4.1.0
    116          * @access public
    117          * @var string
    118          */
    119         public $type;
     115         * Type of this section.
     116         *
     117         * @since 4.1.0
     118         * @access public
     119         * @var string
     120         */
     121        public $type = 'default';
    120122
    121123        /**
     
    293295         */
    294296        protected function render() {
    295                 $classes = 'control-section accordion-section';
     297                $classes = 'accordion-section control-section control-section-' . $this->type;
    296298                ?>
    297299                <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
     
    325327
    326328        /**
     329         * Type of this section.
     330         *
    327331         * @since 4.1.0
    328332         * @access public
Note: See TracChangeset for help on using the changeset viewer.