Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if $listLabels}
- <table id="categories_tree" style="width:100%; margin-left:0px;">
- <tr>
- {foreach from=$listLabels item=item}
- {if $item['count_subcategory'] >= 10}
- <td style="vertical-align: top; float:left; width:40%; margin-left:20px;">
- <h3 class="title"><a href="{Link::hrefCategoryItems($item.category->id, $item.category->alias)}">{$item.category.name}</a></h3>
- {foreach from=$item.items item=subItem}
- <ul style="float: left; width:232px;">
- {foreach from=$subItem item=_item}
- <li style=""><a href="{$_item.link}">{$_item.name}</a></li>
- {/foreach}
- </ul>
- {/foreach}
- </td>
- </tr>
- {else}
- <td style="vertical-align: top; float:left; padding-bottom:30px;">
- <h3 class="title"><a href="{Link::hrefCategoryItems($item.category->id, $item.category->alias)}">{$item.category.name}</a></h3>
- {foreach from=$item.items item=subItem}
- <ul style="float: left;">
- {foreach from=$subItem item=_item}
- <li><a href="{$_item.link}">{$_item.name}</a></li>
- {/foreach}
- </ul>
- {/foreach}
- </td>
- {/if}
- {/foreach}
- </table>
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement