common_show_header(sprintf(_('Users self-tagged with %s - page %d'), $tag, $page),
NULL, $tag, array($this, 'show_top'));
- $this->show_people($tag);
+ $this->show_people($tag, $page);
common_show_footer();
}
- function show_people($tag) {
+ function show_people($tag, $page) {
$profile = new Profile();
'ON profile.id = profile_tag.tagger ' .
'WHERE profile_tag.tagger = profile_tag.tagged ' .
'AND tag = "%s" ' .
- 'ORDER BY profile_tag.created DESC ' .
+ 'ORDER BY profile_tag.modified DESC ' .
$lim, $tag));
$pl = new ProfileList($profile);
}
function show_top($tag) {
- $instr = $this->get_instructions();
- $output = common_markup_to_html($instr);
+ $instr = sprintf(_('These are users who have tagged themselves "%s" ' .
+ 'to show a common interest, characteristic, hobby or job.'), $tag);
common_element_start('div', 'instructions');
- common_raw($output);
+ common_element_start('p');
+ common_text($instr);
+ common_element_end('p');
common_element_end('div');
}
- function get_instructions($tag) {
- return sprintf(_('These are %%site.name%% users who have tagged themselves "%s" ' .
- 'to show a common interest, characteristic, hobby or job.'), $tag);
- }
-
function get_title() {
return NULL;
}