]> git.mxchange.org Git - friendica.git/blob - view/templates/head.tpl
427948073282b58bcaf0ae091fdb55c5fcb3e6e4
[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/fancybox/jquery.fancybox.css" type="text/css" media="screen" />-->*}}
7 <link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
8 <link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
9
10 <link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
11
12 <!--
13 <link rel="shortcut icon" href="{{$baseurl}}/images/friendica-32.png" />
14 <link rel="apple-touch-icon" href="{{$baseurl}}/images/friendica-128.png"/>
15 -->
16 <link rel="shortcut icon" href="{{$shortcut_icon}}" />
17 <link rel="apple-touch-icon" href="{{$touch_icon}}"/>
18
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                 $("#comment-edit-text-" + id).focus();
51                 $("#mod-cmnt-wrap-" + id).show();
52                 openMenu("comment-edit-submit-wrapper-" + id);
53                 return true;
54         }
55         function commentOpen(obj,id) {
56                 if(obj.value == '{{$comment}}') {
57                         obj.value = '';
58                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
59                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
60                         $("#mod-cmnt-wrap-" + id).show();
61                         openMenu("comment-edit-submit-wrapper-" + id);
62                         return true;
63                 }
64                 return false;
65         }
66         function commentClose(obj,id) {
67                 if(obj.value == '') {
68                         obj.value = '{{$comment}}';
69                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
70                         $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
71                         $("#mod-cmnt-wrap-" + id).hide();
72                         closeMenu("comment-edit-submit-wrapper-" + id);
73                         return true;
74                 }
75                 return false;
76         }
77
78
79         function commentInsert(obj,id) {
80                 var tmpStr = $("#comment-edit-text-" + id).val();
81                 if(tmpStr == '{{$comment}}') {
82                         tmpStr = '';
83                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
84                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
85                         openMenu("comment-edit-submit-wrapper-" + id);
86                 }
87                 var ins = $(obj).html();
88                 ins = ins.replace('&lt;','<');
89                 ins = ins.replace('&gt;','>');
90                 ins = ins.replace('&amp;','&');
91                 ins = ins.replace('&quot;','"');
92                 $("#comment-edit-text-" + id).val(tmpStr + ins);
93         }
94
95         function qCommentInsert(obj,id) {
96                 var tmpStr = $("#comment-edit-text-" + id).val();
97                 if(tmpStr == '{{$comment}}') {
98                         tmpStr = '';
99                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
100                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
101                         openMenu("comment-edit-submit-wrapper-" + id);
102                 }
103                 var ins = $(obj).val();
104                 ins = ins.replace('&lt;','<');
105                 ins = ins.replace('&gt;','>');
106                 ins = ins.replace('&amp;','&');
107                 ins = ins.replace('&quot;','"');
108                 $("#comment-edit-text-" + id).val(tmpStr + ins);
109                 $(obj).val('');
110         }
111
112         window.showMore = "{{$showmore}}";
113         window.showFewer = "{{$showfewer}}";
114
115         function showHideCommentBox(id) {
116                 if( $('#comment-edit-form-' + id).is(':visible')) {
117                         $('#comment-edit-form-' + id).hide();
118                 }
119                 else {
120                         $('#comment-edit-form-' + id).show();
121                 }
122         }
123
124
125 </script>
126
127