Jump to content

Меню категорий на базе Twitter Bootstrap

Recommended Posts

Еще одно решение меню категорий на базе Twitter Bootstrap:

<!-- Меню каталога -->		<div class="dropdown clearfix" style="margin-top :50px;">                  <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;">		{function name=categories_tree}		{if $categories}		{foreach $categories as $c}			{if $c->visible}			{if $c->subcategories}                          <li class="dropdown-submenu"><a tabindex="-1" href="catalog/{$c->url}" data-category="{$c->id}">{$c->name}</a>                           <ul class="dropdown-menu">                            {categories_tree categories=$c->subcategories}                        {else}                                                 <li><a tabindex="-1" href="catalog/{$c->url}" data-category="{$c->id}">{$c->name}</a></li>                        {/if}			{/if}		{/foreach}		</ul>		{/if}		{/function}		{categories_tree categories=$categories}		</div>		<!-- Меню каталога (The End)-->
Link to post
Share on other sites
  • 2 weeks later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...