// Merge -> revision 9435
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9438 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -56,7 +56,7 @@ class ProductToolTip extends Module
|
||||
Configuration::updateValue('PS_PTOOLTIP_DAYS', 3);
|
||||
Configuration::updateValue('PS_PTOOLTIP_LIFETIME', 30);
|
||||
|
||||
return $this->registerHook('productfooter');
|
||||
return $this->registerHook('header') AND $this->registerHook('productfooter');
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
@@ -131,6 +131,12 @@ class ProductToolTip extends Module
|
||||
return $output;
|
||||
}
|
||||
|
||||
public function hookHeader($params)
|
||||
{
|
||||
Tools::addCSS(__PS_BASE_URI__.'css/jquery.jgrowl.css', 'all');
|
||||
Tools::addJS(__PS_BASE_URI__.'js/jquery/jquery.jgrowl-1.2.1.min.js');
|
||||
}
|
||||
|
||||
public function hookProductFooter($params)
|
||||
{
|
||||
$id_product = (int)($params['product']->id);
|
||||
|
||||
@@ -24,9 +24,6 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript" src="{$base_dir}js/jquery/jquery.jgrowl-1.2.1.min.js"></script>
|
||||
<link href="{$base_dir}css/jquery.jgrowl.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {ldelim}
|
||||
{if isset($nb_people)}$.jGrowl('{$nb_people} {if $nb_people == 1}{l s='person is currently watching' mod='producttooltip'}{else}{l s='people are currently watching' mod='producttooltip'}{/if} {l s='this product' mod='producttooltip'}', {literal}{ life: 3500 }{/literal});{/if}
|
||||
|
||||
Reference in New Issue
Block a user