+<script src="{{$baseurl}}/view/theme/frio/js/jquery.tools.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
+<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
+
+<div class="form-group field select">
+ <label for="id_{{$scheme.0}}">{{$scheme.1}}</label>
+ <select name="{{$scheme.0}}" id="id_{{$scheme.0}}" class="form-control">
+ <option value="---" {{if '---' == $scheme.2}}selected="selected"{{/if}}>{{$custom}}</option>
+ <optgroup label="{{$accented}}">
+ {{foreach $scheme.3 as $value => $label}}
+ <option value="{{$value}}" {{if $value == $scheme.2}}selected="selected"{{/if}}>{{$label}}</option>
+ {{/foreach}}
+ </optgroup>
+ <optgroup label="{{$legacy}}">
+ {{foreach $scheme.4 as $value => $label}}
+ <option value="{{$value}}" {{if $value == $scheme.2}}selected="selected"{{/if}}>{{$label}}</option>
+ {{/foreach}}
+ </optgroup>
+ </select>
+</div>
-<link rel="stylesheet" href="{{$baseurl}}/view/theme/frio/frameworks/jRange/jquery.range.css" type="text/css" media="screen" />
-<script src="{{$baseurl}}/view/theme/quattro/jquery.tools.min.js"></script>
-<script src="{{$baseurl}}/view/theme/frio/frameworks/jRange/jquery.range.js"></script>
-<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js" ></script>
-
-{{include file="field_select.tpl" field=$scheme}}
+{{if $scheme_accent}}
+<div class="form-group">
+ <p><label>{{$scheme_accent.1}}</label></p>
+ <label class="radio-inline">
+ <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_BLUE}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_BLUE}} checked{{/if}}>
+ <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_BLUE}}; width: 20px; display: inline-block"> </span>
+ {{$scheme_accent.3.blue}}
+ </label>
+ <label class="radio-inline">
+ <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_RED}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_RED}} checked{{/if}}>
+ <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_RED}}; width: 20px; display: inline-block"> </span>
+ {{$scheme_accent.3.red}}
+ </label>
+ <label class="radio-inline">
+ <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_PURPLE}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_PURPLE}} checked{{/if}}>
+ <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_PURPLE}}; width: 20px; display: inline-block"> </span>
+ {{$scheme_accent.3.purple}}
+ </label>
+ <label class="radio-inline">
+ <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_GREEN}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_GREEN}} checked{{/if}}>
+ <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_GREEN}}; width: 20px; display: inline-block"> </span>
+ {{$scheme_accent.3.green}}
+ </label>
+ <label class="radio-inline">
+ <input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_PINK}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_PINK}} checked{{/if}}>
+ <span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_PINK}}; width: 20px; display: inline-block"> </span>
+ {{$scheme_accent.3.pink}}
+ </label>
+</div>
+{{/if}}
-{{if $nav_bg}}{{include file="field_input.tpl" field=$share_string}}{{/if}}
+{{if $share_string}}{{include file="field_input.tpl" field=$share_string}}{{/if}}
{{if $nav_bg}}{{include file="field_colorinput.tpl" field=$nav_bg}}{{/if}}
{{if $nav_icon_color}}{{include file="field_colorinput.tpl" field=$nav_icon_color}}{{/if}}
{{if $link_color}}{{include file="field_colorinput.tpl" field=$link_color}}{{/if}}
{{if $background_color}}{{include file="field_colorinput.tpl" field=$background_color}}{{/if}}
-{{* The slider for the content opacity - We use no template for this since it is only used at this page *}}
-{{if $contentbg_transp}}
-<div class="form-group field input color">
- <label for="id_{{$contentbg_transp.0}}" id="label_{{$contentbg_transp.0}}">{{$contentbg_transp.1}}</label>
- <input type="hidden" class="form-control color slider-input" name="{{$contentbg_transp.0}}" id="{{$contentbg_transp.0}}" type="text" value="{{$contentbg_transp.2}}" aria-describedby="{{$contentbg_transp.0}}_tip">
- <span id="{{$contentbg_transp.0}}_tip" class="help-block" role="tooltip">{{$contentbg_transp.3}}</span>
- <div id="end_{{$contentbg_transp.0}}" class="field_end"></div>
-</div>
-{{/if}}
+{{if $contentbg_transp}}{{include file="field/range_percent.tpl" field=$contentbg_transp}}{{/if}}
{{if $background_image}}{{include file="field_fileinput.tpl" field=$background_image}}{{/if}}
if($("#id_frio_background_image").val().length != 0) {
$("#frio_bg_image_options").show();
}
-
- $('.slider-input').jRange({
- from: 0,
- to: 100,
- step: 1,
- scale: [0,10,20,30,40,50,60,70,80,90,100],
- format: '%s',
- width: '100%',
- showLabels: true,
- theme: 'theme-frio',
- });
-
- // The position of the slider is wrong calculated on hidden elements.
- // So set an event listener toggle and update the jRange value.
- $(document).on('click', '#custom-settings-title a', function() {
- var bgTransp = $('#frio_contentbg_transp').val();
- $('.slider-input').jRange('setValue', bgTransp);
- });
-
});
</script>
-<div class="settings-submit-wrapper form-group pull-right">
+{{include file="field_checkbox.tpl" field=$always_open_compose}}
+
+<div class="settings-submit-wrapper pull-right">
<button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit">{{$submit}}</button>
</div>
<div class="clearfix"></div>
-
-<script type="text/javascript">
- $(".inputRange").rangeinput();
-</script>