[*] MO : updated module favoriteproducts for mobile theme
This commit is contained in:
@@ -87,6 +87,12 @@ class FavoriteProducts extends Module
|
|||||||
return $this->display(__FILE__, 'my-account.tpl');
|
return $this->display(__FILE__, 'my-account.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hookDisplayMobileCustomerAccount($params)
|
||||||
|
{
|
||||||
|
$this->smarty->assign('mobile_hook', true);
|
||||||
|
$this->hookDisplayCustomerAccount($params);
|
||||||
|
}
|
||||||
|
|
||||||
public function hookDisplayMyAccountBlock($params)
|
public function hookDisplayMyAccountBlock($params)
|
||||||
{
|
{
|
||||||
return $this->hookDisplayCustomerAccount($params);
|
return $this->hookDisplayCustomerAccount($params);
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<li class="favoriteproducts">
|
<li class="favoriteproducts">
|
||||||
<a href="{$link->getModuleLink('favoriteproducts', 'account')}" title="{l s='My favorite products' mod='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'}
|
{l s='My favorite products' mod='favoriteproducts'}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user