Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2018 08:52:21 PM (4 years ago)
Author:
djpaul
Message:

Templates, Nouveau: function argument indentation tweaks, and minor code standards.

File:
1 edited

Legend:

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

    r11855 r11856  
    2323
    2424    // Edit
    25     case 'edit'   :
     25    case 'edit':
    2626        bp_get_template_part( 'members/single/profile/edit' );
    2727        break;
    2828
    2929    // Change Avatar
    30     case 'change-avatar' :
     30    case 'change-avatar':
    3131        bp_get_template_part( 'members/single/profile/change-avatar' );
    3232        break;
    3333
    3434    // Change Cover Image
    35     case 'change-cover-image' :
     35    case 'change-cover-image':
    3636        bp_get_template_part( 'members/single/profile/change-cover-image' );
    3737        break;
    3838
    3939    // Compose
    40     case 'public' :
    41 
     40    case 'public':
    4241        // Display XProfile
    43         if ( bp_is_active( 'xprofile' ) )
     42        if ( bp_is_active( 'xprofile' ) ) {
    4443            bp_get_template_part( 'members/single/profile/profile-loop' );
    4544
    4645        // Display WordPress profile (fallback)
    47         else
     46        } else {
    4847            bp_get_template_part( 'members/single/profile/profile-wp' );
     48        }
    4949
    5050        break;
    5151
    5252    // Any other
    53     default :
     53    default:
    5454        bp_get_template_part( 'members/single/plugins' );
    5555        break;
Note: See TracChangeset for help on using the changeset viewer.