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

50 lines
1.2 KiB
Scheme
Raw Normal View History

2022-07-03 15:18:47 +02:00
<% if not $ExcludeHeader %>
<% include PageHeader %>
<% end_if %>
2021-06-19 20:27:51 +02:00
2022-07-03 15:18:47 +02:00
<% if $CurrentElement %>
<%-- div class="element page-content-element">
<div class="element_container">
<div class="$DefaultContainer">
<div class="typography">$Content</div>
2021-06-19 20:27:51 +02:00
</div>
2022-07-03 15:18:47 +02:00
</div>
</div --%>
<div class="current-element">
$CurrentElement
</div>
<% else %>
<% if $ElementalArea.Elements.Count %>
$ElementalArea
<% else_if $Content %>
<div class="element element_content_field dnadesign__elemental__models__elementcontent">
<div class="element-container {$DefaultContainer}">
<% include DNADesign\Elemental\Models\ElementContent HTML=$Content %>
</div>
2021-06-19 20:27:51 +02:00
</div>
<% end_if %>
2022-07-03 15:18:47 +02:00
<% end_if %>
2021-06-19 20:27:51 +02:00
2022-07-03 15:18:47 +02:00
<% if $Form %>
<div class="page-form-element element">
<div class="element_container">
<div class="$DefaultContainer">
$Form
2021-06-19 20:27:51 +02:00
</div>
</div>
2022-07-03 15:18:47 +02:00
</div>
<% end_if %>
2021-06-19 20:27:51 +02:00
2022-07-03 15:18:47 +02:00
<% if $ExtraCode %>
<div class="page-extra-code">
<div class="element">
<div class="element_container">
<div class="$DefaultContainer">
$ExtraCode
2021-06-19 20:27:51 +02:00
</div>
</div>
</div>
</div>
2022-07-03 15:18:47 +02:00
<% end_if %>