Skip to:
Content

BuddyPress.org

Ticket #7665: 7665.patch

File 7665.patch, 3.6 KB (added by mercime, 6 years ago)

if second option chosen

  • src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

     
    105105                                 */
    106106                                do_action( bp_get_the_profile_field_errors_action() ); ?>
    107107
    108                                 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
    109                                         /* translators: accessibility text */
    110                                         esc_html_e( 'Select day', 'buddypress' );
     108                                <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="bp-datefield"><?php
     109                                        esc_html_e( 'Day', 'buddypress' );
    111110                                ?></label>
    112111                                <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    113112                                        <?php bp_the_profile_field_options( array(
     
    116115                                        ) ); ?>
    117116                                </select>
    118117
    119                                 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
    120                                         /* translators: accessibility text */
    121                                         esc_html_e( 'Select month', 'buddypress' );
     118                                <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="bp-datefield"><?php
     119                                        esc_html_e( 'Month', 'buddypress' );
    122120                                ?></label>
    123121                                <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    124122                                        <?php bp_the_profile_field_options( array(
     
    127125                                        ) ); ?>
    128126                                </select>
    129127
    130                                 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
    131                                         /* translators: accessibility text */
    132                                         esc_html_e( 'Select year', 'buddypress' );
     128                                <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="bp-datefield"><?php
     129                                        esc_html_e( 'Year', 'buddypress' );
    133130                                ?></label>
    134131                                <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    135132                                        <?php bp_the_profile_field_options( array(
     
    300297                        'name' => bp_get_the_profile_field_input_name() . '_year'
    301298                ) ); ?>
    302299
    303                 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="screen-reader-text"><?php
    304                         /* translators: accessibility text */
    305                         esc_html_e( 'Select day', 'buddypress' );
     300                <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="bp-datefield"><?php
     301                        esc_html_e( 'Day', 'buddypress' );
    306302                ?></label>
    307303                <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    308304                        <?php bp_the_profile_field_options( array( 'type' => 'day' ) ); ?>
    309305                </select>
    310306
    311                 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="screen-reader-text"><?php
    312                         /* translators: accessibility text */
    313                         esc_html_e( 'Select month', 'buddypress' );
     307                <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="bp-datefield"><?php
     308                        esc_html_e( 'Month', 'buddypress' );
    314309                ?></label>
    315310                <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    316311                        <?php bp_the_profile_field_options( array( 'type' => 'month' ) ); ?>
    317312                </select>
    318313
    319                 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="screen-reader-text"><?php
    320                         /* translators: accessibility text */
    321                         esc_html_e( 'Select year', 'buddypress' );
     314                <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="bp-datefield"><?php
     315                        esc_html_e( 'Year', 'buddypress' );
    322316                ?></label>
    323317                <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    324318                        <?php bp_the_profile_field_options( array( 'type' => 'year' ) ); ?>