Exemple #1
0
     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']);
     }
     $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']);