12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- class ListsNav extends MoreMenu
- {
- var $profile=null;
- var $lists=null;
- function __construct($out, Profile $profile)
- {
- parent::__construct($out);
- $this->profile = $profile;
- $this->lists = $profile->getLists(Profile::current());
- }
- function tag()
- {
- return 'lists';
- }
- function getItems()
- {
- $items = array();
- while ($this->lists->fetch()) {
- $mode = $this->lists->private ? 'private' : 'public';
- $items[] = array('showprofiletag',
- array('nickname' => $this->profile->getNickname(),
- 'tag' => $this->lists->tag),
- $this->lists->tag,
- '');
- }
- return $items;
- }
- function hasLists()
- {
- return (!empty($this->lists) && $this->lists->N > 0);
- }
- function seeAllItem()
- {
- return array('peopletagsbyuser',
- array('nickname' => $this->profile->nickname),
-
- _('See all'),
-
- _('See all lists you have created.'));
- }
- }
|