Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/23/2009 09:55:40 AM (17 years ago)
Author:
apeatling
Message:

Added bp_home_blog_url() template tag that will echo the correct blog path depending on whether the buddypress-home theme is being used or not.

File:
1 edited

Legend:

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

    r1386 r1394  
    10201020}
    10211021
     1022function bp_home_blog_url() {
     1023        global $bp;
     1024
     1025        if ( 'buddypress-home' == get_blog_option( BP_ROOT_BLOG, 'template' ) )
     1026                echo $bp->root_domain . '/' . BP_HOME_BLOG_SLUG;
     1027        else
     1028                echo $bp->root_domain;
     1029}
     1030
    10221031
    10231032/* Template functions for fetching globals, without querying the DB again
Note: See TracChangeset for help on using the changeset viewer.