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

46 lines
1.3 KiB
Scheme
Raw Normal View History

<div class="page-content page-content-main">
2020-02-12 21:31:59 +01:00
<% if not $ExcludeHeader %>
<% include PageHeader %>
<% end_if %>
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">
2020-04-20 12:01:08 +02:00
<% if $ElementalArea.Elements.Count %>
$ElementalArea
<% else %>
<div class="element element_content_field dnadesign__elemental__models__elementcontent">
<div class="element-container {$DefaultContainer}">
<% include DNADesign\Elemental\Models\ElementContent HTML=$Content %>
</div>
</div>
<% end_if %>
</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>