summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-05-08 02:35:52 +0000
committerwjames5 <will@tekimaki.com>2007-05-08 02:35:52 +0000
commitbc51778dd28414d30d1c279d90c7e0dfa3ad5de8 (patch)
tree191a18745bfc08f17e3a8bcbd401d9b6f94688d8
parent623b66f33f2ea6811573e2819bc30093a4c0299d (diff)
downloadtags-bc51778dd28414d30d1c279d90c7e0dfa3ad5de8.tar.gz
tags-bc51778dd28414d30d1c279d90c7e0dfa3ad5de8.tar.bz2
tags-bc51778dd28414d30d1c279d90c7e0dfa3ad5de8.zip
remove strip from tags clouds so they wrap properly
-rw-r--r--modules/mod_tags_cloud.tpl9
-rw-r--r--templates/header_inc.tpl2
-rw-r--r--templates/tags_cloud.tpl7
3 files changed, 7 insertions, 11 deletions
diff --git a/modules/mod_tags_cloud.tpl b/modules/mod_tags_cloud.tpl
index e959527..dc52a48 100644
--- a/modules/mod_tags_cloud.tpl
+++ b/modules/mod_tags_cloud.tpl
@@ -1,14 +1,11 @@
-{strip}
-
+{* don't use strip on this tpl - it will mess up the list of links, as the browser will read them as one continuous string *}
{if $gBitSystem->isPackageActive('tags')}
{bitmodule title="$moduleTitle" name="tags"}
<ul id="cloud">
{if $modTagData}
{foreach item=tag from=$modTagData}
<li class="tag{$tag.tagscale}">
- <a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tag.tag|escape:"url"}">
- {$tag.tag}
- </a>
+ <a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tag.tag|escape:"url"}">{$tag.tag}</a>
</li>
{/foreach}
{else}
@@ -19,5 +16,3 @@
</ul>
{/bitmodule}
{/if}
-
-{/strip} \ No newline at end of file
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl
index 272cb75..6393df0 100644
--- a/templates/header_inc.tpl
+++ b/templates/header_inc.tpl
@@ -4,7 +4,7 @@
{* {include file="bitpackage:tags/tags_css.tpl"} *}
{literal}
#cloud {margin:0; padding:0;}
- #cloud li {display:inline; margin:0 1.4em 0 0;}
+ #cloud li {display:inline; margin:0 .5em 0 0;}
#cloud .tag1 a {font-size:0.7em; font-weight:100;}
#cloud .tag2 a {font-size:0.8em; font-weight:200;}
#cloud .tag3 a {font-size:0.9em; font-weight:300;}
diff --git a/templates/tags_cloud.tpl b/templates/tags_cloud.tpl
index e269972..2c89732 100644
--- a/templates/tags_cloud.tpl
+++ b/templates/tags_cloud.tpl
@@ -1,8 +1,10 @@
-{strip}
+{* don't use strip on this tpl - it will mess up the list of links, as the browser will read them as one continuous string *}
{if $tagData}
<ul id="cloud">
{foreach item=tag from=$tagData}
- <li class="tag{$tag.tagscale}"><a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tag.tag}">{$tag.tag|escape:"url"}</a> <small>({$tag.popcant})</small></li>
+ <li class="tag{$tag.tagscale}">
+ <a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tag.tag|escape:"url"}">{$tag.tag}</a>&nbsp;<small>({$tag.popcant})</small>
+ </li>
{/foreach}
</ul>
{else}
@@ -10,4 +12,3 @@
{tr}No tags found{/tr}
</div>
{/if}
-{/strip}