diff options
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/tag_block.html.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php index a949182b..3e45bdba 100644 --- a/modules/tag/views/tag_block.html.php +++ b/modules/tag/views/tag_block.html.php @@ -1,17 +1,18 @@ <? defined("SYSPATH") or die("No direct script access."); ?> <ul> - <? foreach ($tag_list as $tag): ?> - <li class="size<?=$tag["class"] ?>"> - <span><?= $tag["count"] ?> photos are tagged with </span> - <a href="<?=url::site("/tag/{$tag["id"]}") ?>"><?=$tag["name"] ?></a> - </li> - <? endforeach; ?> + <? 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("tag/$tag->id") ?>"><?= $tag->name ?></a> + </li> + <? endforeach ?> </ul> <form id="gAddTag"> - <ul class="gInline"> + <ul> <li><input type="text" class="text" value="add new tags..." id="gNewTags" /></li> - <li class="gNoLabels"><input type="submit" value="add" /></li> + <li><input type="submit" value="add" /></li> </ul> - <label for="gNewTags" class="gUnderState">(separated by commas)</label> + <label for="gNewTags" class="gUnderState"><?= _("(separated by commas)") ?></label> </form> + |
