]> git.mxchange.org Git - friendica.git/blob - templates/theme_settings.tpl
hovercard: some polishing
[friendica.git] / templates / theme_settings.tpl
1 <link rel="stylesheet" href="{{$baseurl}}/view/theme/frio/frameworks/jRange/jquery.range.css" type="text/css" media="screen" />
2 <script src="{{$baseurl}}/view/theme/quattro/jquery.tools.min.js"></script>
3 <script src="{{$baseurl}}/view/theme/frio/frameworks/jRange/jquery.range.js"></script>
4
5 {{include file="field_select.tpl" field=$schema}}
6
7 {{if $nav_bg}}{{include file="field_colorinput.tpl" field=$nav_bg}}{{/if}}
8 {{if $nav_icon_color}}{{include file="field_colorinput.tpl" field=$nav_icon_color}}{{/if}}
9 {{if $link_color}}{{include file="field_colorinput.tpl" field=$link_color}}{{/if}}
10
11 {{if $bgcolor}}{{include file="field_colorinput.tpl" field=$bgcolor}}{{/if}}
12
13 {{* The slider for the content opacity - We use no template for this since it is only used at this page *}}
14 {{if $contentbg_transp}}
15 <div class="form-group field input color">
16         <label for="id_{{$contentbg_transp.0}}" id="label_{{$contentbg_transp.0}}">{{$contentbg_transp.1}}</label>
17         <input type="hidden" class="form-control color slider-input" name="{{$contentbg_transp.0}}" id="{{$contentbg_transp.0}}" type="text" value="{{$contentbg_transp.2}}">
18         <span id="help_{{$contentbg_transp.0}}" class="help-block">{{$contentbg_transp.3}}</span>
19         <div id="end_{{$contentbg_transp.0}}" class="field_end"></div>
20 </div>
21 {{/if}}
22
23 {{if $background_image}}{{include file="field_colorinput.tpl" field=$background_image}}{{/if}}
24
25 <div id="frio_bg_image_options" style="display: none;">
26 {{foreach $bg_image_options as $options}}
27         {{include file="field_radio.tpl" field=$options}}
28 {{/foreach}}
29 </div>
30
31 <script>
32         $(function(){
33                 $("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color").colorpicker({format: 'hex', align: 'left'});
34
35                 // show image options when user user starts to type the address of the image
36                 $("#id_frio_background_image").keyup(function(){
37                         var elText = $(this).val();
38                         if(elText.length !== 0) {
39                                 $("#frio_bg_image_options").show();
40                         } else {
41                                 $("#frio_bg_image_options").hide();
42                         }
43                 });
44
45                 // show the image options is there is allready an image
46                 if($("#id_frio_background_image").val().length != 0) {
47                                 $("#frio_bg_image_options").show();
48                 }
49
50                 $('.slider-input').jRange({
51                         from: 0,
52                         to: 100,
53                         step: 1,
54                         scale: [0,10,20,30,40,50,60,70,80,90,100],
55                         format: '%s',
56                         width: '100%',
57                         showLabels: true,
58                         theme: 'theme-frio',
59                 });
60
61         });
62 </script>
63
64 <div class="settings-submit-wrapper pull-right">
65         <button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit"><i class="fa fa-slideshare"></i>&nbsp;{{$submit}}</button>
66 </div>
67 <div class="clearfix"></div>
68
69 <script>
70     
71     $(".inputRange").rangeinput();
72 </script>