]> git.mxchange.org Git - friendica.git/blob - view/templates/head.tpl
13dc71f6ea542ada7d74f429651a522a97a1e563
[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="vendor/asset/jquery-colorbox/example5/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="vendor/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css" type="text/css" media="screen" />
9 <link rel="stylesheet" href="library/perfect-scrollbar/perfect-scrollbar.min.css" type="text/css" media="screen" />
10 <link rel="stylesheet" href="vendor/pear/text_highlighter/sample.css" type="text/css" media="screen" />
11
12 <link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
13
14 <!--
15 <link rel="shortcut icon" href="images/friendica-32.png" />
16 <link rel="apple-touch-icon" href="images/friendica-128.png"/>
17 -->
18 <link rel="shortcut icon" href="{{$shortcut_icon}}" />
19 <link rel="apple-touch-icon" href="{{$touch_icon}}"/>
20
21 <meta name="apple-mobile-web-app-capable" content="yes" />
22 <link rel="manifest" href="{{$baseurl}}/manifest" />
23 <script>
24 // Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
25 (function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
26 </script>
27
28 <link rel="search"
29          href="{{$baseurl}}/opensearch"
30          type="application/opensearchdescription+xml"
31          title="Search in Friendica" />
32
33 <!--[if IE]>
34 <script type="text/javascript" src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
35 <![endif]-->
36 <script type="text/javascript" src="js/modernizr.js" ></script>
37 <script type="text/javascript" src="vendor/asset/jquery/dist/jquery.min.js" ></script>
38 <script type="text/javascript" src="js/jquery-migrate.js" ></script>
39 <script type="text/javascript" src="js/jquery.textinputs.js" ></script>
40 <script type="text/javascript" src="library/jquery-textcomplete/jquery.textcomplete.min.js" ></script>
41 <script type="text/javascript" src="js/autocomplete.js" ></script>
42 <script type="text/javascript" src="vendor/asset/jquery-colorbox/jquery.colorbox-min.js"></script>
43 <script type="text/javascript" src="library/jgrowl/jquery.jgrowl_minimized.js"></script>
44 <script type="text/javascript" src="vendor/asset/jquery-datetimepicker/build/jquery.datetimepicker.full.min.js"></script>
45 <script type="text/javascript" src="library/perfect-scrollbar/perfect-scrollbar.jquery.min.js" ></script>
46 <script type="text/javascript" src="js/acl.js" ></script>
47 <script type="text/javascript" src="vendor/asset/base64/base64.min.js" ></script>
48 <script type="text/javascript" src="js/main.js" ></script>
49 <script>
50
51         var updateInterval = {{$update_interval}};
52         var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
53
54         {{* Create an object with the data which is needed for infinite scroll.
55         For the relevant js part look at function loadContent() in main.js. *}}
56         {{if $infinite_scroll}}
57         var infinite_scroll = {
58                 "pageno"        : {{$infinite_scroll.pageno}},
59                 "reload_uri"    : "{{$infinite_scroll.reload_uri}}"
60         }
61         {{/if}}
62
63         function confirmDelete() { return confirm("{{$delitem}}"); }
64         function commentExpand(id) {
65                 $("#comment-edit-text-" + id).value = "";
66                 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
67                 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
68                 $("#comment-edit-text-" + id).focus();
69                 $("#mod-cmnt-wrap-" + id).show();
70                 openMenu("comment-edit-submit-wrapper-" + id);
71                 return true;
72         }
73         function commentOpen(obj,id) {
74                 if (obj.value == "") {
75                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
76                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
77                         $("#mod-cmnt-wrap-" + id).show();
78                         openMenu("comment-edit-submit-wrapper-" + id);
79                         return true;
80                 }
81                 return false;
82         }
83         function commentClose(obj,id) {
84                 if (obj.value == "") {
85                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
86                         $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
87                         $("#mod-cmnt-wrap-" + id).hide();
88                         closeMenu("comment-edit-submit-wrapper-" + id);
89                         return true;
90                 }
91                 return false;
92         }
93
94
95         function commentInsert(obj,id) {
96                 var tmpStr = $("#comment-edit-text-" + id).val();
97                 if (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 == "") {
113                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
114                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
115                         openMenu("comment-edit-submit-wrapper-" + id);
116                 }
117                 var ins = $(obj).val();
118                 ins = ins.replace("&lt;","<");
119                 ins = ins.replace("&gt;",">");
120                 ins = ins.replace("&amp;","&");
121                 ins = ins.replace("&quot;","\"");
122                 $("#comment-edit-text-" + id).val(tmpStr + ins);
123                 $(obj).val("");
124         }
125
126         window.showMore = "{{$showmore}}";
127         window.showFewer = "{{$showfewer}}";
128
129         function showHideCommentBox(id) {
130                 if ($("#comment-edit-form-" + id).is(":visible")) {
131                         $("#comment-edit-form-" + id).hide();
132                 } else {
133                         $("#comment-edit-form-" + id).show();
134                 }
135         }
136
137
138 </script>
139
140