Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/18/2018 12:43:27 PM (9 years ago)
Author:
djpaul
Message:

Templates, Nouveau: make inline control structures consistent, and indentation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/profile-visibility.php

    r11686 r11861  
    66 */
    77
    8 if ( empty( $GLOBALS['profile_template'] ) ) return;
     8if ( empty( $GLOBALS['profile_template'] ) ) {
     9        return;
     10}
    911?>
    1012
    1113<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    1214
    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(); ?>">
    1416
    15                 <?php printf(
     17                <?php
     18                printf(
    1619                        __( 'This field may be seen by: %s', 'buddypress' ),
    1720                        '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
    18                 ); ?>
     21                );
     22                ?>
    1923                <button class="visibility-toggle-link text-button" type="button"><?php _e( 'Change', 'buddypress' ); ?></button>
    2024
    2125        </p>
    2226
    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(); ?>">
    2428                <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>
    2630
    27                         <?php bp_profile_visibility_radio_buttons() ?>
     31                        <?php bp_profile_visibility_radio_buttons(); ?>
    2832
    2933                </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>
    3135        </div>
    3236
    3337<?php else : ?>
    3438
    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(
    3742                        __( 'This field may be seen by: %s', 'buddypress' ),
    3843                        '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
    39                 ); ?>
     44                );
     45                ?>
    4046        </p>
    4147
    42 <?php endif ?>
     48<?php endif;
Note: See TracChangeset for help on using the changeset viewer.