From 25272361ee395ea6fb9e76596c6668e7e32af6a9 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 4 Dec 2017 16:49:09 +0100 Subject: [PATCH] Enhance sensefuel display --- modules/sensefuel/sensefuel.php | 7 ++++++- themes/site_mobile/css/style.css | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/sensefuel/sensefuel.php b/modules/sensefuel/sensefuel.php index b4ed2ff9..3ee143c7 100644 --- a/modules/sensefuel/sensefuel.php +++ b/modules/sensefuel/sensefuel.php @@ -78,7 +78,12 @@ class SenseFuel extends Module return false; } - global $smarty; + global $smarty, $page_name; + + if (!in_array($page_name, array('index', 'product', 'category'))) { + return false; + } + $smarty->assign(array('display' => $this->display)); return self::display(__FILE__, 'views/top-sensefuel.tpl'); diff --git a/themes/site_mobile/css/style.css b/themes/site_mobile/css/style.css index 39ff5f26..43874f12 100755 --- a/themes/site_mobile/css/style.css +++ b/themes/site_mobile/css/style.css @@ -3793,7 +3793,7 @@ h2.title{ font-weight: normal; padding: 10px; text-align: center; - position: relative; + clear:both; /* -webkit-box-shadow: 0 5px 3px -3px #ccc; -moz-box-shadow: 0 5px 3px -3px #ccc; box-shadow: 0 5px 3px -3px #ccc;*/ @@ -5271,7 +5271,6 @@ body#order-detail table#order-product tbody tr.item tr.title span.quantity{ #sensefuel { display: block; - margin-bottom: 5px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; } #sensefuel .search .search_form .search_input {