コード例 #1
0
ファイル: public.php プロジェクト: BenBtg/thinktank
        $s->assign('site_root', $THINKTANK_CFG['site_root_path']);
    }
    $s->display('public.tpl', $_REQUEST['t']);
} elseif (isset($_REQUEST['v'])) {
    $view = $_REQUEST['v'];
    switch ($view) {
        case 'timeline':
            if (!$s->is_cached('public.tpl')) {
                $s->assign('tweets', $td->getTweetsByPublicInstances());
                $s->assign('site_root', $THINKTANK_CFG['site_root_path']);
            }
            $s->display('public.tpl', 'timeline');
            break;
        case 'mostretweets':
            if (!$s->is_cached('public.tpl', 'mostretweets')) {
                $s->assign('tweets', $td->getMostRetweetedTweetsByPublicInstances());
                $s->assign('site_root', $THINKTANK_CFG['site_root_path']);
            }
            $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']);