mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 11:05:50 +02:00
MINOR 2.4 backwards compat syntax
This commit is contained in:
parent
82ae8f7148
commit
294c6e5c42
@ -9,21 +9,21 @@
|
|||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<% if Legend %><legend>$Legend</legend><% end_if %>
|
<% if Legend %><legend>$Legend</legend><% end_if %>
|
||||||
<% loop Fields %>
|
<% control Fields %>
|
||||||
<div class="field $type">
|
<div class="field $type">
|
||||||
<% if type != checkbox %><% if IsHidden != true %><label for="$id">$Title</label><% end_if %><% end_if %>
|
<% if type != checkbox %><% if IsHidden != true %><label for="$id">$Title</label><% end_if %><% end_if %>
|
||||||
<div class="middleColumn">$Field</div>
|
<div class="middleColumn">$Field</div>
|
||||||
<% if type == checkbox %><label for="$id">$Title</label><% end_if %>
|
<% if type == checkbox %><label for="$id">$Title</label><% end_if %>
|
||||||
<% if Message %><span class="message $MessageType">$Message</span><% end_if %>
|
<% if Message %><span class="message $MessageType">$Message</span><% end_if %>
|
||||||
</div>
|
</div>
|
||||||
<% end_loop %>
|
<% end_control %>
|
||||||
|
|
||||||
<% if Actions %>
|
<% if Actions %>
|
||||||
<div class="Actions">
|
<div class="Actions">
|
||||||
<div class="middleColumn">
|
<div class="middleColumn">
|
||||||
<% loop Actions %>
|
<% control Actions %>
|
||||||
$Field
|
$Field
|
||||||
<% end_loop %>
|
<% end_control %>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<nav class="primary">
|
<nav class="primary">
|
||||||
<ul>
|
<ul>
|
||||||
<% loop Menu(1) %>
|
<% control Menu(1) %>
|
||||||
<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
|
<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
|
||||||
<% end_loop %>
|
<% end_control %>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
@ -2,14 +2,14 @@
|
|||||||
<% if Menu(2) %>
|
<% if Menu(2) %>
|
||||||
<nav class="secondary">
|
<nav class="secondary">
|
||||||
<h3>
|
<h3>
|
||||||
<% loop Level(1) %>
|
<% control Level(1) %>
|
||||||
$Title
|
$Title
|
||||||
<% end_loop %>
|
<% end_control %>
|
||||||
</h3>
|
</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<% loop Menu(2) %>
|
<% control Menu(2) %>
|
||||||
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page"><span class="arrow">→</span><span class="text">$MenuTitle.XML</span></a></li>
|
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page"><span class="arrow">→</span><span class="text">$MenuTitle.XML</span></a></li>
|
||||||
<% end_loop %>
|
<% end_control %>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user