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>
|
||||
<% if Legend %><legend>$Legend</legend><% end_if %>
|
||||
<% loop Fields %>
|
||||
<% control Fields %>
|
||||
<div class="field $type">
|
||||
<% if type != checkbox %><% if IsHidden != true %><label for="$id">$Title</label><% end_if %><% end_if %>
|
||||
<div class="middleColumn">$Field</div>
|
||||
<% if type == checkbox %><label for="$id">$Title</label><% end_if %>
|
||||
<% if Message %><span class="message $MessageType">$Message</span><% end_if %>
|
||||
</div>
|
||||
<% end_loop %>
|
||||
<% end_control %>
|
||||
|
||||
<% if Actions %>
|
||||
<div class="Actions">
|
||||
<div class="middleColumn">
|
||||
<% loop Actions %>
|
||||
<% control Actions %>
|
||||
$Field
|
||||
<% end_loop %>
|
||||
<% end_control %>
|
||||
</div>
|
||||
</ul>
|
||||
<% end_if %>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<nav class="primary">
|
||||
<ul>
|
||||
<% loop Menu(1) %>
|
||||
<% control Menu(1) %>
|
||||
<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
|
||||
<% end_loop %>
|
||||
<% end_control %>
|
||||
</ul>
|
||||
</nav>
|
@ -2,14 +2,14 @@
|
||||
<% if Menu(2) %>
|
||||
<nav class="secondary">
|
||||
<h3>
|
||||
<% loop Level(1) %>
|
||||
<% control Level(1) %>
|
||||
$Title
|
||||
<% end_loop %>
|
||||
<% end_control %>
|
||||
</h3>
|
||||
<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>
|
||||
<% end_loop %>
|
||||
<% end_control %>
|
||||
</ul>
|
||||
</nav>
|
||||
<% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user