12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- class SearchGroupNav extends Menu
- {
- var $q = null;
-
- function __construct(Action $action=null, $q = null)
- {
- parent::__construct($action);
- $this->q = $q;
- }
-
- function show()
- {
- $action_name = $this->action->trimmed('action');
- $this->action->elementStart('ul', array('class' => 'nav'));
- $args = array();
- if ($this->q) {
- $args['q'] = $this->q;
- }
-
- $this->out->menuItem(common_local_url('peoplesearch', $args), _m('MENU','People'),
-
- _('Find people on this site'), $action_name == 'peoplesearch', 'nav_search_people');
-
- $this->out->menuItem(common_local_url('noticesearch', $args), _m('MENU','Notices'),
-
- _('Find content of notices'), $action_name == 'noticesearch', 'nav_search_notice');
-
- $this->out->menuItem(common_local_url('groupsearch', $args), _m('MENU','Groups'),
-
- _('Find groups on this site'), $action_name == 'groupsearch', 'nav_search_group');
- $this->action->elementEnd('ul');
- }
- }
|