summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-03-16 18:52:06 +0000
committerwjames5 <will@tekimaki.com>2007-03-16 18:52:06 +0000
commit37ddc789231d73ae8c21bc3e4a7eb1f11098341a (patch)
treee0f230ef87a46dc2b7c41c814836718df27e5684 /templates
parent9a6577b6180d1451f1c4eace3bca6a8a66dbf0aa (diff)
downloadtags-37ddc789231d73ae8c21bc3e4a7eb1f11098341a.tar.gz
tags-37ddc789231d73ae8c21bc3e4a7eb1f11098341a.tar.bz2
tags-37ddc789231d73ae8c21bc3e4a7eb1f11098341a.zip
weight tags based on use
Diffstat (limited to 'templates')
-rw-r--r--templates/header_inc.tpl19
-rw-r--r--templates/tags_cloud.tpl11
2 files changed, 26 insertions, 4 deletions
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl
new file mode 100644
index 0000000..98046d0
--- /dev/null
+++ b/templates/header_inc.tpl
@@ -0,0 +1,19 @@
+{if $gBitSystem->isPackageActive( 'tags' )}
+ <style type="text/css">
+ {* {include file="bitpackage:tags/tags_css.tpl"} *}
+ {literal}
+ #cloud { margin: 0; padding: 0; }
+ #cloud li { display: inline; margin-right: 1em;}
+ #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; }
+ #cloud .tag4 a{ font-size: 1.0em; font-weight: 400; }
+ #cloud .tag5 a{ font-size: 1.2em; font-weight: 500; }
+ #cloud .tag6 a{ font-size: 1.4em; font-weight: 600; }
+ #cloud .tag7 a{ font-size: 1.6em; font-weight: 700; }
+ #cloud .tag8 a{ font-size: 1.8em; font-weight: 800; }
+ #cloud .tag9 a{ font-size: 2.2em; font-weight: 900; }
+ #cloud .tag10 a{ font-size: 2.5em; font-weight: 900; }
+ {/literal}
+ </style>
+{/if}
diff --git a/templates/tags_cloud.tpl b/templates/tags_cloud.tpl
index b648703..82fd5f0 100644
--- a/templates/tags_cloud.tpl
+++ b/templates/tags_cloud.tpl
@@ -1,11 +1,14 @@
{strip}
<div class="data">
- {foreach item=tag from=$tagData}
- <a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tag.tag}">{$tag.tag}</a> ({$tag.popcant})&nbsp;
- {foreachelse}
+ {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}</a> ({$tag.popcant})<li>
+ {/foreach}
+ {else}
<div class="norecords">
{tr}No tags found{/tr}
</div>
- {/foreach}
+ {/if}
</div><!-- end .data -->
{/strip} \ No newline at end of file