diff options
| author | wjames5 <will@tekimaki.com> | 2007-03-16 13:41:09 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-03-16 13:41:09 +0000 |
| commit | 9a6577b6180d1451f1c4eace3bca6a8a66dbf0aa (patch) | |
| tree | 4063023cb55680a596c1509dc00c69644b4103ad /templates | |
| parent | e4e13c2d9c57bc88385c08d685c48124a95786c4 (diff) | |
| download | tags-9a6577b6180d1451f1c4eace3bca6a8a66dbf0aa.tar.gz tags-9a6577b6180d1451f1c4eace3bca6a8a66dbf0aa.tar.bz2 tags-9a6577b6180d1451f1c4eace3bca6a8a66dbf0aa.zip | |
move tags cloud to its own tpl and display in multi locations
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/list_content.tpl | 4 | ||||
| -rw-r--r-- | templates/list_tags.tpl | 29 | ||||
| -rw-r--r-- | templates/tags_cloud.tpl | 11 |
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> - {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}) + {foreachelse} + <div class="norecords"> + {tr}No tags found{/tr} + </div> + {/foreach} +</div><!-- end .data --> +{/strip}
\ No newline at end of file |
