forked from GNUsocial/gnu-social
converted peopletag.php to new uiredesign; css still looks bad
This commit is contained in:
parent
a611408dca
commit
7a45489f09
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
if (!defined('LACONICA')) { exit(1); }
|
if (!defined('LACONICA')) { exit(1); }
|
||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/profilelist.php');
|
require_once INSTALLDIR.'/lib/profilelist.php';
|
||||||
|
|
||||||
class PeopletagAction extends Action
|
class PeopletagAction extends Action
|
||||||
{
|
{
|
||||||
@ -42,17 +42,17 @@ class PeopletagAction extends Action
|
|||||||
$page = 1;
|
$page = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Looks like we're good; show the header
|
$this->showPeople($tag, $page);
|
||||||
|
|
||||||
common_show_header(sprintf(_('Users self-tagged with %s - page %d'), $tag, $page),
|
|
||||||
null, $tag, array($this, 'show_top'));
|
|
||||||
|
|
||||||
$this->show_people($tag, $page);
|
|
||||||
|
|
||||||
common_show_footer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_people($tag, $page)
|
function title()
|
||||||
|
{
|
||||||
|
return sprintf(_('Users self-tagged with %s - page %d'), $tag, $page,
|
||||||
|
null, $tag, array($this, 'show_top'));
|
||||||
|
}
|
||||||
|
|
||||||
|
function showPeople($tag, $page)
|
||||||
{
|
{
|
||||||
|
|
||||||
$profile = new Profile();
|
$profile = new Profile();
|
||||||
@ -76,34 +76,14 @@ class PeopletagAction extends Action
|
|||||||
'ORDER BY profile_tag.modified DESC ' .
|
'ORDER BY profile_tag.modified DESC ' .
|
||||||
$lim, $tag));
|
$lim, $tag));
|
||||||
|
|
||||||
$pl = new ProfileList($profile);
|
$pl = new ProfileList($profile, null, $this);
|
||||||
$cnt = $pl->show_list();
|
$cnt = $pl->show();
|
||||||
|
|
||||||
common_pagination($page > 1,
|
$this->pagination($page > 1,
|
||||||
$cnt > PROFILES_PER_PAGE,
|
$cnt > PROFILES_PER_PAGE,
|
||||||
$page,
|
$page,
|
||||||
$this->trimmed('action'),
|
$this->trimmed('action'),
|
||||||
array('tag' => $tag));
|
array('tag' => $tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_top($tag)
|
|
||||||
{
|
|
||||||
$instr = sprintf(_('These are users who have tagged themselves "%s" ' .
|
|
||||||
'to show a common interest, characteristic, hobby or job.'), $tag);
|
|
||||||
$this->elementStart('div', 'instructions');
|
|
||||||
$this->elementStart('p');
|
|
||||||
$this->text($instr);
|
|
||||||
$this->elementEnd('p');
|
|
||||||
$this->elementEnd('div');
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_title()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function show_header($arr)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user