Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if (!$folders_shared.0._level&&count($folders_shared)>1)||($folders_shared.0._level&&count($folders_shared))}
- <nav class="shop-folders-wrap">
- <ul class="shop-folders menu-default">
- {foreach from=`$folders_shared2` item="e" key="k" name="foo"}
- {if $e._level}
- {if $k}
- {if $e._level > $prev_level}
- <ul>
- {else}
- </li>
- {section name="close_tags" start=`$e._level` loop=`$prev_level`}
- </ul>
- </li>
- {/section}
- {/if}
- {/if}
- {if $e._level==1}
- <li class="{if $e._right-$e._left>1}has{/if}{if $e._left<=$folder._left && $e._right>=$folder._right} opened{/if}"><a href="{get_seo_url uri_prefix=$shop2.uri mode="folder" alias=$e.alias}">{$e.folder_name|htmlspecialchars}</a>
- {else}
- <li class="{if $e._right-$e._left>1}has{/if}{if $e._left<=$folder._left && $e._right>=$folder._right} opened{/if}"><a href="{get_seo_url uri_prefix=$shop2.uri mode="folder" alias=$e.alias}">{$e.folder_name|htmlspecialchars}</a>
- {/if}
- {assign var="prev_level" value=`$e._level`}
- {/if}
- {/foreach}
- </li>
- </ul>
- {section name="close_tags" start=1 loop=`$prev_level`}
- </li>
- </ul>
- {/section}
- </nav>
- {/if}
Add Comment
Please, Sign In to add comment