1
0

Forgot to commit the tag views.

This commit is contained in:
Tim Almdal 2009-12-31 07:42:28 -08:00
parent 972230ffde
commit 9484bea83f
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="wc-tag-cloud">
<h3>Tags</h3>
<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("g3_client/tagged_album/{$tag->name}") ?>"><?= $tag->name ?></a>
</li>
<? endforeach ?>
</ul>
</div>

View File

@ -0,0 +1,20 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script>
var parent_path = "";
var current_path = "tags";
var resource_type = "album";
</script>
<ul id="wc-thumb-grid" class="ui-helper-clearfix">
<? foreach ($resources as $child): ?>
<li class="wc-thumb-grid-cell" ref="<?= $child->path ?>">
<a class="wc-child-link wc-image-block" href="#">
<? if ($child->has_thumb): ?>
<img src="<?= $child->thumb_url ?>" title="<?= $child->title ?>" />
<? else: ?>
<span><?= $child->title ?></span>
<? endif ?>
</a>
</li>
<? endforeach ?>
</ul>