<?php /* Template Name: Blog */ $thePosts=TPost::findAll(); WpMvc::app()->view->render('blog',array('thePosts'=>$thePosts)); ?>
<?php WpMvc::app()->view->render('header');?> <div class="main-col span-15"> <?php WpMvc::app()->view->render('loop',array('thePosts'=>$thePosts));?> </div> <div class="side-col push-1 span-8 last"> <?php WpMvc::app()->view->render('widgets/widgetConnect');?> <?php WpMvc::app()->view->render('widgets/widgetMostCommented');?> <?php dynamic_sidebar('ContentRight');?> </div> <?php WpMvc::app()->view->render('footer');?>
<?php $thePost=TPost::defaultPost(); $listPage=TPost::findAll(array('post_type'=>'page','post_status'=>'publish')); WpMvc::app()->view->render('page',array('thePost'=>$thePost,'listPage'=>$listPage)); ?>
<?php $thePosts=TPost::defaultPosts(); WpMvc::app()->view->render('search',array('thePosts'=>$thePosts)); ?>
function router() { WpMvc::app()->request->route(); }
<?php WpMvc::app()->view->render('404'); ?>
function viewcomment($comment, $args, $depth) { WpMvc::app()->view->render('comment', compact('comment', 'args', 'depth')); }
<div class="widget connect"> <h3>Connect with us</h3> <div class="space"> <a href="http://twitter.com/thinkrooms"> <img src="<?php echo WpMvc::app()->themeUrl;?>/images/icontwitter.png" alt="Twitter"/></a> <a href="<?php bloginfo('rss2_url'); ?>"> <img src="<?php echo WpMvc::app()->themeUrl;?>/images/iconrss.png" alt="RSS Feed"/></a> <a href="http://thinkrooms.tumblr.com"> <img src="<?php echo WpMvc::app()->themeUrl;?>/images/icontumblr.png" alt="Tumblr"/></a> </div> <script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script><script type="text/javascript">FB.init("--your FB Token here---");</script><fb:fan profile_id="63194188085" stream="0" connections="10" logobar="1" width="300"></fb:fan><div style="font-size:8px; padding-left:10px"><a href="http://www.facebook.com/thinkrooms">thinkrooms</a> on Facebook</div> </div>
<?php $thePost=TPost::defaultPost(); $otherPosts=TPost::findAll(array('post_not_in'=>array($thePost->id))); WpMvc::app()->view->render('single',array('thePost'=>$thePost,'otherPosts'=>$otherPosts)); ?>
<?php $thePost=TPost::defaultPost(); WpMvc::app()->view->render('author', compact('thePost')); ?>
<?php $memoList=TPost::findAll(array('posts_per_page'=>4)); WpMvc::app()->view->render('home', array('memoList'=>$memoList));