123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- require_once INSTALLDIR.'/lib/widget.php';
- class PeopletagNav extends Menu
- {
- var $group = null;
-
- function __construct($action=null, $profile=null)
- {
- parent::__construct($action);
- $this->profile = $profile;
- }
-
- function show()
- {
- $action_name = $this->action->trimmed('action');
- $nickname = $this->profile->nickname;
- $this->out->elementStart('ul', array('class' => 'nav'));
- if (Event::handle('StartPeopletagGroupNav', array($this))) {
- $this->out->menuItem(common_local_url('peopletagsubscriptions', array('nickname' =>
- $nickname)),
-
- _m('MENU','List Subscriptions'),
-
-
- sprintf(_m('TOOLTIP','Lists subscribed to by %s.'), $nickname),
- $action_name == 'peopletagsubscriptions',
- 'nav_list_group');
- $this->out->menuItem(common_local_url('peopletagsforuser', array('nickname' =>
- $nickname)),
-
-
- sprintf(_m('MENU','Lists with %s'), $nickname),
-
-
- sprintf(_m('TOOLTIP','Lists with %s.'), $nickname),
- $action_name == 'peopletagsforuser',
- 'nav_lists_with');
- $this->out->menuItem(common_local_url('peopletagsbyuser', array('nickname' =>
- $nickname)),
-
-
- sprintf(_m('MENU','Lists by %s'), $nickname),
-
-
- sprintf(_m('TOOLTIP','Lists by %s.'), $nickname),
- $action_name == 'peopletagsbyuser',
- 'nav_lists_by');
- Event::handle('EndGroupGroupNav', array($this));
- }
- $this->out->elementEnd('ul');
- }
- }
|