Skip to content

Commit

Permalink
Fix an issue where the request does not contain the 'sb' index and th…
Browse files Browse the repository at this point in the history
…e parameters for the Theme_View::site_menu method had changed.
  • Loading branch information
Tim Almdal committed Jun 23, 2010
1 parent 97088a3 commit ab5659b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions themes/greydragon/views/page.html.php
Expand Up @@ -5,15 +5,16 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Copyright (c) 2009 DragonSoft. All Rights Reserved -->

<? $sidebarvisible = $_REQUEST['sb'];
if (empty($sidebarvisible)) {
<?
if (empty($_REQUEST['sb'])) {
if (isset($_COOKIE['gd_sidebar'])) {
$sidebarvisible = $_COOKIE['gd_sidebar'];
} else {
$sidebarvisible = module::get_var("th_greydragon", "sidebar_visible", "");
}
} else {
// Sidebar position is kept for 360 days
$sidebarvisible = $_REQUEST['sb'];
setcookie("gd_sidebar", $sidebarvisible, time() + 31536000);
}

Expand Down Expand Up @@ -46,9 +47,9 @@
<?= 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="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" />
Expand Down Expand Up @@ -87,7 +88,7 @@

<? if (!$user->guest): ?>
<div id="g-site-menu">
<?= $theme->site_menu() ?>
<?= $theme->site_menu("") ?>
</div>
<? endif ?>
<?= $theme->messages() ?>
Expand Down Expand Up @@ -146,7 +147,7 @@
<? else: ?>
<?= '<div id="g-column-right">' ?>
<? endif ?>

<? if (($theme->page_subtype != "login") && ($sidebarvisible != "none")): ?>
<?= new View("sidebar.html") ?>
<? endif ?>
Expand Down Expand Up @@ -174,7 +175,7 @@
<ul id="g-credits">
<?= $theme->credits() ?>
<?php
$theme_id = module::get_var("gallery", "active_site_theme");
$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>";
Expand All @@ -190,7 +191,7 @@
</div>
<?= $theme->page_bottom() ?>

<? // <!--start player-->
<? // <!--start player-->
// <embed src="/music/collection.m3u" hidden="true" autostart="true" loop="true"></embed>
// <noembed><bgsound src="/music/collection.m3u"></noembed>
// <!--end player-->
Expand Down

0 comments on commit ab5659b

Please sign in to comment.