summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/list_content.tpl4
-rw-r--r--templates/list_tags.tpl29
-rw-r--r--templates/tags_cloud.tpl11
3 files changed, 24 insertions, 20 deletions
diff --git a/templates/list_content.tpl b/templates/list_content.tpl
index 8d4d575..eaab43a 100644
--- a/templates/list_content.tpl
+++ b/templates/list_content.tpl
@@ -51,6 +51,10 @@
{pagination}
{/strip}
+ <div class="header">
+ <h1>{tr}Tags{/tr}</h1>
+ </div>
+ {include file="bitpackage:tags/tags_cloud.tpl"}
</div><!-- end .body -->
</div><!-- end .liberty -->
{/strip}
diff --git a/templates/list_tags.tpl b/templates/list_tags.tpl
index b9b4bdf..aaebd2d 100644
--- a/templates/list_tags.tpl
+++ b/templates/list_tags.tpl
@@ -9,30 +9,19 @@
<div class="body">
<div class="navbar">
- {* Not sure what we want here yet
- <ul>
- <li>{biticon ipackage="icons" iname="emblem-symbolic-link" iexplain="sort by"}</li>
- {if $gBitSystem->isFeatureActive( 'articles_list_title' )}
- <li>{smartlink ititle='Title' isort='title' offset=$offset type=$find_type topic=$find_topic}</li>
- {/if}
+ <ul><li>Sort by:
+ </li>
+ <li>
+ <a href="{$smarty.const.TAGS_PKG_URL}index.php?sort=mostpopular">Popularity</a>
+ </li>
+ <li>
+ <a href="{$smarty.const.TAGS_PKG_URL}index.php">Alphabeticaly</a>
+ </li>
</ul>
- *}
- <a href="{$smarty.const.TAGS_PKG_URL}index.php?sort=mostpopular">Sort by most popular</a>
- <a href="{$smarty.const.TAGS_PKG_URL}index.php">Sort alphabeticaly</a>
</div>
<div class="clear"></div>
-
- <div class="data">
- <h2>{tr}All Tags{/tr}</h2>
- {foreach item=tag from=$tagData}
- <a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tag.tag}">{$tag.tag}</a>&nbsp;
- {foreachelse}
- <div class="norecords">
- {tr}No tags found{/tr}
- </div>
- {/foreach}
- </div><!-- end .data -->
+ {include file="bitpackage:tags/tags_cloud.tpl"}
</div><!-- end .body -->
</div><!-- end .tags -->
{/strip}
diff --git a/templates/tags_cloud.tpl b/templates/tags_cloud.tpl
new file mode 100644
index 0000000..b648703
--- /dev/null
+++ b/templates/tags_cloud.tpl
@@ -0,0 +1,11 @@
+{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}
+ <div class="norecords">
+ {tr}No tags found{/tr}
+ </div>
+ {/foreach}
+</div><!-- end .data -->
+{/strip} \ No newline at end of file