silverstripe-elemental-basics/templates/Includes/PageHeader.ss

16 lines
585 B
Scheme
Raw Normal View History

2021-06-19 20:27:51 +02:00
<div class="
element
page-header-element
<% if $ElementalArea.Elements.Count < 1 %>
d-block no-elements
<% else_if not $ElementalArea.Elements.First.ShowTitle && $ElementalArea.Elements.First.ClassName != App\Elements\SliderElement && $ElementalArea.Elements.First.ClassName != DNADesign\ElementalList\Model\ElementList %>
2021-06-19 20:27:51 +02:00
d-block
<% end_if %>
">
<div class="element-container $DefaultContainer">
<h1 class="page-header">
$Title
</h1>
</div>
</div>