X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsearchgroupnav.php;h=cfe8fde3535e925a8ed6a9a57fd3bb7757ec39d0;hb=bb087a965009fd93a5c02a9e10ab90adcc6b7963;hp=9fe3c2379af4db7aa87b53bee2db486922983775;hpb=843358be44b9b107441cbc2e35d7794343762fb0;p=quix0rs-gnu-social.git diff --git a/lib/searchgroupnav.php b/lib/searchgroupnav.php index 9fe3c2379a..cfe8fde353 100644 --- a/lib/searchgroupnav.php +++ b/lib/searchgroupnav.php @@ -1,8 +1,8 @@ . * * @category Menu - * @package Laconica - * @author Evan Prodromou - * @copyright 2008 Control Yourself, Inc. + * @package StatusNet + * @author Evan Prodromou + * @copyright 2008-2011 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR.'/lib/widget.php'; - /** * Menu for public group of actions * - * @category Output - * @package Laconica - * @author Evan Prodromou + * @category Menu + * @package StatusNet + * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ * * @see Widget */ -class SearchGroupNav extends Widget +class SearchGroupNav extends Menu { - var $action = null; var $q = null; /** @@ -59,7 +56,6 @@ class SearchGroupNav extends Widget function __construct($action=null, $q = null) { parent::__construct($action); - $this->action = $action; $this->q = $q; } @@ -79,10 +75,10 @@ class SearchGroupNav extends Widget } $this->out->menuItem(common_local_url('peoplesearch', $args), _('People'), _('Find people on this site'), $action_name == 'peoplesearch', 'nav_search_people'); - $this->out->menuItem(common_local_url('noticesearch', $args), _('Notice'), + $this->out->menuItem(common_local_url('noticesearch', $args), _('Notices'), _('Find content of notices'), $action_name == 'noticesearch', 'nav_search_notice'); - $this->out->menuItem(common_local_url('groupsearch', $args), _('Group'), - _('Find groups on this site'), $action_name == 'groupsearch', 'nav_search_notice'); + $this->out->menuItem(common_local_url('groupsearch', $args), _('Groups'), + _('Find groups on this site'), $action_name == 'groupsearch', 'nav_search_group'); $this->action->elementEnd('ul'); } }