Changeset 59224 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 10/13/2024 07:07:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r59114 r59224 1567 1567 $hidden_class = in_array( $box['id'], $hidden, true ) ? 'hide-if-js' : ''; 1568 1568 1569 $open_class = ''; 1569 $open_class = ''; 1570 $aria_expanded = 'false'; 1570 1571 if ( ! $first_open && empty( $hidden_class ) ) { 1571 $first_open = true; 1572 $open_class = 'open'; 1572 $first_open = true; 1573 $open_class = 'open'; 1574 $aria_expanded = 'true'; 1573 1575 } 1574 1576 ?> 1575 1577 <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>"> 1576 <h3 class="accordion-section-title hndle" tabindex="0"> 1577 <?php echo esc_html( $box['title'] ); ?> 1578 <span class="screen-reader-text"> 1579 <?php 1580 /* translators: Hidden accessibility text. */ 1581 _e( 'Press return or enter to open this section' ); 1582 ?> 1583 </span> 1578 <h3 class="accordion-section-title hndle"> 1579 <button type="button" class="accordion-trigger" aria-expanded="<?php echo $aria_expanded; ?>" aria-controls="<?php echo esc_attr( $box['id'] ); ?>-content"> 1580 <span class="accordion-title"> 1581 <?php echo esc_html( $box['title'] ); ?> 1582 <span class="dashicons dashicons-arrow-down" aria-hidden="true"></span> 1583 </span> 1584 </button> 1584 1585 </h3> 1585 <div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>" >1586 <div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>-content"> 1586 1587 <div class="inside"> 1587 1588 <?php call_user_func( $box['callback'], $data_object, $box ); ?>
Note: See TracChangeset
for help on using the changeset viewer.