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