/**
 * Add the Create a Site button to the Sites directory title.
 *
 * bp-legacy puts the Create a Site button into the page title, to mimic
 * the behavior of bp-default.
 *
 * @since BuddyPress (2.0.0)
 * @todo Deprecate
 *
 * @param string $title Sites directory title.
 * @return string
 */
function bp_legacy_theme_blog_create_button($title)
{
    return $title . ' ' . bp_get_blog_create_button();
}
/**
 * Output the Create a Site button.
 *
 * @since BuddyPress (2.0.0)
 */
function bp_blog_create_button()
{
    echo bp_get_blog_create_button();
}
/**
 * Get the Create a Site nav item.
 *
 * @since BuddyPress (2.2.0)
 *
 * @return string
 */
function bp_get_blog_create_nav_item()
{
    // Get the create a site button
    $create_blog_button = bp_get_blog_create_button();
    // Make sure the button is available
    if (empty($create_blog_button)) {
        return;
    }
    $output = '<li id="blog-create-nav">' . $create_blog_button . '</li>';
    return apply_filters('bp_get_blog_create_nav_item', $output);
}
/**
 * Get the Create a Site nav item.
 *
 * @since 2.2.0
 *
 * @return string
 */
function bp_get_blog_create_nav_item()
{
    // Get the create a site button.
    $create_blog_button = bp_get_blog_create_button();
    // Make sure the button is available.
    if (empty($create_blog_button)) {
        return;
    }
    $output = '<li id="blog-create-nav">' . $create_blog_button . '</li>';
    /**
     * Filters the Create A Site nav item output.
     *
     * @since 2.2.0
     *
     * @param string $output Nav item output.
     */
    return apply_filters('bp_get_blog_create_nav_item', $output);
}