Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/18/2008 04:41:06 PM (16 years ago)
Author:
apeatling
Message:

Template tag updates to support translation in themes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r548 r554  
    365365}
    366366
    367 function bp_group_all_members_permalink() {
     367function bp_group_all_members_permalink( $echo = true ) {
    368368    global $groups_template, $bp;
    369     echo bp_group_permalink( false, true ) . '/' . MEMBERS_SLUG ;
     369   
     370    if ( $echo )
     371        echo bp_group_permalink( false, true ) . '/' . MEMBERS_SLUG ;
     372    else
     373        return bp_group_permalink( false, false ) . '/' . MEMBERS_SLUG ;
    370374}
    371375
     
    440444}
    441445
    442 function bp_group_total_members() {
    443     global $groups_template;
    444    
    445     echo $groups_template->group->total_member_count;
     446function bp_group_total_members( $echo = true ) {
     447    global $groups_template;
     448   
     449    if ( $echo )
     450        echo $groups_template->group->total_member_count;
     451    else
     452        return $groups_template->group->total_member_count;
    446453}
    447454
Note: See TracChangeset for help on using the changeset viewer.