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