Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2013 02:01:12 AM (7 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility:

  • Intro duce bp_is_current_component_core() function, to determine if the current component is an active core component.
  • Use above function in plugins.php, to help determine whether or not to display the options navigation.
  • Update the root level single-member templates to use switch statements, per the settings components convention.
  • Fixes #4772.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress/members/single/groups.php

    r6284 r6783  
    3737<?php
    3838
    39 if ( bp_is_current_action( 'invites' ) ) :
    40     bp_get_template_part( 'members/single/groups/invites' );
     39switch ( bp_current_action() ) :
    4140
    42 else :
    43     do_action( 'bp_before_member_groups_content' ); ?>
     41    // Home/My Groups
     42    case 'my-groups' :
     43        do_action( 'bp_before_member_groups_content' ); ?>
    4444
    45     <div class="groups mygroups">
     45        <div class="groups mygroups">
    4646
    47         <?php bp_get_template_part( 'groups/groups-loop' ); ?>
     47            <?php bp_get_template_part( 'groups/groups-loop' ); ?>
    4848
    49     </div>
     49        </div>
    5050
    51     <?php do_action( 'bp_after_member_groups_content' ); ?>
     51        <?php do_action( 'bp_after_member_groups_content' );
     52        break;
    5253
    53 <?php endif; ?>
     54    // Group Invitations
     55    case 'invites' :
     56        bp_get_template_part( 'members/single/groups/invites' );
     57        break;
     58
     59    // Any other
     60    default :
     61        bp_get_template_part( 'members/single/plugins' );
     62        break;
     63endswitch;
Note: See TracChangeset for help on using the changeset viewer.