diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-12 15:40:08 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-12 15:40:08 +0000 |
| commit | b82b60c91a4ece468dad8981b7ccd46a8cf19662 (patch) | |
| tree | 14f3d3874dc0dec3571e52ee1b54c48c5ec5c1aa /themes/default/views/dynamic.html.php | |
| parent | ec195a572101c21715963a501472c0efb2671d54 (diff) | |
Rename tag.html.php to dynamic.html.php as part of ticket #115
creating Dynamic Albums. This name change reflects the usage better
and allows multiple dynamic albums (including tags) to use the same
page template.
Diffstat (limited to 'themes/default/views/dynamic.html.php')
| -rw-r--r-- | themes/default/views/dynamic.html.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/default/views/dynamic.html.php b/themes/default/views/dynamic.html.php new file mode 100644 index 00000000..8d2d2123 --- /dev/null +++ b/themes/default/views/dynamic.html.php @@ -0,0 +1,29 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="gAlbumHeader"> + <div id="gAlbumHeaderButtons"> + <?= $theme->dynamic_top() ?> + </div> + <h1><?= $tag->name ?></h1> +</div> + +<ul id="gAlbumGrid"> + <? foreach ($children as $i => $child): ?> + <li class="gItem <?= $child->is_album() ? "gAlbum" : "" ?>"> + <?= $theme->thumb_top($child) ?> + <a href="<?= $child->url() ?>"> + <img id="gPhotoId-<?= $child->id ?>" class="gThumbnail" + alt="photo" src="<?= $child->thumb_url() ?>" + width="<?= $child->thumb_width ?>" + height="<?= $child->thumb_height ?>" /> + </a> + <h2><?= $child->title ?></h2> + <?= $theme->thumb_bottom($child) ?> + <ul class="gMetadata"> + <?= $theme->thumb_info($child) ?> + </ul> + </li> + <? endforeach ?> +</ul> +<?= $theme->dynamic_bottom() ?> + +<?= $theme->pager() ?> |
