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