From a0d25c399c3ce64a4b82d5becb6891ac0b3c4233 Mon Sep 17 00:00:00 2001 From: Francois Gaillard Date: Tue, 12 Mar 2013 14:16:52 +0100 Subject: [PATCH] [-] FO : Fixed mobile theme authentication CSS --- controllers/front/AuthController.php | 3 ++- themes/default/mobile/authentication-choice.tpl | 2 +- themes/default/mobile/css/global.css | 13 +------------ 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index 244e4fe7c..cb481f084 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -56,7 +56,8 @@ class AuthControllerCore extends FrontController public function setMedia() { parent::setMedia(); - $this->addCSS(_THEME_CSS_DIR_.'authentication.css'); + if (Context::getContext()->getMobileDevice() === false) + $this->addCSS(_THEME_CSS_DIR_.'authentication.css'); $this->addJqueryPlugin('typewatch'); $this->addJS(_THEME_JS_DIR_.'tools/statesManagement.js'); } diff --git a/themes/default/mobile/authentication-choice.tpl b/themes/default/mobile/authentication-choice.tpl index da84c96de..4bbfb00bc 100644 --- a/themes/default/mobile/authentication-choice.tpl +++ b/themes/default/mobile/authentication-choice.tpl @@ -1,6 +1,6 @@
-