Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions config/packages/sonata_block.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
sonata_block:
http_cache: false
sonata_block: ~
50 changes: 24 additions & 26 deletions templates/Includes/breadcrumbs.html.twig
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
{% if wo_breadcrumbs()|length %}
{%- apply spaceless -%}
<div class="container mt-3">
<nav aria-label="breadcrumb">
<ol id="{{ listId }}" class="{{ listClass }}" itemscope itemtype="http://schema.org/BreadcrumbList">
{% for b in breadcrumbs %}
<li{% if itemClass is defined and itemClass|length %} class="{{ itemClass }}"{% endif %}
itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
{% if b.url and not loop.last %}
<a href="{{ b.url }}"
itemprop="item"{% if linkRel is defined and linkRel|length %} rel="{{ linkRel }}"{% endif %}>
{% endif %}
<span itemprop="name">{% if b.translate is defined and b.translate == true %}{{- b.text | trans(b.translationParameters, translation_domain, locale) -}}{% else %}{{- b.text -}}{% endif %}</span>
{% if b.url and not loop.last %}
</a>
{% elseif b.url %}
<meta itemprop="item" content="{{ b.url }}"/>
<div class="container mt-3">
<nav aria-label="breadcrumb">
<ol id="{{ listId }}" class="{{ listClass }}" itemscope itemtype="http://schema.org/BreadcrumbList">
{% for b in breadcrumbs %}
<li{% if itemClass is defined and itemClass|length %} class="{{ itemClass }}"{% endif %}
itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
{% if b.url and not loop.last %}
<a href="{{ b.url }}"
itemprop="item"{% if linkRel is defined and linkRel|length %} rel="{{ linkRel }}"{% endif %}>
{% endif %}
<meta itemprop="position" content="{{ loop.index }}"/>
<span itemprop="name">{% if b.translate is defined and b.translate == true %}{{- b.text | trans(b.translationParameters, translation_domain, locale) -}}{% else %}{{- b.text -}}{% endif %}</span>
{% if b.url and not loop.last %}
</a>
{% elseif b.url %}
<meta itemprop="item" content="{{ b.url }}"/>
{% endif %}
<meta itemprop="position" content="{{ loop.index }}"/>

{% if separator is not null and not loop.last %}
<span class="{{ separatorClass }}">{{ separator }}</span>
{% endif %}
</li>
{% endfor %}
</ol>
</nav>
</div>
{% endapply %}
{% if separator is not null and not loop.last %}
<span class="{{ separatorClass }}">{{ separator }}</span>
{% endif %}
</li>
{% endfor %}
</ol>
</nav>
</div>
{% endif %}
Loading