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

    r6284 r6783  
    3030</div><!-- .item-list-tabs -->
    3131
    32 <?php do_action( 'bp_before_member_blogs_content' ); ?>
     32<?php
     33switch ( bp_current_action() ) :
    3334
    34 <div class="blogs myblogs" role="main">
     35    // Home/My Blogs
     36    case 'my-groups' :
     37        do_action( 'bp_before_member_blogs_content' ); ?>
    3538
    36     <?php bp_get_template_part( 'blogs/blogs-loop' ) ?>
     39        <div class="blogs myblogs" role="main">
    3740
    38 </div><!-- .blogs.myblogs -->
     41            <?php bp_get_template_part( 'blogs/blogs-loop' ) ?>
    3942
    40 <?php do_action( 'bp_after_member_blogs_content' ); ?>
     43        </div><!-- .blogs.myblogs -->
     44
     45        <?php do_action( 'bp_after_member_blogs_content' );
     46        break;
     47
     48    // Any other
     49    default :
     50        bp_get_template_part( 'members/single/plugins' );
     51        break;
     52endswitch;
Note: See TracChangeset for help on using the changeset viewer.