2011-07-21 20:14:33 +02:00
|
|
|
<div class="cms-navigator">
|
2012-11-22 02:14:11 +01:00
|
|
|
|
2012-11-27 06:03:43 +01:00
|
|
|
<% include LeftAndMain_ViewModeSelector SelectID="preview-mode-dropdown-in-preview" %>
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-11-27 06:03:43 +01:00
|
|
|
<span id="preview-size-dropdown" class="preview-size-selector preview-selector field dropdown">
|
2015-07-22 14:51:34 +02:00
|
|
|
<select title="<%t SilverStripeNavigator.ViewDeviceWidth 'Select a preview width' %>" id="preview-size-dropdown-select" class="preview-dropdown dropdown nolabel" autocomplete="off" name="Action">
|
2015-08-31 23:46:39 +02:00
|
|
|
<option data-icon="font-icon-resize" data-description="<%t SilverStripeNavigator.Responsive 'Responsive' %>" class="font-icon-resize icon-view first" value="auto">
|
2015-07-22 14:51:34 +02:00
|
|
|
<%t SilverStripeNavigator.Auto 'Auto' %>
|
2012-11-22 04:30:50 +01:00
|
|
|
</option>
|
2015-08-31 23:46:39 +02:00
|
|
|
<option data-icon="font-icon-monitor" data-description="1024px <%t SilverStripeNavigator.Width 'width' %>" class="font-icon-monitor icon-view" value="desktop">
|
2015-07-22 14:51:34 +02:00
|
|
|
<%t SilverStripeNavigator.Desktop 'Desktop' %>
|
2012-11-22 04:30:50 +01:00
|
|
|
</option>
|
2015-08-31 23:46:39 +02:00
|
|
|
<option data-icon="font-icon-tablet" data-description="800px <%t SilverStripeNavigator.Width 'width' %>" class="font-icon-tablet icon-view" value="tablet">
|
2015-07-22 14:51:34 +02:00
|
|
|
<%t SilverStripeNavigator.Tablet 'Tablet' %>
|
2012-11-22 04:30:50 +01:00
|
|
|
</option>
|
2015-08-31 23:46:39 +02:00
|
|
|
<option data-icon="font-icon-mobile" data-description="400px <%t SilverStripeNavigator.Width 'width' %>" class="font-icon-mobile icon-view last" value="mobile">
|
2015-07-22 14:51:34 +02:00
|
|
|
<%t SilverStripeNavigator.Mobile 'Mobile' %>
|
2012-11-22 04:30:50 +01:00
|
|
|
</option>
|
2012-11-22 02:14:11 +01:00
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
|
2013-07-13 13:00:46 +02:00
|
|
|
<% if $Items %>
|
|
|
|
<% if $Items.Count < 5 %>
|
2014-11-09 22:31:53 +01:00
|
|
|
<div id="preview-states" class="cms-preview-states switch-states size_{$Items.Count}">
|
2013-01-09 21:43:10 +01:00
|
|
|
<div class="switch">
|
2016-01-06 00:34:58 +01:00
|
|
|
<% loop $Items %>
|
2014-11-09 22:31:53 +01:00
|
|
|
<a href="$Link" id="$Title" data-name="$Name" class="state-name $FirstLast<% if $isActive %> active<% end_if %>">
|
|
|
|
<span>$Title</span>
|
|
|
|
</a>
|
2013-01-09 21:43:10 +01:00
|
|
|
<% end_loop %>
|
|
|
|
</div>
|
2014-11-09 22:31:53 +01:00
|
|
|
</div>
|
2013-01-09 21:43:10 +01:00
|
|
|
<% else %>
|
|
|
|
<span id="preview-state-dropdown" class="cms-preview-states field dropdown">
|
2015-07-22 14:51:34 +02:00
|
|
|
<select title="<%t SilverStripeNavigator.PreviewState 'Preview State' %>" id="preview-states" class="preview-state dropdown nolabel" autocomplete="off" name="preview-state">
|
2016-01-06 00:34:58 +01:00
|
|
|
<% loop $Items %>
|
2013-07-13 13:00:46 +02:00
|
|
|
<option name="$Name" data-name="$Name" data-link="$Link" class="state-name $FirstLast" value="$Link" <% if $isActive %>selected<% end_if %>>
|
2013-01-09 21:43:10 +01:00
|
|
|
$Title
|
|
|
|
</option>
|
2016-01-06 00:34:58 +01:00
|
|
|
<% end_loop %>
|
2013-01-09 21:43:10 +01:00
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
<% end_if %>
|
2012-12-03 03:17:16 +01:00
|
|
|
<% end_if %>
|
2013-07-13 13:00:46 +02:00
|
|
|
</div>
|