Enhance sensefuel display

This commit is contained in:
Michael RICOIS 2017-12-04 16:49:09 +01:00
parent 030d9c812d
commit 25272361ee
2 changed files with 7 additions and 3 deletions

View File

@ -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');

View File

@ -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 {