mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-04 18:59:08 -04:00
Create the concept of "page types" which let us specify the kind of page that we're rendering in high level terms. Currently there are three page types: album, photo and tag. The tag page type uses slightly different variables. It has a $tag but no $item. Adjust all sidebar_block() functions to avoid printing stuff that's dependent on the item if there is no item. Simplify the tag code to stop trying to fake an item. Update the theme slightly to use $item and $tag where appropriate (notably, for making the <title> element).
61 lines
2.5 KiB
PHP
61 lines
2.5 KiB
PHP
<? 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("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("js/user.js") ?>" type="text/javascript"></script>
|
|
<script src="<?= $theme->url("js/comment.js") ?>" type="text/javascript"></script>
|
|
<!-- this stuff will likely be integrated into lib, possibly theme css -->
|
|
<link rel="stylesheet" type="text/css" href="<?= $theme->url("jquery/jquery.ui.css") ?>"
|
|
media="screen,print,projection" />
|
|
<script src="<?= $theme->url("jquery/jquery.ui.js") ?>" type="text/javascript"></script>
|
|
<script src="<?= $theme->url("jquery/jquery.ui.tabs.js") ?>" type="text/javascript"></script>
|
|
<!--script src="<?= $theme->url("jquery/jquery.ui.accordion.js") ?>" type="text/javascript"></script-->
|
|
<!--script src="<?= $theme->url("jquery/jquery.ui.init.js") ?>" type="text/javascript"></script-->
|
|
<?= $theme->head() ?>
|
|
</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>
|