diff options
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/tag_block.html.php | 19 | ||||
| -rw-r--r-- | modules/tag/views/tag_block_cloud.html.php | 9 |
2 files changed, 13 insertions, 15 deletions
diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php index 6ce67e9d..cc75e6f0 100644 --- a/modules/tag/views/tag_block.html.php +++ b/modules/tag/views/tag_block.html.php @@ -1,18 +1,7 @@ <? defined("SYSPATH") or die("No direct script access."); ?> -<? if ($tags): ?> -<ul> - <? foreach ($tags as $tag): ?> - <li class="size<?=(int)(($tag->count / $max_count) * 7) ?>"> - <span><?= $tag->count ?> photos are tagged with </span> - <a href="<?=url::site("tags/$tag->id") ?>"><?= $tag->name ?></a> - </li> - <? endforeach ?> -</ul> -<? endif ?> - -<? if (isset($form)): ?> -<div id="gTagFormContainer"> - <?= $form ?> +<div id="gTagCloud" src="<?= url::site("tags") ?>"> + <?= $cloud ?> </div> -<? endif; ?> +<?= $form ?> + diff --git a/modules/tag/views/tag_block_cloud.html.php b/modules/tag/views/tag_block_cloud.html.php new file mode 100644 index 00000000..6abaf953 --- /dev/null +++ b/modules/tag/views/tag_block_cloud.html.php @@ -0,0 +1,9 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<ul> + <? foreach ($tags as $tag): ?> + <li class="size<?=(int)(($tag->count / $max_count) * 7) ?>"> + <span><?= $tag->count ?> photos are tagged with </span> + <a href="<?=url::site("tags/$tag->id") ?>"><?= $tag->name ?></a> + </li> + <? endforeach ?> +</ul> |
