diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-25 22:38:11 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-25 22:38:11 +0000 |
| commit | 1ea0382f5346c2fb1a2388a8a53adfe40078dc10 (patch) | |
| tree | da5788af9a86a8b559eca22bcec2ae63a858a9ea /modules/tag/views | |
| parent | e9e589e5ebb54d016f1e52d4ba776970456e39b6 (diff) | |
Moving right along on tags. Now the threshold for which tags can be changed. The default is to show all the tags (i.e. count >= the minimum frequency) by clicking on the "See Less" link, the tag cloud will not show the minimum frequency, so the number of tags shown is smaller.
The "See More" link works the opposite way.
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/tag_block.html.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php index 68ae48d5..9334a5ce 100644 --- a/modules/tag/views/tag_block.html.php +++ b/modules/tag/views/tag_block.html.php @@ -1,9 +1,22 @@ <? defined("SYSPATH") or die("No direct script access."); ?> +<div class="gTagFilter"> + <? if ($filter < (tag::$NUMBER_OF_BUCKETS - 1)): ?> + <? $lessFilter = $filter + 1; ?> + <a id="gTagLess" href="<?= url::site("tag/?filter=$lessFilter") ?>">See Less</a> + <? endif; ?> + <? if ($filter > 1): ?> + <? $moreFilter = $filter - 1;?> + <a id="gTagMore" href="<?= url::site("tag/?filter=$moreFilter") ?>">See More</a> + <? endif; ?> + + <div id="gTagReloadProgress" class="">Resizing Tag Cloud...</div> + <hr /> +</div> <ul> <? foreach ($tag_list as $tag): ?> <li class="size<?=$tag["class"] ?>"> <span><?= $tag["count"] ?> photos are tagged with </span> - <a href="#"><?=$tag["name"] ?></a> + <a href="<?=url::site("/tag/{$tag["id"]}?filter=$filter") ?>"><?=$tag["name"] ?></a> </li> <? endforeach; ?> </ul> |
