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/friends.php

    r6284 r6783  
    3535
    3636<?php
     37switch ( bp_current_action() ) :
    3738
    38 if ( bp_is_current_action( 'requests' ) ) :
    39      bp_get_template_part( 'members/single/friends/requests' );
     39    // Home/My Friends
     40    case 'my-friends' :
     41        do_action( 'bp_before_member_friends_content' ); ?>
    4042
    41 else :
    42     do_action( 'bp_before_member_friends_content' ); ?>
     43        <div class="members friends">
    4344
    44     <div class="members friends">
     45            <?php bp_get_template_part( 'members/members-loop' ) ?>
    4546
    46         <?php bp_get_template_part( 'members/members-loop' ) ?>
     47        </div><!-- .members.friends -->
    4748
    48     </div><!-- .members.friends -->
     49        <?php do_action( 'bp_after_member_friends_content' );
     50        break;
    4951
    50     <?php do_action( 'bp_after_member_friends_content' ); ?>
     52    case 'requests' :
     53        bp_get_template_part( 'members/single/friends/requests' );
     54        break;
    5155
    52 <?php endif; ?>
     56    // Any other
     57    default :
     58        bp_get_template_part( 'members/single/plugins' );
     59        break;
     60endswitch;
Note: See TracChangeset for help on using the changeset viewer.