]> git.mxchange.org Git - friendica.git/blob - view/templates/head.tpl
Merge pull request #998 from annando/master
[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 commentExpand(id) {
47                 $("#comment-edit-text-" + id).value = '';
48                 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
49                 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
50                 $("#mod-cmnt-wrap-" + id).show();
51                 openMenu("comment-edit-submit-wrapper-" + id);
52                 return true;
53         }
54         function commentOpen(obj,id) {
55                 if(obj.value == '{{$comment}}') {
56                         obj.value = '';
57                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
58                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
59                         $("#mod-cmnt-wrap-" + id).show();
60                         openMenu("comment-edit-submit-wrapper-" + id);
61                         return true;
62                 }
63                 return false;
64         }
65         function commentClose(obj,id) {
66                 if(obj.value == '') {
67                         obj.value = '{{$comment}}';
68                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
69                         $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
70                         $("#mod-cmnt-wrap-" + id).hide();
71                         closeMenu("comment-edit-submit-wrapper-" + id);
72                         return true;
73                 }
74                 return false;
75         }
76
77
78         function commentInsert(obj,id) {
79                 var tmpStr = $("#comment-edit-text-" + id).val();
80                 if(tmpStr == '{{$comment}}') {
81                         tmpStr = '';
82                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
83                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
84                         openMenu("comment-edit-submit-wrapper-" + id);
85                 }
86                 var ins = $(obj).html();
87                 ins = ins.replace('&lt;','<');
88                 ins = ins.replace('&gt;','>');
89                 ins = ins.replace('&amp;','&');
90                 ins = ins.replace('&quot;','"');
91                 $("#comment-edit-text-" + id).val(tmpStr + ins);
92         }
93
94         function qCommentInsert(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).val();
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                 $(obj).val('');
109         }
110
111         window.showMore = "{{$showmore}}";
112         window.showFewer = "{{$showfewer}}";
113
114         function showHideCommentBox(id) {
115                 if( $('#comment-edit-form-' + id).is(':visible')) {
116                         $('#comment-edit-form-' + id).hide();
117                 }
118                 else {
119                         $('#comment-edit-form-' + id).show();
120                 }
121         }
122
123
124 </script>
125
126