[-] Mobile : Added sub-categories view from home page
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
<!-- Pagination -->
|
||||
<div class="clearfix">
|
||||
<div class="pagination_mobile wrapper_pagination_mobile">
|
||||
{if $start!=$stop}
|
||||
{if $start!=$stop && $pages_nb >= 1}
|
||||
<ul class="pagination_mobile" data-role="controlgroup" data-type="horizontal">
|
||||
{if $p != 1}
|
||||
{assign var='p_previous' value=$p-1}
|
||||
|
||||
@@ -26,18 +26,21 @@
|
||||
{hook h="displayMobileTopSiteMap"}
|
||||
</div>
|
||||
<hr width="99%" align="center" size="2" class=""/>
|
||||
|
||||
{if isset($categoriesTree.children)}
|
||||
<h2>{l s='Our offers'}</h2>
|
||||
|
||||
<ul data-role="listview" data-inset="true">
|
||||
{for $i=0 to 4}
|
||||
{if isset($categoriesTree.children.$i)}
|
||||
{if isset($categoriesTree.children.$i.children) && ($categoriesTree.children.$i.children|@count > 0)}
|
||||
{include file="./category-tree-branch.tpl" node=$categoriesTree.children.$i}
|
||||
{else}
|
||||
<li data-icon="arrow-d">
|
||||
<a href="{$categoriesTree.children.$i.link|escape:'htmlall':'UTF-8'}" title="{$categoriesTree.children.$i.desc|escape:'htmlall':'UTF-8'}">
|
||||
{$categoriesTree.children.$i.name|escape:'htmlall':'UTF-8'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/if}
|
||||
{/for}
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user