2 <link rel="stylesheet" href="{{$baseurl}}/view/theme/frio/frameworks/jRange/jquery.range.css" type="text/css" media="screen" />
3 <script src="{{$baseurl}}/view/theme/quattro/jquery.tools.min.js"></script>
4 <script src="{{$baseurl}}/view/theme/frio/frameworks/jRange/jquery.range.js"></script>
5 <script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js" ></script>
7 {{include file="field_select.tpl" field=$scheme}}
9 {{if $nav_bg}}{{include file="field_colorinput.tpl" field=$nav_bg}}{{/if}}
10 {{if $nav_icon_color}}{{include file="field_colorinput.tpl" field=$nav_icon_color}}{{/if}}
11 {{if $link_color}}{{include file="field_colorinput.tpl" field=$link_color}}{{/if}}
13 {{if $bgcolor}}{{include file="field_colorinput.tpl" field=$bgcolor}}{{/if}}
15 {{* The slider for the content opacity - We use no template for this since it is only used at this page *}}
16 {{if $contentbg_transp}}
17 <div class="form-group field input color">
18 <label for="id_{{$contentbg_transp.0}}" id="label_{{$contentbg_transp.0}}">{{$contentbg_transp.1}}</label>
19 <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">
20 <span id="{{$contentbg_transp.0}}_tip" class="help-block" role="tooltip">{{$contentbg_transp.3}}</span>
21 <div id="end_{{$contentbg_transp.0}}" class="field_end"></div>
25 {{if $background_image}}{{include file="field_fileinput.tpl" field=$background_image}}{{/if}}
27 <div id="frio_bg_image_options" style="display: none;">
28 {{foreach $bg_image_options as $options}}
29 {{include file="field_radio.tpl" field=$options}}
33 {{if $login_bg_image}}{{include file="field_fileinput.tpl" field=$login_bg_image}}{{/if}}
34 {{if $login_bg_color}}{{include file="field_colorinput.tpl" field=$login_bg_color}}{{/if}}
36 <script type="text/javascript">
37 $(document).ready(function() {
38 $("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color, #frio_login_bg_color").colorpicker({format: 'hex', align: 'left'});
40 // show image options when user user starts to type the address of the image
41 $("#id_frio_background_image").keyup(function(){
42 var elText = $(this).val();
43 if(elText.length !== 0) {
44 $("#frio_bg_image_options").show();
46 $("#frio_bg_image_options").hide();
50 // show the image options is there is allready an image
51 if($("#id_frio_background_image").val().length != 0) {
52 $("#frio_bg_image_options").show();
55 $('.slider-input').jRange({
59 scale: [0,10,20,30,40,50,60,70,80,90,100],
66 // The position of the slider is wrong calculated on hidden elements.
67 // So set an event listener toggle and update the jRange value.
68 $(document).on('click', '#custom-settings-title a', function() {
69 var bgTransp = $('#frio_contentbg_transp').val();
70 $('.slider-input').jRange('setValue', bgTransp);
76 <div class="settings-submit-wrapper form-group pull-right">
77 <button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit">{{$submit}}</button>
79 <div class="clearfix"></div>
81 <script type="text/javascript">
82 $(".inputRange").rangeinput();