silverstripe-webpack/app/templates/Includes/Content.ss

50 lines
1.2 KiB
Scheme
Raw Normal View History

<div class="page-content page-content-main">
<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 != Site\Elements\SliderElement %>
d-block
<% end_if %>
">
<div class="$DefaultContainer">
<h1 class="page-header">
$Title
</h1>
</div>
</div>
2018-03-24 11:45:31 +01:00
2019-12-17 21:43:28 +01:00
<% if $CurrentElement %>
<div class="current-element">
$CurrentElement
</div>
2019-12-17 21:43:28 +01:00
<% else %>
<div class="elemental-area">
$ElementalArea
</div>
2019-12-17 21:43:28 +01:00
<% end_if %>
2018-03-24 11:45:31 +01:00
2019-12-17 21:43:28 +01:00
<% if $Form %>
<div class="page-form-element element">
<div class="element_container">
<div class="$DefaultContainer">
$Form
</div>
</div>
2018-08-26 12:46:03 +02:00
</div>
2019-12-17 21:43:28 +01:00
<% end_if %>
2019-12-17 21:43:28 +01:00
<% if $ExtraCode %>
<div class="page-extra-code">
<div class="element">
<div class="element_container">
<div class="$DefaultContainer">
$ExtraCode
</div>
</div>
</div>
2019-12-17 21:43:28 +01:00
</div>
<% end_if %>
</div>