Ticket #7348: 7348-outer-fieldset-structure.patch
File 7348-outer-fieldset-structure.patch, 9.5 KB (added by , 8 years ago) |
---|
-
src/bp-templates/bp-legacy/buddypress/members/register.php
170 170 171 171 <div<?php bp_field_css_class( 'editfield' ); ?>> 172 172 173 <fieldset> 174 173 175 <?php 174 176 $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); 175 177 $field_type->edit_field_html(); … … 224 226 225 227 <p class="description"><?php bp_the_profile_field_description(); ?></p> 226 228 227 </div> 229 </fieldset> 230 </div><!-- .editfield --> 228 231 229 232 <?php endwhile; ?> 230 233 -
src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php
39 39 40 40 <div<?php bp_field_css_class( 'editfield' ); ?>> 41 41 42 <fieldset> 43 42 44 <?php 43 45 $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); 44 46 $field_type->edit_field_html(); … … 92 94 do_action( 'bp_custom_profile_edit_fields' ); ?> 93 95 94 96 <p class="description"><?php bp_the_profile_field_description(); ?></p> 95 </div>96 97 98 </fieldset> 99 </div><!-- .editfield --> 100 97 101 <?php endwhile; ?> 98 102 99 103 <?php -
src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php
67 67 $user_id = bp_displayed_user_id(); 68 68 } ?> 69 69 70 <fieldset class="checkbox">71 70 <legend> 72 71 <?php bp_the_profile_field_name(); ?> 73 72 <?php bp_the_profile_field_required_label(); ?> … … 82 81 'user_id' => $user_id 83 82 ) ); ?> 84 83 85 </fieldset>86 87 84 <?php 88 85 } 89 86 -
src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
80 80 'name' => bp_get_the_profile_field_input_name() . '_year' 81 81 ) ); ?> 82 82 83 <fieldset class="datebox">84 85 83 <legend> 86 84 <?php bp_the_profile_field_name(); ?> 87 85 <?php bp_the_profile_field_required_label(); ?> … … 138 136 139 137 </div> 140 138 141 </fieldset>142 139 <?php 143 140 } 144 141 -
src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php
73 73 'name' => bp_get_the_profile_field_input_name() . '[]', 74 74 ) ); ?> 75 75 76 <l abel for="<?php bp_the_profile_field_input_name(); ?>[]">76 <legend id="<?php bp_the_profile_field_input_name(); ?>-1"> 77 77 <?php bp_the_profile_field_name(); ?> 78 78 <?php bp_the_profile_field_required_label(); ?> 79 </l abel>79 </legend> 80 80 81 81 <?php 82 82 … … 83 83 /** This action is documented in bp-xprofile/bp-xprofile-classes */ 84 84 do_action( bp_get_the_profile_field_errors_action() ); ?> 85 85 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"> 87 87 <?php bp_the_profile_field_options( array( 88 88 'user_id' => $user_id 89 89 ) ); ?> -
src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php
65 65 'value' => bp_get_the_profile_field_edit_value() 66 66 ) ); ?> 67 67 68 <l abel for="<?php bp_the_profile_field_input_name(); ?>">68 <legend id="<?php bp_the_profile_field_input_name(); ?>-1"> 69 69 <?php bp_the_profile_field_name(); ?> 70 70 <?php bp_the_profile_field_required_label(); ?> 71 </l abel>71 </legend> 72 72 73 73 <?php 74 74 … … 75 75 /** This action is documented in bp-xprofile/bp-xprofile-classes */ 76 76 do_action( bp_get_the_profile_field_errors_action() ); ?> 77 77 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"> 79 79 80 80 <?php 81 81 } -
src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php
65 65 $user_id = bp_displayed_user_id(); 66 66 } ?> 67 67 68 <fieldset class="radio">69 70 68 <legend> 71 69 <?php bp_the_profile_field_name(); ?> 72 70 <?php bp_the_profile_field_required_label(); ?> … … 87 85 88 86 <?php endif; ?> 89 87 90 </fieldset>91 92 88 <?php 93 89 } 94 90 -
src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php
65 65 $user_id = bp_displayed_user_id(); 66 66 } ?> 67 67 68 <l abel for="<?php bp_the_profile_field_input_name(); ?>">68 <legend id="<?php bp_the_profile_field_input_name(); ?>-1"> 69 69 <?php bp_the_profile_field_name(); ?> 70 70 <?php bp_the_profile_field_required_label(); ?> 71 </l abel>71 </legend> 72 72 73 73 <?php 74 74 … … 75 75 /** This action is documented in bp-xprofile/bp-xprofile-classes */ 76 76 do_action( bp_get_the_profile_field_errors_action() ); ?> 77 77 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"> 79 79 <?php bp_the_profile_field_options( array( 'user_id' => $user_id ) ); ?> 80 80 </select> 81 81 -
src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php
63 63 64 64 $richtext_enabled = bp_xprofile_is_richtext_enabled_for_field(); ?> 65 65 66 <l abel for="<?php bp_the_profile_field_input_name(); ?>">66 <legend id="<?php bp_the_profile_field_input_name(); ?>-1"> 67 67 <?php bp_the_profile_field_name(); ?> 68 68 <?php bp_the_profile_field_required_label(); ?> 69 </l abel>69 </legend> 70 70 71 71 <?php 72 72 … … 81 81 82 82 ?> 83 83 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> 85 85 86 86 <?php 87 87 -
src/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php
64 64 'value' => bp_get_the_profile_field_edit_value(), 65 65 ) ); ?> 66 66 67 <l abel for="<?php bp_the_profile_field_input_name(); ?>">67 <legend id="<?php bp_the_profile_field_input_name(); ?>-1"> 68 68 <?php bp_the_profile_field_name(); ?> 69 69 <?php bp_the_profile_field_required_label(); ?> 70 </l abel>70 </legend> 71 71 72 72 <?php 73 73 … … 74 74 /** This action is documented in bp-xprofile/bp-xprofile-classes */ 75 75 do_action( bp_get_the_profile_field_errors_action() ); ?> 76 76 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"> 78 78 79 79 <?php 80 80 } -
src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php
66 66 'value' => esc_url( bp_get_the_profile_field_edit_value() ), 67 67 ) ); ?> 68 68 69 <l abel for="<?php bp_the_profile_field_input_name(); ?>">69 <legend id="<?php bp_the_profile_field_input_name(); ?>-1"> 70 70 <?php bp_the_profile_field_name(); ?> 71 71 <?php bp_the_profile_field_required_label(); ?> 72 </l abel>72 </legend> 73 73 74 74 <?php 75 75 … … 76 76 /** This action is documented in bp-xprofile/bp-xprofile-classes */ 77 77 do_action( bp_get_the_profile_field_errors_action() ); ?> 78 78 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"> 80 80 81 81 <?php 82 82 }