Changeset 35304 for trunk/src/wp-includes/class-wp-customize-control.php
- Timestamp:
- 10/20/2015 08:14:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r35275 r35304 345 345 */ 346 346 protected function render() { 347 $id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ));347 $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); 348 348 $class = 'customize-control customize-control-' . $this->type; 349 349 … … 1313 1313 </label> 1314 1314 <div class="container"> 1315 </div> 1315 </div> 1316 1316 </div> 1317 1317 <div class="actions"> … … 1466 1466 */ 1467 1467 public function render_content() { 1468 $id = 'reorder-widgets-desc-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); 1468 1469 ?> 1469 < span class="button-secondary add-new-widget" tabindex="0">1470 <button type="button" class="button-secondary add-new-widget" aria-expanded="false" aria-controls="available-widgets"> 1470 1471 <?php _e( 'Add a Widget' ); ?> 1471 </span> 1472 1473 <span class="reorder-toggle" tabindex="0"> 1472 </button> 1473 <button type="button" class="not-a-button reorder-toggle" aria-label="<?php esc_attr_e( 'Reorder widgets' ); ?>" aria-describedby="<?php echo esc_attr( $id ); ?>"> 1474 1474 <span class="reorder"><?php _ex( 'Reorder', 'Reorder widgets in Customizer' ); ?></span> 1475 1475 <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer' ); ?></span> 1476 </span> 1476 </button> 1477 <p class="screen-reader-text" id="<?php echo esc_attr( $id ); ?>"><?php _e( 'When in reorder mode, additional controls to reorder widgets will be available in the widgets list above.' ); ?></p> 1477 1478 <?php 1478 1479 }
Note: See TracChangeset
for help on using the changeset viewer.