mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
3ee8f505b7
The main benefit of this is so that authors who make use of .editorconfig don't end up with whitespace changes in their PRs. Spaces vs. tabs has been left alone, although that could do with a tidy-up in SS4 after the switch to PSR-1/2. The command used was this: for match in '*.ss' '*.css' '*.scss' '*.html' '*.yml' '*.php' '*.js' '*.csv' '*.inc' '*.php5'; do find . -path ./thirdparty -not -prune -o -path ./admin/thirdparty -not -prune -o -type f -name "$match" -exec sed -E -i '' 's/[[:space:]]+$//' {} \+ find . -path ./thirdparty -not -prune -o -path ./admin/thirdparty -not -prune -o -type f -name "$match" | xargs perl -pi -e 's/ +$//' done
46 lines
2.4 KiB
Scheme
46 lines
2.4 KiB
Scheme
<div class="cms-navigator">
|
|
|
|
<% include LeftAndMain_ViewModeSelector SelectID="preview-mode-dropdown-in-preview" %>
|
|
|
|
<span id="preview-size-dropdown" class="preview-size-selector preview-selector field dropdown">
|
|
<select title="<%t SilverStripeNavigator.ViewDeviceWidth 'Select a preview width' %>" id="preview-size-dropdown-select" class="preview-dropdown dropdown nolabel" autocomplete="off" name="Action">
|
|
<option data-icon="font-icon-resize" data-description="<%t SilverStripeNavigator.Responsive 'Responsive' %>" class="font-icon-resize icon-view first" value="auto">
|
|
<%t SilverStripeNavigator.Auto 'Auto' %>
|
|
</option>
|
|
<option data-icon="font-icon-monitor" data-description="1024px <%t SilverStripeNavigator.Width 'width' %>" class="font-icon-monitor icon-view" value="desktop">
|
|
<%t SilverStripeNavigator.Desktop 'Desktop' %>
|
|
</option>
|
|
<option data-icon="font-icon-tablet" data-description="800px <%t SilverStripeNavigator.Width 'width' %>" class="font-icon-tablet icon-view" value="tablet">
|
|
<%t SilverStripeNavigator.Tablet 'Tablet' %>
|
|
</option>
|
|
<option data-icon="font-icon-mobile" data-description="400px <%t SilverStripeNavigator.Width 'width' %>" class="font-icon-mobile icon-view last" value="mobile">
|
|
<%t SilverStripeNavigator.Mobile 'Mobile' %>
|
|
</option>
|
|
</select>
|
|
</span>
|
|
|
|
<% if $Items %>
|
|
<% if $Items.Count < 5 %>
|
|
<fieldset id="preview-states" class="cms-preview-states switch-states size_{$Items.Count}">
|
|
<div class="switch">
|
|
<% loop $Items %>
|
|
<input id="$Title" data-name="$Name" class="state-name $FirstLast" data-link="$Link" name="view" type="radio" <% if $isActive %>checked<% end_if %>>
|
|
<label for="$Title"<% if $isActive %> class="active"<% end_if %>><span>$Title</span></label>
|
|
<% end_loop %>
|
|
<span class="slide-button"></span>
|
|
</div>
|
|
</fieldset>
|
|
<% else %>
|
|
<span id="preview-state-dropdown" class="cms-preview-states field dropdown">
|
|
<select title="<%t SilverStripeNavigator.PreviewState 'Preview State' %>" id="preview-states" class="preview-state dropdown nolabel" autocomplete="off" name="preview-state">
|
|
<% loop $Items %>
|
|
<option name="$Name" data-name="$Name" data-link="$Link" class="state-name $FirstLast" value="$Link" <% if $isActive %>selected<% end_if %>>
|
|
$Title
|
|
</option>
|
|
<% end_loop %>
|
|
</select>
|
|
</span>
|
|
<% end_if %>
|
|
<% end_if %>
|
|
</div>
|