459 <?php endif; ?> |
459 <?php endif; ?> |
460 <fieldset class="comment-reply"> |
460 <fieldset class="comment-reply"> |
461 <legend> |
461 <legend> |
462 <span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span> |
462 <span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span> |
463 <span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span> |
463 <span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span> |
464 <span class="hidden" id="addhead"><?php _e( 'Add New Comment' ); ?></span> |
464 <span class="hidden" id="addhead"><?php _e( 'Add Comment' ); ?></span> |
465 </legend> |
465 </legend> |
466 |
466 |
467 <div id="replycontainer"> |
467 <div id="replycontainer"> |
468 <label for="replycontent" class="screen-reader-text"> |
468 <label for="replycontent" class="screen-reader-text"> |
469 <?php |
469 <?php |
848 $month .= '</select></label>'; |
848 $month .= '</select></label>'; |
849 |
849 |
850 $day = '<label><span class="screen-reader-text">' . |
850 $day = '<label><span class="screen-reader-text">' . |
851 /* translators: Hidden accessibility text. */ |
851 /* translators: Hidden accessibility text. */ |
852 __( 'Day' ) . |
852 __( 'Day' ) . |
853 '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; |
853 '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>'; |
854 $year = '<label><span class="screen-reader-text">' . |
854 $year = '<label><span class="screen-reader-text">' . |
855 /* translators: Hidden accessibility text. */ |
855 /* translators: Hidden accessibility text. */ |
856 __( 'Year' ) . |
856 __( 'Year' ) . |
857 '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; |
857 '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>'; |
858 $hour = '<label><span class="screen-reader-text">' . |
858 $hour = '<label><span class="screen-reader-text">' . |
859 /* translators: Hidden accessibility text. */ |
859 /* translators: Hidden accessibility text. */ |
860 __( 'Hour' ) . |
860 __( 'Hour' ) . |
861 '</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; |
861 '</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>'; |
862 $minute = '<label><span class="screen-reader-text">' . |
862 $minute = '<label><span class="screen-reader-text">' . |
863 /* translators: Hidden accessibility text. */ |
863 /* translators: Hidden accessibility text. */ |
864 __( 'Minute' ) . |
864 __( 'Minute' ) . |
865 '</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; |
865 '</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>'; |
866 |
866 |
867 echo '<div class="timestamp-wrap">'; |
867 echo '<div class="timestamp-wrap">'; |
868 /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */ |
868 /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */ |
869 printf( __( '%1$s %2$s, %3$s at %4$s:%5$s' ), $month, $day, $year, $hour, $minute ); |
869 printf( __( '%1$s %2$s, %3$s at %4$s:%5$s' ), $month, $day, $year, $hour, $minute ); |
870 |
870 |
1564 } |
1564 } |
1565 |
1565 |
1566 ++$i; |
1566 ++$i; |
1567 $hidden_class = in_array( $box['id'], $hidden, true ) ? 'hide-if-js' : ''; |
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 if ( ! $first_open && empty( $hidden_class ) ) { |
1571 if ( ! $first_open && empty( $hidden_class ) ) { |
1571 $first_open = true; |
1572 $first_open = true; |
1572 $open_class = 'open'; |
1573 $open_class = 'open'; |
|
1574 $aria_expanded = 'true'; |
1573 } |
1575 } |
1574 ?> |
1576 ?> |
1575 <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'] ); ?>"> |
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"> |
1578 <h3 class="accordion-section-title hndle"> |
1577 <?php echo esc_html( $box['title'] ); ?> |
1579 <button type="button" class="accordion-trigger" aria-expanded="<?php echo $aria_expanded; ?>" aria-controls="<?php echo esc_attr( $box['id'] ); ?>-content"> |
1578 <span class="screen-reader-text"> |
1580 <span class="accordion-title"> |
1579 <?php |
1581 <?php echo esc_html( $box['title'] ); ?> |
1580 /* translators: Hidden accessibility text. */ |
1582 <span class="dashicons dashicons-arrow-down" aria-hidden="true"></span> |
1581 _e( 'Press return or enter to open this section' ); |
1583 </span> |
1582 ?> |
1584 </button> |
1583 </span> |
|
1584 </h3> |
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 <div class="inside"> |
1587 <div class="inside"> |
1587 <?php call_user_func( $box['callback'], $data_object, $box ); ?> |
1588 <?php call_user_func( $box['callback'], $data_object, $box ); ?> |
1588 </div><!-- .inside --> |
1589 </div><!-- .inside --> |
1589 </div><!-- .accordion-section-content --> |
1590 </div><!-- .accordion-section-content --> |
1590 </li><!-- .accordion-section --> |
1591 </li><!-- .accordion-section --> |
1781 |
1782 |
1782 if ( $section['callback'] ) { |
1783 if ( $section['callback'] ) { |
1783 call_user_func( $section['callback'], $section ); |
1784 call_user_func( $section['callback'], $section ); |
1784 } |
1785 } |
1785 |
1786 |
1786 if ( ! isset( $wp_settings_fields ) || ! isset( $wp_settings_fields[ $page ] ) || ! isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) { |
1787 if ( isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) { |
1787 continue; |
1788 echo '<table class="form-table" role="presentation">'; |
1788 } |
1789 do_settings_fields( $page, $section['id'] ); |
1789 echo '<table class="form-table" role="presentation">'; |
1790 echo '</table>'; |
1790 do_settings_fields( $page, $section['id'] ); |
1791 } |
1791 echo '</table>'; |
|
1792 |
1792 |
1793 if ( '' !== $section['after_section'] ) { |
1793 if ( '' !== $section['after_section'] ) { |
1794 echo wp_kses_post( $section['after_section'] ); |
1794 echo wp_kses_post( $section['after_section'] ); |
1795 } |
1795 } |
1796 } |
1796 } |