IMPR: Remove unnecessary divs

This commit is contained in:
Tony Air 2022-07-03 15:18:47 +02:00
parent 07ba7167d1
commit 2f7d358dbe
2 changed files with 48 additions and 48 deletions

View File

@ -1,53 +1,49 @@
<div class="page-content page-content-main"> <% if not $ExcludeHeader %>
<% if not $ExcludeHeader %> <% include PageHeader %>
<% include PageHeader %> <% end_if %>
<% end_if %>
<% if $CurrentElement %> <% if $CurrentElement %>
<%-- div class="element page-content-element"> <%-- div class="element page-content-element">
<div class="element_container"> <div class="element_container">
<div class="$DefaultContainer"> <div class="$DefaultContainer">
<div class="typography">$Content</div> <div class="typography">$Content</div>
</div>
</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> </div>
</div>
</div --%>
<div class="current-element">
$CurrentElement
</div>
<% else %>
<div class="elemental-area">
<% 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>
</div>
<% end_if %>
</div> </div>
<% end_if %> <% end_if %>
<% end_if %>
<% if $Form %> <% if $Form %>
<div class="page-form-element element"> <div class="page-form-element element">
<div class="element_container">
<div class="$DefaultContainer">
$Form
</div>
</div>
</div>
<% end_if %>
<% if $ExtraCode %>
<div class="page-extra-code">
<div class="element">
<div class="element_container"> <div class="element_container">
<div class="$DefaultContainer"> <div class="$DefaultContainer">
$Form $ExtraCode
</div> </div>
</div> </div>
</div> </div>
<% end_if %>
<% if $ExtraCode %>
<div class="page-extra-code">
<div class="element">
<div class="element_container">
<div class="$DefaultContainer">
$ExtraCode
</div>
</div>
</div>
</div>
<% end_if %>
</div> </div>
<% end_if %>

View File

@ -7,17 +7,16 @@
</div> </div>
<% end_if %> <% end_if %>
<% if $URLSegment != 'home' %>
<div id="PageBreadcumbs" class="element element__breadcrumbs">
$Breadcrumbs
</div>
<% end_if %>
<% if $SideBarContent || $SideBarView && $SideBarView.Widgets.Count %> <% if $SideBarContent || $SideBarView && $SideBarView.Widgets.Count %>
<div class="content-holder content-holder__sidebar"> <div class="content-holder content-holder__sidebar">
<div class="{$DefaultContainer}"> <div class="{$DefaultContainer}">
<div class="row"> <div class="row">
<div class="col-md-9 layout__col"> <div class="col-md-9 layout__col">
<% if $URLSegment != 'home' %>
<div id="PageBreadcumbs" class="element element__breadcrumbs">
$Breadcrumbs
</div>
<% end_if %>
$Layout $Layout
</div> </div>
<div class="col-md-3 sidebar__col"> <div class="col-md-3 sidebar__col">
@ -35,6 +34,11 @@
</div> </div>
<% else %> <% else %>
<div class="content-holder"> <div class="content-holder">
<% if $URLSegment != 'home' %>
<div id="PageBreadcumbs" class="element element__breadcrumbs">
$Breadcrumbs
</div>
<% end_if %>
$Layout $Layout
</div> </div>
<% end_if %> <% end_if %>