[*] MO : updated module favoriteproducts for mobile theme

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13662 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mBertholino
2012-02-28 09:31:45 +00:00
parent 5592c360d9
commit 9929b1a65a
3 changed files with 7 additions and 1 deletions
@@ -87,6 +87,12 @@ class FavoriteProducts extends Module
return $this->display(__FILE__, 'my-account.tpl');
}
public function hookDisplayMobileCustomerAccount($params)
{
$this->smarty->assign('mobile_hook', true);
$this->hookDisplayCustomerAccount($params);
}
public function hookDisplayMyAccountBlock($params)
{
return $this->hookDisplayCustomerAccount($params);
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -26,7 +26,7 @@
<li class="favoriteproducts">
<a href="{$link->getModuleLink('favoriteproducts', 'account')}" title="{l s='My favorite products' mod='favoriteproducts'}">
<img src="{$module_template_dir}img/favorites.png" class="icon" />
<img {if isset($mobile_hook)}src="{$module_template_dir}img/favorites.png" class="ui-li-icon ui-li-thumb" alt="favorites products"{else}src="{$module_template_dir}img/favorites.png" class="icon"{/if} />
{l s='My favorite products' mod='favoriteproducts'}
</a>
</li>