mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 19:39:16 -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).
25 lines
883 B
PHP
25 lines
883 B
PHP
<? 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">
|
|
<ul class="ui-tabs-nav">
|
|
<li><a href="<?= url::base() ?>"><?= _("HOME") ?></a></li>
|
|
<li><a class="active" href="<?= url::site("albums/1") ?>"><?= _("BROWSE") ?></a></li>
|
|
<li><a href="#"><?= _("UPLOAD") ?></a></li>
|
|
<li><a href="#"><?= _("MY GALLERY") ?></a></li>
|
|
<li><a href="#"><?= _("ADMIN") ?></a></li>
|
|
</ul>
|
|
</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_edit ?></a></li>
|
|
<? endforeach ?>
|
|
<li class="active"><?= $item->title_edit ?></li>
|
|
</ul>
|
|
<? endif ?>
|