]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/theme_settings.tpl
Added the share_string field
[friendica.git] / view / theme / frio / templates / theme_settings.tpl
1
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>
6
7 {{include file="field_select.tpl" field=$scheme}}
8
9 {{if $nav_bg}}{{include file="field_input.tpl" field=$share_string}}{{/if}}
10 {{if $nav_bg}}{{include file="field_colorinput.tpl" field=$nav_bg}}{{/if}}
11 {{if $nav_icon_color}}{{include file="field_colorinput.tpl" field=$nav_icon_color}}{{/if}}
12 {{if $link_color}}{{include file="field_colorinput.tpl" field=$link_color}}{{/if}}
13
14 {{if $background_color}}{{include file="field_colorinput.tpl" field=$background_color}}{{/if}}
15
16 {{* The slider for the content opacity - We use no template for this since it is only used at this page *}}
17 {{if $contentbg_transp}}
18 <div class="form-group field input color">
19         <label for="id_{{$contentbg_transp.0}}" id="label_{{$contentbg_transp.0}}">{{$contentbg_transp.1}}</label>
20         <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">
21         <span id="{{$contentbg_transp.0}}_tip" class="help-block" role="tooltip">{{$contentbg_transp.3}}</span>
22         <div id="end_{{$contentbg_transp.0}}" class="field_end"></div>
23 </div>
24 {{/if}}
25
26 {{if $background_image}}{{include file="field_fileinput.tpl" field=$background_image}}{{/if}}
27
28 <div id="frio_bg_image_options" style="display: none;">
29         <label>{{$bg_image_options_title}}:</label>
30 {{foreach $bg_image_options as $options}}
31         {{include file="field_radio.tpl" field=$options}}
32 {{/foreach}}
33 </div>
34
35 {{if $login_bg_image}}{{include file="field_fileinput.tpl" field=$login_bg_image}}{{/if}}
36 {{if $login_bg_color}}{{include file="field_colorinput.tpl" field=$login_bg_color}}{{/if}}
37
38 <script type="text/javascript">
39         $(document).ready(function() {
40                 $("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color, #frio_login_bg_color").colorpicker({format: 'hex', align: 'left'});
41
42                 // show image options when user user starts to type the address of the image
43                 $("#id_frio_background_image").keyup(function(){
44                         var elText = $(this).val();
45                         if(elText.length !== 0) {
46                                 $("#frio_bg_image_options").show();
47                         } else {
48                                 $("#frio_bg_image_options").hide();
49                         }
50                 });
51
52                 // show the image options is there is allready an image
53                 if($("#id_frio_background_image").val().length != 0) {
54                                 $("#frio_bg_image_options").show();
55                 }
56
57                 $('.slider-input').jRange({
58                         from: 0,
59                         to: 100,
60                         step: 1,
61                         scale: [0,10,20,30,40,50,60,70,80,90,100],
62                         format: '%s',
63                         width: '100%',
64                         showLabels: true,
65                         theme: 'theme-frio',
66                 });
67
68                 // The position of the slider is wrong calculated on hidden elements.
69                 // So set an event listener toggle and update the jRange value.
70                 $(document).on('click', '#custom-settings-title a', function() {
71                         var bgTransp = $('#frio_contentbg_transp').val();
72                         $('.slider-input').jRange('setValue', bgTransp);
73                 });
74
75         });
76 </script>
77
78 <div class="settings-submit-wrapper form-group pull-right">
79         <button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit">{{$submit}}</button>
80 </div>
81 <div class="clearfix"></div>
82
83 <script type="text/javascript">
84     $(".inputRange").rangeinput();
85 </script>