bootic.net: menú marcas por colección

{% if collection.slug == 'jugueteria' %} <div class="sidebar"> <h4><strong>Por Marcas</strong></h4> <ul class="side-nav"> {% for link in menus.menu-marcas-jugueteria.links %} <li class="{{ ' current' | if_current_page: link }}"> <a href="{{ link.url }}">{{ link.title }}</a> <ul class="second-nav"> {% for tipo in link.product_types %} <li class="{% if product_type == tipo %} current {% endif %}"> <a href="{{ link | typed_collection_path: tipo }}">- {{ tipo.name }}</a> </li> {% endfor %} </ul> </li> {% endfor %} </ul> </div> {% endif %}

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.