summaryrefslogtreecommitdiff
path: root/actions/peopletag.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-24 02:44:32 -0800
committerZach Copley <zach@controlyourself.ca>2009-01-24 02:44:32 -0800
commit7a45489f090fd2d0086c28c9da7b24736d194c9e (patch)
tree916a54a934c01f91a082d91ef051c559c88008c9 /actions/peopletag.php
parenta611408dca7658ab72c18f65b7687322a08e4bd8 (diff)
converted peopletag.php to new uiredesign; css still looks bad
Diffstat (limited to 'actions/peopletag.php')
-rw-r--r--actions/peopletag.php44
1 files changed, 12 insertions, 32 deletions
diff --git a/actions/peopletag.php b/actions/peopletag.php
index 7bcfcb93e..7c2f2b84c 100644
--- a/actions/peopletag.php
+++ b/actions/peopletag.php
@@ -19,7 +19,7 @@
if (!defined('LACONICA')) { exit(1); }
-require_once(INSTALLDIR.'/lib/profilelist.php');
+require_once INSTALLDIR.'/lib/profilelist.php';
class PeopletagAction extends Action
{
@@ -41,18 +41,18 @@ class PeopletagAction extends Action
if (!$page) {
$page = 1;
}
-
- # Looks like we're good; show the header
-
- common_show_header(sprintf(_('Users self-tagged with %s - page %d'), $tag, $page),
- null, $tag, array($this, 'show_top'));
- $this->show_people($tag, $page);
+ $this->showPeople($tag, $page);
- common_show_footer();
+ }
+
+ function title()
+ {
+ return sprintf(_('Users self-tagged with %s - page %d'), $tag, $page,
+ null, $tag, array($this, 'show_top'));
}
- function show_people($tag, $page)
+ function showPeople($tag, $page)
{
$profile = new Profile();
@@ -76,34 +76,14 @@ class PeopletagAction extends Action
'ORDER BY profile_tag.modified DESC ' .
$lim, $tag));
- $pl = new ProfileList($profile);
- $cnt = $pl->show_list();
+ $pl = new ProfileList($profile, null, $this);
+ $cnt = $pl->show();
- common_pagination($page > 1,
+ $this->pagination($page > 1,
$cnt > PROFILES_PER_PAGE,
$page,
$this->trimmed('action'),
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;
- }
}