diff --git src/bp-xprofile/bp-xprofile-admin.php src/bp-xprofile/bp-xprofile-admin.php
index 55c4b6d..7540031 100644
|
|
function xprofile_admin_field( $admin_field, $admin_group, $class = '' ) { |
497 | 497 | <?php bp_the_profile_field_name(); ?> |
498 | 498 | |
499 | 499 | <?php if ( empty( $field->can_delete ) ) : ?><?php esc_html_e( '(Primary)', 'buddypress' ); endif; ?> |
500 | | <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php esc_html_e( '(Required)', 'buddypress' ); endif; ?> |
| 500 | <?php bp_the_profile_field_required_label(); ?> |
501 | 501 | <?php if ( bp_xprofile_get_meta( $field->id, 'field', 'signup_position' ) ) : ?><?php esc_html_e( '(Sign-up)', 'buddypress' ); endif; ?> |
502 | 502 | |
503 | 503 | <?php |
diff --git src/bp-xprofile/bp-xprofile-template.php src/bp-xprofile/bp-xprofile-template.php
index ba3ed15..990b03a 100644
|
|
function bp_profile_settings_visibility_select( $args = '' ) { |
1314 | 1314 | */ |
1315 | 1315 | return apply_filters( 'bp_profile_settings_visibility_select', $retval, $r, $args ); |
1316 | 1316 | } |
| 1317 | |
| 1318 | function bp_the_profile_field_required_label(){ |
| 1319 | echo bp_get_the_profile_field_required_label(); |
| 1320 | } |
| 1321 | |
| 1322 | function bp_get_the_profile_field_required_label(){ |
| 1323 | $retval = ''; |
| 1324 | |
| 1325 | if ( bp_get_the_profile_field_is_required() ) { |
| 1326 | $translated_string = __( ' (required)', 'buddypress' ); |
| 1327 | |
| 1328 | $retval = '<span class="bp-required-field">'; |
| 1329 | $retval .= apply_filters( 'bp_get_the_profile_field_required_label', $translated_string, bp_get_the_profile_field_id() ); |
| 1330 | $retval .= '</span>'; |
| 1331 | |
| 1332 | } |
| 1333 | return $retval; |
| 1334 | } |
diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php
index 8801946..ea19625 100644
|
|
class BP_XProfile_Field_Type_Checkbox extends BP_XProfile_Field_Type { |
66 | 66 | <div class="checkbox"> |
67 | 67 | <label for="<?php bp_the_profile_field_input_name(); ?>"> |
68 | 68 | <?php bp_the_profile_field_name(); ?> |
69 | | <?php if ( bp_get_the_profile_field_is_required() ) : ?> |
70 | | <?php esc_html_e( '(required)', 'buddypress' ); ?> |
71 | | <?php endif; ?> |
| 69 | <?php bp_the_profile_field_required_label(); ?> |
72 | 70 | </label> |
73 | 71 | |
74 | 72 | <?php |