summaryrefslogtreecommitdiff
path: root/actions/tag.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
commiteaa81d25fa7bd954132ce7f901fae69b0d46ec1a (patch)
tree25ac22e73ca93935b2a27e1e91e485b04ec3e01d /actions/tag.php
parent2b2fb276219f87cdc0430d91ac3695e098ae48f4 (diff)
Convert all actions to use new UI functions
I did a massive search-and-replace to get all the action subclasses to use the new output function (common_element() -> $this->element(), etc.) There's still a lot to do, but it's a first step
Diffstat (limited to 'actions/tag.php')
-rw-r--r--actions/tag.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/actions/tag.php b/actions/tag.php
index 8a3f90c16..3096b75b3 100644
--- a/actions/tag.php
+++ b/actions/tag.php
@@ -51,7 +51,7 @@ class TagAction extends StreamAction
function show_header($tag = false)
{
if ($tag) {
- common_element('link', array('rel' => 'alternate',
+ $this->element('link', array('rel' => 'alternate',
'href' => common_local_url('tagrss', array('tag' => $tag)),
'type' => 'application/rss+xml',
'title' => sprintf(_('Feed for tag %s'), $tag)));
@@ -68,9 +68,9 @@ class TagAction extends StreamAction
if (!$tag) {
$instr = $this->get_instructions();
$output = common_markup_to_html($instr);
- common_element_start('div', 'instructions');
- common_raw($output);
- common_element_end('div');
+ $this->elementStart('div', 'instructions');
+ $this->raw($output);
+ $this->elementEnd('div');
$this->public_views_menu();
}
else {
@@ -110,7 +110,7 @@ class TagAction extends StreamAction
$cnt = $tags->find();
if ($cnt > 0) {
- common_element_start('p', 'tagcloud');
+ $this->elementStart('p', 'tagcloud');
$tw = array();
$sum = 0;
@@ -125,7 +125,7 @@ class TagAction extends StreamAction
$this->show_tag($tag, $weight, $weight/$sum);
}
- common_element_end('p');
+ $this->elementEnd('p');
}
}
@@ -149,10 +149,10 @@ class TagAction extends StreamAction
$cls = 'smallest';
}
- common_element('a', array('class' => "$cls weight-$weight relative-$relative",
+ $this->element('a', array('class' => "$cls weight-$weight relative-$relative",
'href' => common_local_url('tag', array('tag' => $tag))),
$tag);
- common_text(' ');
+ $this->text(' ');
}
function show_notices($tag)