diff options
| author | Christian Fowler <spider@viovio.com> | 2009-09-04 19:32:50 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2009-09-04 19:32:50 +0000 |
| commit | 448d4e110cd92c52b5539bf359f971f80c77a052 (patch) | |
| tree | 3bb1ab6f65401c52bf48ec11b5f180d628fc4b63 | |
| parent | b0e138e066412f638c290a32026693064494aa0c (diff) | |
| download | feed-448d4e110cd92c52b5539bf359f971f80c77a052.tar.gz feed-448d4e110cd92c52b5539bf359f971f80c77a052.tar.bz2 feed-448d4e110cd92c52b5539bf359f971f80c77a052.zip | |
add feed menu
| -rwxr-xr-x | bit_setup_inc.php | 8 | ||||
| -rw-r--r-- | templates/menu_feed.tpl | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php index a5ea835..6e35f8b 100755 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -11,6 +11,14 @@ $gBitSystem->registerPackage( $registerHash ); if( $gBitSystem->isPackageActive( 'feed' ) ) { + if( $gBitUser->hasPermission( 'p_feed_view' )) { + $menuHash = array( + 'package_name' => FEED_PKG_NAME, + 'index_url' => FEED_PKG_URL.'index.php', + 'menu_template' => 'bitpackage:feed/menu_feed.tpl', + ); + $gBitSystem->registerAppMenu( $menuHash ); + } $menuHash = array( 'package_name' => FEED_PKG_NAME, ); diff --git a/templates/menu_feed.tpl b/templates/menu_feed.tpl index fb86ae7..a83c7eb 100644 --- a/templates/menu_feed.tpl +++ b/templates/menu_feed.tpl @@ -1,3 +1,7 @@ {strip} -{*Put user options in here, such as ability to witthold feed messages*} +<ul> + {if $gBitUser->hasPermission( 'p_feed_master' )} + <li><a class="item" href="{$smarty.const.FEED_PKG_URL}index.php">{biticon ipath="pixelmixerbasic" iname="bubble_16" iexplain="`$smarty.const.FEED_PKG_NAME` Activity" ilocation=menu}</a></li> + {/if} +</ul> {/strip} |
