]> git.mxchange.org Git - friendica.git/blob - view/templates/head.tpl
Merge remote-tracking branch 'upstream/develop' into 1606-dbm
[friendica.git] / view / templates / head.tpl
1
2 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
3 <base href="{{$baseurl}}/" />
4 <meta name="generator" content="{{$generator}}" />
5 <link rel="stylesheet" href="view/global.css" type="text/css" media="all" />
6 <link rel="stylesheet" href="library/colorbox/colorbox.css" type="text/css" media="screen" />
7 <link rel="stylesheet" href="library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
8 <link rel="stylesheet" href="library/datetimepicker/jquery.datetimepicker.css" type="text/css" media="screen" />
9 <link rel="stylesheet" href="library/perfect-scrollbar/perfect-scrollbar.min.css" type="text/css" media="screen" />
10
11 <link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
12
13 <!--
14 <link rel="shortcut icon" href="images/friendica-32.png" />
15 <link rel="apple-touch-icon" href="images/friendica-128.png"/>
16 -->
17 <link rel="shortcut icon" href="{{$shortcut_icon}}" />
18 <link rel="apple-touch-icon" href="{{$touch_icon}}"/>
19
20 <meta name="apple-mobile-web-app-capable" content="yes" /> 
21
22
23 <link rel="search"
24          href="{{$baseurl}}/opensearch" 
25          type="application/opensearchdescription+xml" 
26          title="Search in Friendica" />
27
28 <!--[if IE]>
29 <script type="text/javascript" src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
30 <![endif]-->
31 <script type="text/javascript" src="js/modernizr.js" ></script>
32 <script type="text/javascript" src="js/jquery.js" ></script>
33 <!-- <script type="text/javascript" src="js/jquery-migrate.js" ></script>-->
34 <script type="text/javascript" src="js/jquery-migrate.js" ></script>
35 <script type="text/javascript" src="js/jquery.textinputs.js" ></script>
36 <script type="text/javascript" src="library/jquery-textcomplete/jquery.textcomplete.min.js" ></script>
37 <script type="text/javascript" src="js/autocomplete.js" ></script>
38 <script type="text/javascript" src="library/colorbox/jquery.colorbox-min.js"></script>
39 <script type="text/javascript" src="library/jgrowl/jquery.jgrowl_minimized.js"></script>
40 <script type="text/javascript" src="library/datetimepicker/jquery.datetimepicker.js"></script>
41 <script type="text/javascript" src="library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
42 <script type="text/javascript" src="library/perfect-scrollbar/perfect-scrollbar.jquery.js" ></script>
43 <script type="text/javascript" src="js/acl.js" ></script>
44 <script type="text/javascript" src="js/webtoolkit.base64.js" ></script>
45 <script type="text/javascript" src="js/main.js" ></script>
46 <script>
47
48         var updateInterval = {{$update_interval}};
49         var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
50
51         {{* Create an object with the data which is needed for infinite scroll.
52         For the relevant js part look at function loadContent() in main.js. *}}
53         {{if $infinite_scroll}}
54         var infinite_scroll = {
55                                 'pageno'        : {{$infinite_scroll.pageno}},
56                                 'reload_uri'    : "{{$infinite_scroll.reload_uri}}"
57                                 }
58         {{/if}}
59
60         function confirmDelete() { return confirm("{{$delitem}}"); }
61         function commentExpand(id) {
62                 $("#comment-edit-text-" + id).value = '';
63                 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
64                 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
65                 $("#comment-edit-text-" + id).focus();
66                 $("#mod-cmnt-wrap-" + id).show();
67                 openMenu("comment-edit-submit-wrapper-" + id);
68                 return true;
69         }
70         function commentOpen(obj,id) {
71                 if(obj.value == '{{$comment}}') {
72                         obj.value = '';
73                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
74                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
75                         $("#mod-cmnt-wrap-" + id).show();
76                         openMenu("comment-edit-submit-wrapper-" + id);
77                         return true;
78                 }
79                 return false;
80         }
81         function commentClose(obj,id) {
82                 if(obj.value == '') {
83                         obj.value = '{{$comment}}';
84                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
85                         $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
86                         $("#mod-cmnt-wrap-" + id).hide();
87                         closeMenu("comment-edit-submit-wrapper-" + id);
88                         return true;
89                 }
90                 return false;
91         }
92
93
94         function commentInsert(obj,id) {
95                 var tmpStr = $("#comment-edit-text-" + id).val();
96                 if(tmpStr == '{{$comment}}') {
97                         tmpStr = '';
98                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
99                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
100                         openMenu("comment-edit-submit-wrapper-" + id);
101                 }
102                 var ins = $(obj).html();
103                 ins = ins.replace('&lt;','<');
104                 ins = ins.replace('&gt;','>');
105                 ins = ins.replace('&amp;','&');
106                 ins = ins.replace('&quot;','"');
107                 $("#comment-edit-text-" + id).val(tmpStr + ins);
108         }
109
110         function qCommentInsert(obj,id) {
111                 var tmpStr = $("#comment-edit-text-" + id).val();
112                 if(tmpStr == '{{$comment}}') {
113                         tmpStr = '';
114                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
115                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
116                         openMenu("comment-edit-submit-wrapper-" + id);
117                 }
118                 var ins = $(obj).val();
119                 ins = ins.replace('&lt;','<');
120                 ins = ins.replace('&gt;','>');
121                 ins = ins.replace('&amp;','&');
122                 ins = ins.replace('&quot;','"');
123                 $("#comment-edit-text-" + id).val(tmpStr + ins);
124                 $(obj).val('');
125         }
126
127         window.showMore = "{{$showmore}}";
128         window.showFewer = "{{$showfewer}}";
129
130         function showHideCommentBox(id) {
131                 if( $('#comment-edit-form-' + id).is(':visible')) {
132                         $('#comment-edit-form-' + id).hide();
133                 }
134                 else {
135                         $('#comment-edit-form-' + id).show();
136                 }
137         }
138
139
140 </script>
141
142