From 9d6becdb6c4cfa6df3db8eb50fc1618b7c1449bd Mon Sep 17 00:00:00 2001 From: shish Date: Thu, 5 Jul 2007 20:18:11 +0000 Subject: [PATCH] re-layout of tag list, and better white space git-svn-id: file:///home/shish/svn/shimmie2/trunk@226 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/tag_list/theme.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ext/tag_list/theme.php b/ext/tag_list/theme.php index 2af1260c..3439f16d 100644 --- a/ext/tag_list/theme.php +++ b/ext/tag_list/theme.php @@ -35,13 +35,13 @@ class TagListTheme extends Themelet { $h_tag = html_escape($tag); $h_tag_no_underscores = str_replace("_", " ", $h_tag); $count = $row['count']; - if($n++) $html .= "
"; - $link = $this->tag_link($row['tag']); - $html .= "$h_tag_no_underscores\n"; + if($n++) $html .= "\n
"; if(!is_null($config->get_string('info_link'))) { $link = str_replace('$tag', $tag, $config->get_string('info_link')); - $html .= " ?\n"; + $html .= " ?"; } + $link = $this->tag_link($row['tag']); + $html .= " $h_tag_no_underscores"; } $page->add_block(new Block("Related", $html, "left")); @@ -64,15 +64,15 @@ class TagListTheme extends Themelet { $h_tag = html_escape($tag); $h_tag_no_underscores = str_replace("_", " ", $h_tag); $count = $row['count']; - if($n++) $html .= "
"; - $link = $this->tag_link($row['tag']); - $html .= "$h_tag_no_underscores\n"; - if($config->get_bool("tag_list_numbers")) { - $html .= " $count"; - } + if($n++) $html .= "\n
"; if(!is_null($config->get_string('info_link'))) { $link = str_replace('$tag', $tag, $config->get_string('info_link')); - $html .= " ?\n"; + $html .= " ?"; + } + $link = $this->tag_link($row['tag']); + $html .= " $h_tag_no_underscores"; + if($config->get_bool("tag_list_numbers")) { + $html .= " $count"; } } @@ -96,14 +96,14 @@ class TagListTheme extends Themelet { $tag = $row['tag']; $h_tag = html_escape($tag); $h_tag_no_underscores = str_replace("_", " ", $h_tag); - if($n++) $html .= "
"; - $link = $this->tag_link($row['tag']); - $html .= "$h_tag_no_underscores\n"; - $html .= $this->ars($tag, $search); + if($n++) $html .= "\n
"; if(!is_null($config->get_string('info_link'))) { $link = str_replace('$tag', $tag, $config->get_string('info_link')); - $html .= " ?\n"; + $html .= " ?"; } + $link = $this->tag_link($row['tag']); + $html .= " $h_tag_no_underscores"; + $html .= $this->ars($tag, $search); } $page->add_block(new Block("Refine Search", $html, "left", 60));