Ticket #6660: 6660-visibility-level2.patch
File 6660-visibility-level2.patch, 3.8 KB (added by , 9 years ago) |
---|
-
src/bp-templates/bp-legacy/buddypress/members/register.php
175 175 176 176 if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> 177 177 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 178 <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> 178 <?php 179 printf( 180 __( 'This field can be seen by: %s', 'buddypress' ), 181 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' 182 ); 183 ?> 184 <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> 179 185 </p> 180 186 181 187 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> … … 190 196 </div> 191 197 <?php else : ?> 192 198 <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 193 <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> 199 <?php 200 printf( 201 __( 'This field can be seen by: %s', 'buddypress' ), 202 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' 203 ); 204 ?> 194 205 </p> 195 206 <?php endif ?> 196 207 -
src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php
53 53 54 54 <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> 55 55 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 56 <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a> 56 <?php 57 printf( 58 __( 'This field can be seen by: %s', 'buddypress' ), 59 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' 60 ); 61 ?> 62 <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a> 57 63 </p> 58 64 59 65 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> … … 67 73 </div> 68 74 <?php else : ?> 69 75 <div class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 70 <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> 76 <?php 77 printf( 78 __( 'This field can be seen by: %s', 'buddypress' ), 79 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' 80 ); 81 ?> 71 82 </div> 72 83 <?php endif ?> 73 84