Skip to content

Commit

Permalink
[BUGFIX] remove empty <h> tags in slider caption (#387)
Browse files Browse the repository at this point in the history
Adjust condition for slider caption to show only not empty <h> tags
  • Loading branch information
Anna Färber authored and pixelmatseriks committed Feb 1, 2018
1 parent f6c3a7c commit 5272b7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Resources/Private/Templates/ContentElements/BootstrapSlider.html
Expand Up @@ -79,11 +79,12 @@
</f:section>

<f:section name="caption">
<f:if condition="{title} || {description} || {link}">
<div class="carousel-caption">
<f:if condition="{title} && {firstImage} && {settings.showHeadlineH1}">
<f:then><h1>{title}</h1></f:then>
<f:else><h2>{title}</h2></f:else>
<f:if condition="{title}">
<f:if condition="{firstImage} && {settings.showHeadlineH1}">
<f:then><h1>{title}</h1></f:then>
<f:else><h2>{title}</h2></f:else>
</f:if>
</f:if>

<f:if condition="{description}">
Expand All @@ -99,7 +100,6 @@
</f:link.typolink>
</f:if>
</div>
</f:if>
</f:section>

<f:section name="image">
Expand Down

0 comments on commit 5272b7a

Please sign in to comment.