diff options
| author | Christian Fowler <spider@viovio.com> | 2009-09-04 18:13:29 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2009-09-04 18:13:29 +0000 |
| commit | 42eb5978a578ad4e7ac2a65016c668234652c147 (patch) | |
| tree | 21de7365dd96da90bdf3406c55d19aef84aaa1ec | |
| parent | ae4e3caa721b3e0f0d1c13374f6cd5f3089e6d86 (diff) | |
| download | feed-42eb5978a578ad4e7ac2a65016c668234652c147.tar.gz feed-42eb5978a578ad4e7ac2a65016c668234652c147.tar.bz2 feed-42eb5978a578ad4e7ac2a65016c668234652c147.zip | |
add master feed
| -rw-r--r-- | index.php | 24 | ||||
| -rw-r--r-- | templates/master_feed.tpl | 21 |
2 files changed, 45 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..de2dc26 --- /dev/null +++ b/index.php @@ -0,0 +1,24 @@ +<?php +// @version $Header: /cvsroot/bitweaver/_bit_feed/index.php,v 1.1 2009/09/04 18:13:29 spiderr Exp $ + +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Authors: spider <spider@steelsun.com> +// +----------------------------------------------------------------------+ + +require_once( '../bit_setup_inc.php' ); +require_once( FEED_PKG_PATH.'feed_lib.php' ); + +$listHash['max_records'] = 100; +$actions = feed_get_actions( $listHash ); +vd( $actions ); +$gBitSmarty->assign( 'actions', $actions); + +$gBitSystem->display( 'bitpackage:feed/master_feed.tpl', FEED_PKG_NAME ); diff --git a/templates/master_feed.tpl b/templates/master_feed.tpl new file mode 100644 index 0000000..4bf8b08 --- /dev/null +++ b/templates/master_feed.tpl @@ -0,0 +1,21 @@ +{strip} +<div class="listing feed"> + <div class="header"> + <h1>{tr}{$smarty.const.FEED_PKG_NAME|ucwords}{/tr}</h1> + </div> + + <div class="body"> + + <ul class="data feed"> + {foreach from=$actions item='action'} + <li class="item"> + {if $action.feed_icon_url}<img src="{$action.feed_icon_url}" alt="{$action.conjugation_phrase|escape}" />{/if} {$action.real_log} on {$action.last_modified|date_format} + </li> + {/foreach} + </ul> + + <div class="clear"></div> + {pagination} + </div> <!-- end .body --> +</div> <!-- end .feed --> +{/strip} |
