Changeset 11861 for trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/profile-visibility.php
- Timestamp:
- 02/18/2018 12:43:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/profile-visibility.php
r11686 r11861 6 6 */ 7 7 8 if ( empty( $GLOBALS['profile_template'] ) ) return; 8 if ( empty( $GLOBALS['profile_template'] ) ) { 9 return; 10 } 9 11 ?> 10 12 11 13 <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> 12 14 13 <p class="field-visibility-settings-toggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">15 <p class="field-visibility-settings-toggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>"> 14 16 15 <?php printf( 17 <?php 18 printf( 16 19 __( 'This field may be seen by: %s', 'buddypress' ), 17 20 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' 18 ); ?> 21 ); 22 ?> 19 23 <button class="visibility-toggle-link text-button" type="button"><?php _e( 'Change', 'buddypress' ); ?></button> 20 24 21 25 </p> 22 26 23 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">27 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id(); ?>"> 24 28 <fieldset> 25 <legend><?php _e( 'Who is allowed to see this field?', 'buddypress' ) ?></legend>29 <legend><?php _e( 'Who is allowed to see this field?', 'buddypress' ); ?></legend> 26 30 27 <?php bp_profile_visibility_radio_buttons() ?>31 <?php bp_profile_visibility_radio_buttons(); ?> 28 32 29 33 </fieldset> 30 <button class="field-visibility-settings-close button" type="button"><?php _e( 'Close', 'buddypress' ) ?></button>34 <button class="field-visibility-settings-close button" type="button"><?php _e( 'Close', 'buddypress' ); ?></button> 31 35 </div> 32 36 33 37 <?php else : ?> 34 38 35 <p class="field-visibility-settings-notoggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 36 <?php printf( 39 <p class="field-visibility-settings-notoggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>"> 40 <?php 41 printf( 37 42 __( 'This field may be seen by: %s', 'buddypress' ), 38 43 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' 39 ); ?> 44 ); 45 ?> 40 46 </p> 41 47 42 <?php endif ?>48 <?php endif;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)