bootic: breadcrumbs.html

<div id="breadcrumbs"> <div class="content-center"> <p> <a href="/" class="home">Inicio</a> <span class="nav-separator depth-1"> > </span> {% if template == 'products' %} <span>Productos</span> {% endif %} {% if template == 'search' %} <span>{{ products | size }} producto(s) encontrado(s)</span> {% endif %} {% if template == 'cart' %} <span>Carro de Compras</span> {% endif %} {% if template == 'blog' %} <span> {% if blog.date %} {% capture localized_month %}datetime.month_names.month_{{blog.month}}{% endcapture %} {% if blog.day %}{{blog.day}} {% endif %} {{ localized_month | t }} {{ blog.year }} {% else %} {{ 'titles.latest_news' | t }} {% endif %}</span> {% endif %} {% if post %} <a href="/blog">Noticias</a> <span class="nav-separator depth-1"> > </span> <span>{{post.title }}</span> {% endif %} {% if product.has_collections %} {% if collection.slug != "featured" %} {% for collection in product.collections limit: 1 %} {% if collection.slug != "featured" %} <a class="subtitle" href="{{ collection.path }}">{{ collection.title }}</a> <span class="nav-separator depth-1"> > </span> {% endif %} {% endfor %} {% endif %} {% endif %} {% if collection.slug != "featured" %} {% for collection in product.collections limit:2 %} {% if collection.slug != "featured" %} <a href="{{ collection.path }}{{ product.product_type.path }}"> {{product.product_type.title}} </a> <span class="nav-separator depth-1"> > </span> {% endif %} {% endfor %} {% endif %} {% if collection.slug != "featured" %} {% for collection in product.collections limit: 1 %} {% if product.has_tags %} {% for tag in product.tags limit: 1%} <a href="{{ collection.path }}{{ product.product_type.path }}{{ tag.path }}"> {{tag.name}} </a> {% endfor %} <span class="nav-separator depth-1"> > </span> {% endif %} {% endfor %} {% endif %} {% if product_type and tag %} <!-- [tipo] / [tag] --> <a href="{{collection.path}}"> {{collection.title}} </a> <span class="nav-separator depth-1"> > </span> <a href="{{collection.path}}{{product_type.path}}"> {{product_type.name }} </a> <span class="nav-separator depth-1">> </span> <span>{{tag.name}}</span> {% elsif vendor %} <!-- [vendor] --> {%if collection.title.size >=0 %} <a href="{{collection.path}}"> {{collection.title}} </a> <span class="nav-separator depth-1">> </span> {% endif %} <span>{{vendor.name}}</span> {% elsif collection and product_type %} <!-- [colección] / [tipo] --> <a href="{{collection.path}}"> {{collection.title}} </a> <span class="nav-separator depth-1"> > </span> <span>{{product_type.name}}</span> {% elsif collection %} <!-- [colección] --> <span>{{collection.title}}</span> {% elsif product_type %} <!-- [tipo]--> <span>{{ product_type.name | truncate: 40 }}</span> {% elsif resource %} <!-- [resource]--> <span>{{ resource.title | truncate: 40 }}</span> {% endif %} </p> </div> </div>

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.