// 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:
rMalie
2011-10-19 08:14:42 +00:00
parent 43958d54e7
commit 42564ca3d0
35 changed files with 853 additions and 572 deletions
+7 -1
View File
@@ -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);