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 @@
  • +
    + Switch to desktop mode +
    My Cart