diff options
Diffstat (limited to 'themes/default/views')
-rw-r--r-- | themes/default/views/album.html.php | 32 | ||||
-rw-r--r-- | themes/default/views/block.html.php | 7 | ||||
-rw-r--r-- | themes/default/views/footer.html.php | 6 | ||||
-rw-r--r-- | themes/default/views/header.html.php | 18 | ||||
-rw-r--r-- | themes/default/views/page.html.php | 56 | ||||
-rw-r--r-- | themes/default/views/pager.html.php | 25 | ||||
-rw-r--r-- | themes/default/views/photo.html.php | 14 | ||||
-rw-r--r-- | themes/default/views/sidebar.html.php | 10 | ||||
-rw-r--r-- | themes/default/views/tag.html.php | 33 |
9 files changed, 201 insertions, 0 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php new file mode 100644 index 00000000..addd6c3a --- /dev/null +++ b/themes/default/views/album.html.php @@ -0,0 +1,32 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<div id="gAlbumHeader"> + <?= $theme->album_top() ?> + <h1><?= $item->title_edit ?></h1> + <div class="gDescription"><?= $item->description_edit ?></div> +</div> + +<ul id="gAlbumGrid"> + <? foreach ($children as $i => $child): ?> + <? $album_class = ""; ?> + <? if ($child->is_album()): ?> + <? $album_class = "gAlbum "; ?> + <? endif ?> + <li class="gItem <?= $album_class ?>"> + <?= $theme->thumbnail_top($child) ?> + <a href="<?= url::site("{$child->type}s/{$child->id}") ?>"> + <img id="gPhotoID-<?= $child->id ?>" class="gThumbnail" + alt="photo" src="<?= $child->thumbnail_url() ?>" + width="<?= $child->thumbnail_width ?>" + height="<?= $child->thumbnail_height ?>" /> + </a> + <h2><?= $child->title_edit ?></h2> + <?= $theme->thumbnail_bottom($child) ?> + <ul class="gMetadata"> + <?= $theme->thumbnail_info($child) ?> + </ul> + </li> + <? endforeach ?> +</ul> +<?= $theme->album_bottom() ?> + +<?= $theme->pager() ?> diff --git a/themes/default/views/block.html.php b/themes/default/views/block.html.php new file mode 100644 index 00000000..f084b674 --- /dev/null +++ b/themes/default/views/block.html.php @@ -0,0 +1,7 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<div id="<?= $id ?>" class="gBlock"> + <h3><?= $title ?></h3> + <div class="gBlockContent"> + <?= $content ?> + </div> +</div> diff --git a/themes/default/views/footer.html.php b/themes/default/views/footer.html.php new file mode 100644 index 00000000..7f011735 --- /dev/null +++ b/themes/default/views/footer.html.php @@ -0,0 +1,6 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<ul id="gCredits"> + <li class="first"> Powered by <a href="http://gallery.menalto.com">Gallery3</a> </li> + <?= $theme->credits() ?> + <li> <a href="#">About this Gallery</a> </li> +</ul> diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php new file mode 100644 index 00000000..89d105fb --- /dev/null +++ b/themes/default/views/header.html.php @@ -0,0 +1,18 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<?= $theme->header_top() ?> +<img id="gLogo" alt="<?= _("Logo") ?>" src="<?= $theme->url("images/logo.png") ?>" /> + +<div id="gSiteMenu" class="gClearFix"> +<?= $theme->site_navigation() ?> +</div> + +<?= $theme->header_bottom() ?> + +<? if ($page_type != "tag"): ?> +<ul id="gBreadcrumbs" class="gClearFix"> + <? foreach ($parents as $parent): ?> + <li><a href="<?= url::site("albums/{$parent->id}") ?>"><?= $parent->title ?></a></li> + <? endforeach ?> + <li class="active"><?= $item->title ?></li> +</ul> +<? endif ?> diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php new file mode 100644 index 00000000..3801d23e --- /dev/null +++ b/themes/default/views/page.html.php @@ -0,0 +1,56 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tranisitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title> + <? if ($page_type == "tag"): ?> + <?= _("Browse Tags") ?> :: <?= $tag->name ?> + <? else: ?> + <?= _("Browse Photos") ?> :: <?= $item->title ?> + <? endif ?> + </title> + <link rel="stylesheet" type="text/css" href="<?= url::file("lib/yui/reset-fonts-grids.css") ?>" + media="screen,print,projection" /> + <link rel="stylesheet" type="text/css" href="<?= $theme->url("jquery/superfish.css") ?>" + media="screen" /> + <link rel="stylesheet" type="text/css" href="<?= $theme->url("css/screen.css") ?>" + media="screen,print,projection" /> + <script src="<?= url::file("lib/jquery.js") ?>" type="text/javascript"></script> + <script src="<?= url::file("lib/jquery.form.js") ?>" type="text/javascript"></script> + <script src="<?= $theme->url("jquery/superfish.js") ?>" type="text/javascript"></script> + <?= $theme->head() ?> + <script src="<?= $theme->url("lib/jquery-ui.packed.js") ?>" type="text/javascript"></script> + <script src="<?= $theme->url("js/ui.init.js") ?>" type="text/javascript"></script> + </head> + + <body> + <?= $theme->page_top() ?> + <div id="doc4" class="yui-t5 gView"> + <div id="hd"> + <div id="gHeader"> + <?= $theme->display("header.html") ?> + </div> + </div> + <div id="bd"> + <div id="yui-main"> + <div class="yui-b"> + <div id="gContent" class="yui-g"> + <?= $content ?> + </div> + </div> + </div> + <div id="gSidebar" class="yui-b"> + <?= $theme->display("sidebar.html") ?> + </div> + </div> + <div id="ft"> + <div id="gFooter"> + <?= $theme->display("footer.html") ?> + </div> + </div> + </div> + <?= $theme->page_bottom() ?> + </body> +</html> diff --git a/themes/default/views/pager.html.php b/themes/default/views/pager.html.php new file mode 100644 index 00000000..76cb35cd --- /dev/null +++ b/themes/default/views/pager.html.php @@ -0,0 +1,25 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<? // See http://docs.kohanaphp.com/libraries/pagination ?> +<ul id="gPager"> + <li><?= sprintf(_("Items %d - %d of %d"), $current_first_item, $current_last_item, $total_items) ?></li> + <? if ($first_page): ?> + <li class="first"><a href="<?= str_replace('{page}', 1, $url) ?>"><?= _("first") ?></a></li> + <? else: ?> + <li class="first_inactive"><?= _("first") ?></li> + <? endif ?> + <? if ($previous_page): ?> + <li class="previous"><a href="<?= str_replace('{page}', $previous_page, $url) ?>"><?= _("previous") ?></a></li> + <? else: ?> + <li class="previous_inactive"><?= _("previous") ?></li> + <? endif ?> + <? if ($next_page): ?> + <li class="next"><a href="<?= str_replace('{page}', $next_page, $url) ?>"><?= _("next") ?></a></li> + <? else: ?> + <li class="next_inactive"><?= _("next") ?></li> + <? endif ?> + <? if ($last_page): ?> + <li class="last"><a href="<?= str_replace('{page}', $last_page, $url) ?>"><?= _("last") ?></a></li> + <? else: ?> + <li class="last_inactive"><?= _("last") ?></li> + <? endif ?> +</ul> diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php new file mode 100644 index 00000000..8b00f0a5 --- /dev/null +++ b/themes/default/views/photo.html.php @@ -0,0 +1,14 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<div id="gItemHeader"> + <?= $theme->photo_top() ?> + <h1><?= $item->title_edit ?></h1> +</div> + +<div id="gItem"> + <img id="gPhotoID-<?= $item->id ?>" alt="<?= $item->title ?>" src="<?= $item->resize_url() ?>" + width="<?= $item->resize_width ?>" + height="<?= $item->resize_height ?>" /> + <div><?= $item->description_edit ?></div> + + <?= $theme->photo_bottom() ?> +</div> diff --git a/themes/default/views/sidebar.html.php b/themes/default/views/sidebar.html.php new file mode 100644 index 00000000..d030a242 --- /dev/null +++ b/themes/default/views/sidebar.html.php @@ -0,0 +1,10 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<ul id="gViewMenu" class="sf-menu"> + <li><a href="#" id="gFullsizeLink" title="<?= _("View full size image") ?>"><?= _("View full size image") ?></a></li> + <li><a href="#" id="gAlbumLink" title="<?= _("View album") ?>"><?= _("Album view") ?></a></li> + <li><a href="#" id="gHybridLink" title="<?= _("View album in hybrid mode") ?>"><?= _("Hybrid view") ?></a></li> + <li><?= $theme->sidebar_top() ?></li> +</ul> + +<?= $theme->sidebar_blocks() ?> +<?= $theme->sidebar_bottom() ?> diff --git a/themes/default/views/tag.html.php b/themes/default/views/tag.html.php new file mode 100644 index 00000000..4c507d0d --- /dev/null +++ b/themes/default/views/tag.html.php @@ -0,0 +1,33 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<div id="gAlbumHeader"> + <div id="gAlbumHeaderButtons"> + <?= $theme->tag_top() ?> + </div> + <h1><?= $tag->name ?></h1> +</div> + +<ul id="gAlbumGrid"> + <? foreach ($children as $i => $child): ?> + <? $album_class = ""; ?> + <? if ($child->is_album()): ?> + <? $album_class = "gAlbum "; ?> + <? endif ?> + <li class="gItem <?= $album_class ?>"> + <?= $theme->thumbnail_top($child) ?> + <a href="<?= url::site("{$child->type}s/{$child->id}") ?>"> + <img id="gPhotoID-<?= $child->id ?>" class="gThumbnail" + alt="photo" src="<?= $child->thumbnail_url() ?>" + width="<?= $child->thumbnail_width ?>" + height="<?= $child->thumbnail_height ?>" /> + </a> + <h2><?= $child->title_edit ?></h2> + <?= $theme->thumbnail_bottom($child) ?> + <ul class="gMetadata"> + <?= $theme->thumbnail_info($child) ?> + </ul> + </li> + <? endforeach ?> +</ul> +<?= $theme->tag_bottom() ?> + +<?= $theme->pager() ?> |