Skip to:
Content

BuddyPress.org

Ticket #7348: 7348-outer-fieldset-structure.patch

File 7348-outer-fieldset-structure.patch, 9.5 KB (added by mercime, 8 years ago)
  • src/bp-templates/bp-legacy/buddypress/members/register.php

     
    170170
    171171                                                <div<?php bp_field_css_class( 'editfield' ); ?>>
    172172
     173                                                        <fieldset>
     174
    173175                                                        <?php
    174176                                                        $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    175177                                                        $field_type->edit_field_html();
     
    224226
    225227                                                        <p class="description"><?php bp_the_profile_field_description(); ?></p>
    226228
    227                                                 </div>
     229                                                        </fieldset>
     230                                                </div><!-- .editfield -->
    228231
    229232                                        <?php endwhile; ?>
    230233
  • src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

     
    3939
    4040                        <div<?php bp_field_css_class( 'editfield' ); ?>>
    4141
     42                                <fieldset>
     43
    4244                                <?php
    4345                                $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    4446                                $field_type->edit_field_html();
     
    9294                                do_action( 'bp_custom_profile_edit_fields' ); ?>
    9395
    9496                                <p class="description"><?php bp_the_profile_field_description(); ?></p>
    95                         </div>
    9697
     98                                </fieldset>
     99                        </div><!-- .editfield -->
     100
    97101                <?php endwhile; ?>
    98102
    99103        <?php
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php

     
    6767                        $user_id = bp_displayed_user_id();
    6868                } ?>
    6969
    70                 <fieldset class="checkbox">
    7170                        <legend>
    7271                                <?php bp_the_profile_field_name(); ?>
    7372                                <?php bp_the_profile_field_required_label(); ?>
     
    8281                                'user_id' => $user_id
    8382                        ) ); ?>
    8483
    85                 </fieldset>
    86 
    8784                <?php
    8885        }
    8986
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

     
    8080                        'name' => bp_get_the_profile_field_input_name() . '_year'
    8181                ) ); ?>
    8282
    83                 <fieldset class="datebox">
    84 
    8583                        <legend>
    8684                                <?php bp_the_profile_field_name(); ?>
    8785                                <?php bp_the_profile_field_required_label(); ?>
     
    138136
    139137                        </div>
    140138
    141                 </fieldset>
    142139        <?php
    143140        }
    144141
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php

     
    7373                        'name'     => bp_get_the_profile_field_input_name() . '[]',
    7474                ) ); ?>
    7575
    76                 <label for="<?php bp_the_profile_field_input_name(); ?>[]">
     76                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    7777                        <?php bp_the_profile_field_name(); ?>
    7878                        <?php bp_the_profile_field_required_label(); ?>
    79                 </label>
     79                </legend>
    8080
    8181                <?php
    8282
     
    8383                /** This action is documented in bp-xprofile/bp-xprofile-classes */
    8484                do_action( bp_get_the_profile_field_errors_action() ); ?>
    8585
    86                 <select <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     86                <select <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby=" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-1">
    8787                        <?php bp_the_profile_field_options( array(
    8888                                'user_id' => $user_id
    8989                        ) ); ?>
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php

     
    6565                        'value' =>  bp_get_the_profile_field_edit_value()
    6666                ) ); ?>
    6767
    68                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     68                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6969                        <?php bp_the_profile_field_name(); ?>
    7070                        <?php bp_the_profile_field_required_label(); ?>
    71                 </label>
     71                </legend>
    7272
    7373                <?php
    7474
     
    7575                /** This action is documented in bp-xprofile/bp-xprofile-classes */
    7676                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7777
    78                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     78                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    7979
    8080                <?php
    8181        }
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php

     
    6565                        $user_id = bp_displayed_user_id();
    6666                } ?>
    6767
    68                 <fieldset class="radio">
    69 
    7068                        <legend>
    7169                                <?php bp_the_profile_field_name(); ?>
    7270                                <?php bp_the_profile_field_required_label(); ?>
     
    8785
    8886                        <?php endif; ?>
    8987
    90                 </fieldset>
    91 
    9288                <?php
    9389        }
    9490
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php

     
    6565                        $user_id = bp_displayed_user_id();
    6666                } ?>
    6767
    68                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     68                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6969                        <?php bp_the_profile_field_name(); ?>
    7070                        <?php bp_the_profile_field_required_label(); ?>
    71                 </label>
     71                </legend>
    7272
    7373                <?php
    7474
     
    7575                /** This action is documented in bp-xprofile/bp-xprofile-classes */
    7676                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7777
    78                 <select <?php echo $this->get_edit_field_html_elements( $raw_properties ); ?>>
     78                <select <?php echo $this->get_edit_field_html_elements( $raw_properties ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    7979                        <?php bp_the_profile_field_options( array( 'user_id' => $user_id ) ); ?>
    8080                </select>
    8181
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php

     
    6363
    6464                $richtext_enabled = bp_xprofile_is_richtext_enabled_for_field(); ?>
    6565
    66                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     66                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6767                        <?php bp_the_profile_field_name(); ?>
    6868                        <?php bp_the_profile_field_required_label(); ?>
    69                 </label>
     69                </legend>
    7070
    7171                <?php
    7272
     
    8181
    8282                        ?>
    8383
    84                         <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?>><?php bp_the_profile_field_edit_value(); ?></textarea>
     84                        <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?>  aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1"><?php bp_the_profile_field_edit_value(); ?></textarea>
    8585
    8686                        <?php
    8787
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php

     
    6464                        'value' => bp_get_the_profile_field_edit_value(),
    6565                ) ); ?>
    6666
    67                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     67                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6868                        <?php bp_the_profile_field_name(); ?>
    6969                        <?php bp_the_profile_field_required_label(); ?>
    70                 </label>
     70                </legend>
    7171
    7272                <?php
    7373
     
    7474                /** This action is documented in bp-xprofile/bp-xprofile-classes */
    7575                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7676
    77                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     77                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    7878
    7979                <?php
    8080        }
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php

     
    6666                        'value'     => esc_url( bp_get_the_profile_field_edit_value() ),
    6767                ) ); ?>
    6868
    69                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     69                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    7070                        <?php bp_the_profile_field_name(); ?>
    7171                        <?php bp_the_profile_field_required_label(); ?>
    72                 </label>
     72                </legend>
    7373
    7474                <?php
    7575
     
    7676                /** This action is documented in bp-xprofile/bp-xprofile-classes */
    7777                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7878
    79                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     79                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    8080
    8181                <?php
    8282        }