public
Description: Blog Modules for CMS Made Simple 2.0
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsms-blog.git
wishy (author)
Tue Apr 08 07:25:24 -0700 2008
commit  3aef452680351b0d4f2343fd4fbd0aa68bbf9255
tree    60dc7a2e6eb8602e858eac4d4c856382affdd232
parent  45e6bc007ff3c2a1dd558118c8e484be1cf61dff
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
?>