Ticket #28504: 28504.panels.diff
File 28504.panels.diff, 2.1 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
145 145 content: "\f141"; 146 146 } 147 147 148 .control-section.control-panel > .accordion-section-title { 149 padding-left: 45px; 150 } 151 152 .control-section.control-panel > .accordion-section-title:before { 153 font: normal 20px/1 dashicons; 154 position: absolute; 155 top: 11px; 156 left: 14px; 157 -webkit-font-smoothing: antialiased; 158 -moz-osx-font-smoothing: grayscale; 159 } 160 161 /* Don't override custom icons, which get an additional class. */ 162 .control-section.control-panel > [class="accordion-section-title "]:before { 163 content: "\f111"; 164 } 165 166 #accordion-panel-widgets > .accordion-section-title:before { 167 content: "\f116"; 168 } 169 170 #accordion-panel-menus > .accordion-section-title:before { 171 content: "\f333"; 172 } 173 148 174 .accordion-sub-container.control-panel-content { 149 175 display: none; 150 176 position: absolute; -
src/wp-includes/class-wp-customize-section.php
215 215 */ 216 216 public $sections; 217 217 218 /** 219 * Icon for the panel to show in UI. 220 * 221 * @since 4.0.0 222 * @access public 223 * @var string 224 */ 225 public $icon = ''; 226 218 227 /** 219 228 * Constructor. 220 229 * … … 243 252 */ 244 253 protected function render() { 245 254 ?> 246 <li id="accordion- section-<?php echo esc_attr( $this->id ); ?>" class="control-section control-panel accordion-section">247 <h3 class="accordion-section-title " tabindex="0">255 <li id="accordion-panel-<?php echo esc_attr( $this->id ); ?>" class="control-section control-panel accordion-section"> 256 <h3 class="accordion-section-title <?php echo esc_attr( $this->icon ); ?>" tabindex="0"> 248 257 <?php echo esc_html( $this->title ); ?> 249 258 <span class="screen-reader-text"><?php _e( 'Press return or enter to open panel' ); ?></span> 250 259 </h3>