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