public
Description: Blog Modules for CMS Made Simple 2.0
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsms-blog.git
cmsms-blog / action.default.php
100644 13 lines (9 sloc) 0.419 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
if (!isset($gCms)) die("Can't call actions directly!");
 
$smarty->assign('posts', cms_orm('BlogPost')->find_all(array('order' => 'id desc', 'conditions' => array('status = ?', 'publish'))));
 
if (coalesce_key($params, 'rss', false) == true)
  echo $this->process_template_from_database($id, $return_id, 'rss');
else
  echo $this->process_template_from_database($id, $return_id, 'summary');
 
# vim:ts=4 sw=4 noet
?>