2009-01-01 00:23:29 +00:00
<? php defined ( "SYSPATH" ) or die ( "No direct script access." ) ?>
2009-07-01 01:08:00 -07:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2008-12-09 08:29:12 +00:00
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2008-11-03 05:53:20 +00:00
<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" />
2008-11-26 21:50:45 +00:00
<title>
2009-06-15 18:15:41 -07:00
<? if ($page_title): ?>
2009-03-12 16:06:13 +00:00
<?= $page_title ?>
2009-06-15 18:15:41 -07:00
<? else: ?>
<? if ($theme->item()): ?>
<? if ($theme->item()->is_album()): ?>
2009-08-29 12:48:40 -07:00
<?= t("Browse Album :: %album_title", array("album_title" => $theme->item()->title)) ?>
2009-06-15 18:15:41 -07:00
<? elseif ($theme->item()->is_photo()): ?>
2009-08-30 15:34:46 -07:00
<?= t("Photo :: %photo_title", array("photo_title" => $theme->item()->title)) ?>
2009-06-15 18:15:41 -07:00
<? else: ?>
2009-08-29 12:48:40 -07:00
<?= t("Movie :: %movie_title", array("movie_title" => $theme->item()->title)) ?>
2009-06-15 18:15:41 -07:00
<? endif ?>
<? elseif ($theme->tag()): ?>
2009-08-29 12:48:40 -07:00
<?= t("Browse Tag :: %tag_title", array("tag_title" => $theme->tag()->name)) ?>
2009-06-15 18:15:41 -07:00
<? else: /* Not an item, not a tag, no page_title specified. Help! */ ?>
<?= t("Gallery") ?>
<? endif ?>
2008-12-09 08:29:12 +00:00
<? endif ?>
2008-11-26 21:50:45 +00:00
</title>
2009-09-01 23:22:06 -06:00
<link rel="shortcut icon" href="<?= url::file("lib/images/favicon.ico") ?>" type="image/x-icon" />
2009-07-22 14:27:57 -07:00
<?= $theme->css("yui/reset-fonts-grids.css") ?>
<?= $theme->css("superfish/css/superfish.css") ?>
<?= $theme->css("themeroller/ui.base.css") ?>
2009-09-30 00:32:52 -06:00
<?= $theme->css("gallery.common.css") ?>
2009-07-22 14:27:57 -07:00
<?= $theme->css("screen.css") ?>
2009-05-30 21:49:55 -06:00
<!--[if lt IE 8]>
2009-07-22 14:27:57 -07:00
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/fix-ie.css") ?>"
2009-06-29 20:12:27 -07:00
media="screen,print,projection" />
2008-12-29 06:12:00 +00:00
<![endif]-->
2009-04-22 05:31:29 +00:00
<? if ($theme->page_type == 'album'): ?>
<? if ($thumb_proportion != 1): ?>
<? $new_width = $thumb_proportion * 213 ?>
<? $new_height = $thumb_proportion * 240 ?>
<style type="text/css">
2009-10-04 00:27:22 -06:00
#g-content #g-album-grid .g-item {
2009-04-22 05:31:29 +00:00
width: <?= $new_width ?>px;
height: <?= $new_height ?>px;
/* <?= $thumb_proportion ?> */
}
</style>
<? endif ?>
<? endif ?>
2009-07-22 14:27:57 -07:00
<?= $theme->script("jquery.js") ?>
<?= $theme->script("jquery.form.js") ?>
<?= $theme->script("jquery-ui.js") ?>
<?= $theme->script("gallery.common.js") ?>
2009-06-29 20:55:23 -07:00
<? /* MSG_CANCEL is required by gallery.dialog.js */ ?>
<script type="text/javascript">
2009-08-30 15:34:46 -07:00
var MSG_CANCEL = <?= t('Cancel')->for_js() ?>;
2009-06-29 20:55:23 -07:00
</script>
2009-08-10 23:05:05 -07:00
<?= $theme->script("gallery.ajax.js") ?>
2009-07-22 14:27:57 -07:00
<?= $theme->script("gallery.dialog.js") ?>
<?= $theme->script("superfish/js/superfish.js") ?>
<?= $theme->script("jquery.localscroll.js") ?>
<?= $theme->script("ui.init.js") ?>
2009-06-28 19:45:11 -07:00
<? /* These are page specific, but if we put them before $theme->head() they get combined */ ?>
<? if ($theme->page_type == "photo"): ?>
2009-07-22 14:27:57 -07:00
<?= $theme->script("jquery.scrollTo.js") ?>
<?= $theme->script("gallery.show_full_size.js") ?>
2009-06-28 19:45:11 -07:00
<? elseif ($theme->page_type == "movie"): ?>
2009-07-22 14:27:57 -07:00
<?= $theme->script("flowplayer.js") ?>
2009-06-28 19:45:11 -07:00
<? endif ?>
2009-01-01 00:06:52 +00:00
<?= $theme->head() ?>
2008-11-03 05:53:20 +00:00
</head>
2009-06-14 22:39:12 -06:00
<body <?= $theme->body_attributes() ?>>
2008-11-26 21:50:45 +00:00
<?= $theme->page_top() ?>
2009-10-04 00:27:22 -06:00
<div id="doc4" class="yui-t5 g-view">
2009-03-19 16:01:41 +00:00
<?= $theme->site_status() ?>
2009-10-17 12:58:31 -06:00
<div id="g-header" class="ui-helper-clearfix">
2009-10-04 00:27:22 -06:00
<div id="g-banner">
2009-08-30 23:22:54 -06:00
<?= $theme->header_top() ?>
<? if ($header_text = module::get_var("gallery", "header_text")): ?>
<?= $header_text ?>
<? else: ?>
2009-10-04 00:27:22 -06:00
<a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
2009-09-01 23:22:06 -06:00
<img width="107" height="48" alt="<?= t("Gallery logo: Your photos on your web site")->for_html_attr() ?>" src="<?= url::file("lib/images/logo.png") ?>" />
2009-08-30 23:22:54 -06:00
</a>
<? endif ?>
2009-10-04 00:27:22 -06:00
<div id="g-site-menu">
2009-08-30 23:22:54 -06:00
<?= $theme->site_menu() ?>
</div>
<?= $theme->header_bottom() ?>
</div>
<? if (!empty($parents)): ?>
2009-10-04 00:27:22 -06:00
<ul class="g-breadcrumbs">
2009-08-30 23:22:54 -06:00
<? foreach ($parents as $parent): ?>
<li>
2009-09-12 20:46:54 -07:00
<!-- Adding ?show=<id> causes Gallery3 to display the page
containing that photo. For now, we just do it for
the immediate parent so that when you go back up a
level you're on the right page. -->
<a href="<?= $parent->url($parent == $theme->item()->parent() ?
"show={$theme->item()->id}" : null) ?>">
2009-08-30 23:22:54 -06:00
<?= html::purify($parent->title) ?>
</a>
</li>
<? endforeach ?>
2009-08-30 17:17:14 -07:00
<li class="active"><?= html::purify($theme->item()->title) ?></li>
2009-08-30 23:22:54 -06:00
</ul>
<? endif ?>
2008-11-09 23:03:50 +00:00
</div>
2008-11-03 05:53:20 +00:00
<div id="bd">
2008-11-04 05:22:06 +00:00
<div id="yui-main">
2008-11-09 23:03:50 +00:00
<div class="yui-b">
2009-10-04 00:27:22 -06:00
<div id="g-content" class="yui-g">
2008-12-30 00:52:03 +00:00
<?= $theme->messages() ?>
2008-11-09 23:03:50 +00:00
<?= $content ?>
</div>
2008-11-04 05:22:06 +00:00
</div>
</div>
2009-10-04 00:27:22 -06:00
<div id="g-sidebar" class="yui-b">
2009-06-16 22:09:02 -07:00
<? if ($theme->page_type != "login"): ?>
2009-06-28 19:45:11 -07:00
<?= new View("sidebar.html") ?>
2009-06-16 22:09:02 -07:00
<? endif ?>
2008-11-09 23:03:50 +00:00
</div>
</div>
2009-10-22 22:28:55 -06:00
<div id="g-footer" class="ui-helper-clearfix">
2009-08-30 23:22:54 -06:00
<?= $theme->footer() ?>
<? if ($footer_text = module::get_var("gallery", "footer_text")): ?>
<?= $footer_text ?>
<? endif ?>
<? if (module::get_var("gallery", "show_credits")): ?>
2009-10-22 22:28:55 -06:00
<ul id="g-credits" class="g-inline">
2009-08-30 23:22:54 -06:00
<?= $theme->credits() ?>
</ul>
<? endif ?>
2008-11-03 05:53:20 +00:00
</div>
</div>
2008-11-22 21:46:34 +00:00
<?= $theme->page_bottom() ?>
2008-11-03 05:53:20 +00:00
</body>
</html>