1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/themes/greydragon/views/page.html.php

202 lines
8.3 KiB
PHP
Raw Normal View History

2009-11-30 07:09:08 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? include('support/bbtohtml.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Copyright (c) 2009 DragonSoft. All Rights Reserved -->
2009-12-03 06:00:03 +00:00
<? $sidebarvisible = $_REQUEST['sb'];
if (empty($sidebarvisible)) {
if (isset($_COOKIE['gd_sidebar'])) {
$sidebarvisible = $_COOKIE['gd_sidebar'];
2009-11-30 07:09:08 +00:00
} else {
2009-12-03 06:00:03 +00:00
$sidebarvisible = module::get_var("th_greydragon", "sidebar_visible", "");
2009-11-30 07:09:08 +00:00
}
} else {
2009-12-03 06:00:03 +00:00
// Sidebar position is kept for 360 days
setcookie("gd_sidebar", $sidebarvisible, time() + 31536000);
2009-11-30 07:09:08 +00:00
}
2009-12-03 06:00:03 +00:00
$sidebarallowed = module::get_var("th_greydragon", "sidebar_allowed", "");
if ($sidebarallowed == "") { $sidebarallowed = "any"; };
if ($sidebarvisible == "") { $sidebarvisible = "right"; };
if ($sidebarallowed == "none") { $sidebarvisible = "none"; }
if ($sidebarallowed == "right") { $sidebarvisible = "right"; }
if ($sidebarallowed == "left") { $sidebarvisible = "left"; }
2009-11-30 07:09:08 +00:00
?>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>
<? if ($page_title): ?>
<?= $page_title ?>
<? else: ?>
<? if ($theme->item()): ?>
<? if ($theme->item()->is_album()): ?>
<?= t("Browse Album :: %album_title", array("album_title" => $theme->item()->title)) ?>
<? elseif ($theme->item()->is_photo()): ?>
<?= t("Photo :: %photo_title", array("photo_title" => $theme->item()->title)) ?>
<? else: ?>
<?= t("Movie :: %movie_title", array("movie_title" => $theme->item()->title)) ?>
<? endif ?>
<? elseif ($theme->tag()): ?>
<?= t("Browse Tag :: %tag_title", array("tag_title" => $theme->tag()->name)) ?>
<? else: /* Not an item, not a tag, no page_title specified. Help! */ ?>
<?= t("Gallery") ?>
<? endif ?>
<? endif ?></title>
<meta name="robots" content="noindex, nofollow, noarchive" />
<meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate" />
<meta name="slurp" content="noindex, nofollow, noarchive, nosnippet, noodp, noydir" />
<meta name="msnbot" content="noindex, nofollow, noarchive, nosnippet, noodp" />
<meta name="teoma" content="noindex, nofollow, noarchive" />
<link rel="shortcut icon" href="<?= $theme->url("images/favicon.ico") ?>" type="image/x-icon" />
<?= $theme->script("jquery.js") ?>
<?= $theme->script("jquery.form.js") ?>
<?= $theme->script("jquery-ui.js") ?>
<?= $theme->head() ?>
<link rel="stylesheet" href="<?= $theme->url("css/screen.css") ?>" type="text/css" media="screen,print,projection" />
<link rel="stylesheet" href="<?= $theme->url("css/menus.css") ?>" type="text/css" media="screen,print,projection" />
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?= $theme->url("css/old_ie.css") ?>" type="text/css" media="screen,print,projection" />
<![endif]-->
<!--[if !IE]>
<link rel="stylesheet" href="<?= $theme->url("css/layout_non_ie.css") ?>" type="text/css" media="screen,print,projection" />
<![endif]-->
<script type="text/javascript" src="<?= $theme->url("js/ui.support.js") ?>"></script>
</head>
<body>
<?= $theme->page_top() ?>
<div id="g-header">
<?= $theme->header_top() ?>
<? if ($header_text = module::get_var("gallery", "header_text")): ?>
<?= $header_text ?>
<? else: ?>
<a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
2009-12-03 06:00:03 +00:00
<? $logo_path = module::get_var("th_greydragon", "logo_path", url::file("lib/images/logo.png")); ?>
<? // $theme->url("images/logo.png") ?>
<img alt="<?= t("Gallery logo: Your photos on your web site")->for_html_attr() ?>" src="<?= $logo_path ?>" />
2009-11-30 07:09:08 +00:00
</a>
<? endif ?>
<? if (!$user->guest): ?>
<div id="g-site-menu">
<?= $theme->site_menu() ?>
</div>
<? endif ?>
<?= $theme->messages() ?>
<?= $theme->header_bottom() ?>
<? if (!empty($parents)): ?>
<ul class="g-breadcrumbs">
<? $i = 0 ?>
<? foreach ($parents as $parent): ?>
<li <? if ($i == 0) print " class=\"g-first\"" ?>>
<a href="<?= $parent->url($parent == $theme->item()->parent() ?
"show={$theme->item()->id}" : null) ?>">
<?= html::purify($parent->title) ?>
</a>
</li>
<? $i++ ?>
<? endforeach ?>
<li class="g-active <? if ($i == 0) print " g-first" ?>"><?= html::purify($theme->item()->title) ?></li>
</ul>
<? endif ?>
</div>
<div id="g-main">
<div id="g-main-in">
2009-12-03 06:00:03 +00:00
<? if ($sidebarallowed == "any"): ?>
2009-11-30 07:09:08 +00:00
<ul id="g-viewformat">
2009-12-03 06:00:03 +00:00
<? if (($sidebarallowed == "left") or ($sidebarallowed == "any")): ?>
<? $iscurrent = ($sidebarvisible == "left"); ?>
<li><?= ($iscurrent) ? null : '<a title="Sidebar Left" href="' . $url . '?sb=left">'; ?><span class="g-viewthumb-left <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">Sidebar Left</span><?= ($iscurrent)? null : "</a>"; ?></li>
<? endif ?>
<? if ($sidebarallowed == "any"): ?>
<? $iscurrent = ($sidebarvisible == "none"); ?>
<li><?= ($iscurrent) ? null : '<a title="No Sidebar" href="' . $url . '?sb=none">'; ?><span class="g-viewthumb-full <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">No Sidebar</span><?= ($iscurrent)? null : "</a>"; ?></li>
<? endif ?>
<? if (($sidebarallowed == "right") or ($sidebarallowed == "any")): ?>
<? $iscurrent = ($sidebarvisible == "right"); ?>
<li><?= ($iscurrent) ? null : '<a title="Sidebar Right" href="' . $url . '?sb=right">'; ?><span class="g-viewthumb-right <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">Sidebar Right</span><?= ($iscurrent)? null : "</a>"; ?></li>
<? endif ?>
2009-11-30 07:09:08 +00:00
</ul>
2009-12-03 06:00:03 +00:00
<? endif ?>
2009-11-30 07:09:08 +00:00
<div id="g-view-menu" class="g-buttonset">
<? if ($page_subtype == "album"):?>
<?= $theme->album_menu() ?>
<? elseif ($page_subtype == "photo") : ?>
<?= $theme->photo_menu() ?>
<? elseif ($page_subtype == "movie") : ?>
<?= $theme->movie_menu() ?>
<? elseif ($page_subtype == "tag") : ?>
<?= $theme->tag_menu() ?>
<? endif ?>
</div>
2009-12-03 06:00:03 +00:00
<? if ($sidebarvisible=="left"): ?>
2009-11-30 07:09:08 +00:00
<?= '<div id="g-column-left">' ?>
2009-12-03 06:00:03 +00:00
<? elseif ($sidebarvisible=="none"): ?>
2009-11-30 07:09:08 +00:00
<? else: ?>
<?= '<div id="g-column-right">' ?>
<? endif ?>
2009-12-03 06:00:03 +00:00
<? if (($theme->page_subtype != "login") && ($sidebarvisible != "none")): ?>
2009-11-30 07:09:08 +00:00
<?= new View("sidebar.html") ?>
<? endif ?>
2009-12-03 06:00:03 +00:00
<?= ($sidebarvisible != "none")? "</div>" : null ?>
2009-11-30 07:09:08 +00:00
2009-12-03 06:00:03 +00:00
<? if ($sidebarvisible == "left"): ?>
2009-11-30 07:09:08 +00:00
<?= '<div id="g-column-centerright">' ?>
2009-12-03 06:00:03 +00:00
<? elseif ($sidebarvisible == "none"): ?>
2009-11-30 07:09:08 +00:00
<?= '<div id="g-column-centerfull">' ?>
<? else: ?>
<?= '<div id="g-column-centerleft">' ?>
<? endif ?>
<?= $content ?>
</div>
</div>
</div>
<div id="g-footer">
<?= $theme->footer() ?>
<? if ($footer_text = module::get_var("gallery", "footer_text")): ?>
<?= $footer_text ?>
<? endif ?>
<? if (module::get_var("gallery", "show_credits")): ?>
<ul id="g-credits">
<?= $theme->credits() ?>
<?php
$theme_id = module::get_var("gallery", "active_site_theme");
$ini = parse_ini_file(THEMEPATH . "$theme_id/theme.info");
print "\n <li>" . $ini["name"] . "</li>";
print "\n <li>&copy;" . $ini["author"] . "</li>";
?>
</ul>
<? endif ?>
<? $copyright = module::get_var("th_greydragon", "copyright"); ?>
2009-12-03 06:00:03 +00:00
<div id="g-footer-rightside"><?= ($copyright) ? $copyright : null; ?><br /><br />
2009-11-30 07:09:08 +00:00
<? // <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Transitional" height="15" width="44" /></a> ?>
</div>
<?= $theme->user_menu() ?>
</div>
<?= $theme->page_bottom() ?>
2009-12-03 06:00:03 +00:00
<? // <!--start player-->
// <embed src="/music/collection.m3u" hidden="true" autostart="true" loop="true"></embed>
2009-11-30 07:09:08 +00:00
// <noembed><bgsound src="/music/collection.m3u"></noembed>
2009-12-03 06:00:03 +00:00
// <!--end player-->
2009-11-30 07:09:08 +00:00
//<object type="application/x-shockwave-flash" data="http://photo.dragonsoft.us/music/xspf_player/xspf_player.swf?playlist_url=http://photo.dragonsoft.us/music/collection.xspf&autoplay=true&repeat_playlist=true&player_title=KICK&playlist_size=3" width="400" height="151">
//<param name="movie" value="http://photo.dragonsoft.us/music/xspf_player/xspf_player.swf?playlist_url=http://photo.dragonsoft.us/music/collection.xspf&autoplay=true&repeat_playlist=true&player_title=KICK&playlist_size=3" />
//</object>
?>
</body>
</html>