1
0
mirror of https://github.com/a2nt/silverstripe-elemental-basics.git synced 2024-10-22 17:05:54 +02:00
silverstripe-elemental-basics/templates/A2nt/ElementalBasics/Elements/SidebarElement.ss

12 lines
336 B
Scheme

<% with $Page %>
<% if $SideBarContent || $SideBarView && $SideBarView.Widgets.Count %>
<% if $Up.ShowTitle %>
<h2 class="element__title">$Up.Title</h2>
<% end_if %>
<div class="sidebar-content">
$SideBarContent
$SideBarView
</div>
<% end_if %>
<% end_with %>