Marex Posted November 3, 2012 Report Share Posted November 3, 2012 Еще одно решение меню категорий на базе 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)--> Quote Link to post Share on other sites
manx Posted November 8, 2012 Report Share Posted November 8, 2012 Можно ли краткое описание, или еще лучше - скриншот того, что ожидается получить после вставки вашего кода? Quote Link to post Share on other sites
Enhill Posted November 9, 2012 Report Share Posted November 9, 2012 Marex Симпатичное, спасибо.Страждущим скриншоты: Quote Link to post Share on other sites
deinc Posted November 18, 2012 Report Share Posted November 18, 2012 Как исправить? если субменю отображается под станицей сайта? Quote Link to post Share on other sites
maxwelhoue Posted February 18, 2013 Report Share Posted February 18, 2013 Marex Спасибо. Очень хороший вариант. Quote Link to post Share on other sites
Dimon789 Posted February 19, 2013 Report Share Posted February 19, 2013 не получилось Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.