示例#1
0
/**
 * Returns the title (name) of the current weblog. Just a wrapper for 
 * backwards compatibility.
 *
 * @param string $strip if equal to 'strip' all HTML tags will be removed.
 * @return string
 */
function snippet_weblogtitle($strip = '')
{
    return smarty_weblogtitle(array('strip' => $strip));
}
示例#2
0
/**
 * Finds the list of blogs (without checking the user permissions).
 *
 * @param string $uid
 * @return array
 */
function pivotx_get_user_blogs($uid)
{
    global $PIVOTX;
    // $Current_weblog_orig = $Current_weblog;
    $blogs = array();
    foreach ($PIVOTX['weblogs']->getWeblogs() as $key => $value) {
        $PIVOTX['weblogs']->setCurrent($key);
        $blogs[] = array("blogid" => $key, "blogName" => smarty_weblogtitle(), "url" => $PIVOTX['paths']['host'] . $PIVOTX['weblogs']->get($key, 'link'));
    }
    // $Current_weblog = $Current_weblog_orig;
    return $blogs;
}