[-] Mobile : Added sub-categories view from home page

This commit is contained in:
Francois Gaillard
2013-04-05 10:08:26 +02:00
parent 38f3679302
commit bfd3e40ab3
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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}
+4 -1
View File
@@ -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>