function smarty_function_blogs_getblogs($params, &$smarty)
{
    if (empty($params['assign'])) {
        $params['assign'] = 'posts';
    }
    require_once "delicious.conf";
    require_once "DeliciousData.class.php";
    $delicious = DeliciousMethods($user, $pass);
    $posts = $delicious->getPosts(!empty($params['tag']) ? $params['tag'] : false, !empty($params['date']) ? $params['date'] : false);
    $smarty->assign($params['assign'], $posts);
}
function smarty_function_delicious_gettags($params, &$smarty)
{
    if (empty($params['assign'])) {
        $params['assign'] = 'tags';
    }
    require_once "delicious.conf";
    require_once "DeliciousData.class.php";
    $delicious = DeliciousMethods($user, $pass);
    $tags = $delicious->getTags();
    $smarty->assign($params['assign'], $tags);
}
function smarty_function_delicious_getrecentposts($params, &$smarty)
{
    if (empty($params['assign'])) {
        $params['assign'] = 'posts';
    }
    require_once "delicious.conf";
    require_once "DeliciousData.class.php";
    $delicious = DeliciousMethods($user, $pass);
    $posts = $delicious->recentPosts(!empty($params['tag']) ? $params['tag'] : null, !empty($params['limit']) ? $params['limit'] : null);
    $smarty->assign($params['assign'], $posts);
}