Пример #1
0
            $s->display('public.tpl', 'mostretweets');
            break;
        case 'mostreplies':
            if (!$s->is_cached('public.tpl', 'mostreplies')) {
                $s->assign('tweets', $td->getMostRepliedToTweetsByPublicInstances());
                $s->assign('site_root', $THINKTANK_CFG['site_root_path']);
            }
            $s->display('public.tpl', 'mostreplies');
            break;
        case 'photos':
            if (!$s->is_cached('public.tpl', 'photos')) {
                $s->assign('tweets', $td->getPhotoTweetsByPublicInstances());
                $s->assign('site_root', $THINKTANK_CFG['site_root_path']);
            }
            $s->display('public.tpl', 'photos');
            break;
        case 'links':
            if (!$s->is_cached('public.tpl', 'links')) {
                $s->assign('tweets', $td->getLinkTweetsByPublicInstances());
                $s->assign('site_root', $THINKTANK_CFG['site_root_path']);
            }
            $s->display('public.tpl', 'links');
            break;
    }
} else {
    if (!$s->is_cached('public.tpl', 'timeline')) {
        $s->assign('tweets', $td->getTweetsByPublicInstances());
        $s->assign('site_root', $THINKTANK_CFG['site_root_path']);
    }
    $s->display('public.tpl', 'timeline');
}