From 9f39fd31afe198fc78c669088710af64a9976c3d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 11 Jun 2008 11:52:58 -0400 Subject: menu on home and profile darcs-hash:20080611155258-84dde-7afab3908ff3464975f8478fcd41f065466170ae.gz --- lib/stream.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/stream.php') diff --git a/lib/stream.php b/lib/stream.php index 9a4cf41eb..d8bd1f562 100644 --- a/lib/stream.php +++ b/lib/stream.php @@ -27,6 +27,24 @@ class StreamAction extends Action { parent::handle($args); } + function views_menu() { + $action = $this->trimmed('action'); + $nickname = $this->trimmed('nickname'); + + common_element_start('ul', array('id' => 'nav_views')); + common_menu_item(common_local_url('showstream', array('nickname' => + $nickname)), + _t('Profile'), + ($user->fullname) ? $user->fullname : $nickname, + $action == 'showstream'); + common_element_end('ul'); + common_menu_item(common_local_url('all', array('nickname' => + $nickname)), + _t('All'), + _t('All'), + $action == 'all'); + } + function show_notice($notice) { global $config; $profile = $notice->getProfile(); -- cgit v1.2.3-54-g00ecf