From cd6daf8fddc77e0809067d5046b215a2ae85f607 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 30 Oct 2015 12:51:15 +0100 Subject: [PATCH] Adjust again --- www/pages/BasePage.php | 4 ++++ www/themes/omicron/templates/frontend/basepage.tpl | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/www/pages/BasePage.php b/www/pages/BasePage.php index c8197ad2c..1c2229653 100644 --- a/www/pages/BasePage.php +++ b/www/pages/BasePage.php @@ -59,6 +59,10 @@ class BasePage session_set_cookie_params(0, '/', '', $this->https, true); @session_start(); + if($_GET['show_desktop_mode'] == 'true') { + $_SESSION['desktopmode'] = 'true'; + } + $this->smarty->assign('desktopmode', $_SESSION['desktopmode']); if (NN_FLOOD_CHECK) { $this->floodCheck(); diff --git a/www/themes/omicron/templates/frontend/basepage.tpl b/www/themes/omicron/templates/frontend/basepage.tpl index d2101be5e..f6a251228 100644 --- a/www/themes/omicron/templates/frontend/basepage.tpl +++ b/www/themes/omicron/templates/frontend/basepage.tpl @@ -11,7 +11,12 @@ {$page->meta_title}{if $page->meta_title != "" && $site->metatitle != ""} - {/if}{$site->metatitle} - + + {if($desktopmode == 'true')} + + {else} + + {/if} @@ -105,6 +110,9 @@
  • +