]> git.mxchange.org Git - friendica.git/blob - view/smarty3/head.tpl
template engine rework
[friendica.git] / view / smarty3 / 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}}/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />-->*}}
10 <link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
11 <link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
12
13 <link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
14
15 <link rel="shortcut icon" href="{{$baseurl}}/images/friendica-32.png" />
16
17 <link rel="apple-touch-icon" href="{{$baseurl}}/images/friendica-128.png"/>
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/jquery.js" ></script>
30 <script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
31 <script type="text/javascript" src="{{$baseurl}}/js/fk.autocomplete.js" ></script>
32 {{*<!--<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox.pack.js"></script>-->*}}
33 <script type="text/javascript" src="{{$baseurl}}/library/colorbox/jquery.colorbox-min.js"></script>
34 <script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
35 <script type="text/javascript" src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
36 <script type="text/javascript" src="{{$baseurl}}/js/acl.js" ></script>
37 <script type="text/javascript" src="{{$baseurl}}/js/webtoolkit.base64.js" ></script>
38 <script type="text/javascript" src="{{$baseurl}}/js/main.js" ></script>
39 <script>
40
41         var updateInterval = {{$update_interval}};
42         var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
43
44         function confirmDelete() { return confirm("{{$delitem}}"); }
45         function commentOpen(obj,id) {
46                 if(obj.value == '{{$comment}}') {
47                         obj.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                 return false;
55         }
56         function commentClose(obj,id) {
57                 if(obj.value == '') {
58                         obj.value = '{{$comment}}';
59                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
60                         $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
61                         $("#mod-cmnt-wrap-" + id).hide();
62                         closeMenu("comment-edit-submit-wrapper-" + id);
63                         return true;
64                 }
65                 return false;
66         }
67
68
69         function commentInsert(obj,id) {
70                 var tmpStr = $("#comment-edit-text-" + id).val();
71                 if(tmpStr == '{{$comment}}') {
72                         tmpStr = '';
73                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
74                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
75                         openMenu("comment-edit-submit-wrapper-" + id);
76                 }
77                 var ins = $(obj).html();
78                 ins = ins.replace('&lt;','<');
79                 ins = ins.replace('&gt;','>');
80                 ins = ins.replace('&amp;','&');
81                 ins = ins.replace('&quot;','"');
82                 $("#comment-edit-text-" + id).val(tmpStr + ins);
83         }
84
85         function qCommentInsert(obj,id) {
86                 var tmpStr = $("#comment-edit-text-" + id).val();
87                 if(tmpStr == '{{$comment}}') {
88                         tmpStr = '';
89                         $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
90                         $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
91                         openMenu("comment-edit-submit-wrapper-" + id);
92                 }
93                 var ins = $(obj).val();
94                 ins = ins.replace('&lt;','<');
95                 ins = ins.replace('&gt;','>');
96                 ins = ins.replace('&amp;','&');
97                 ins = ins.replace('&quot;','"');
98                 $("#comment-edit-text-" + id).val(tmpStr + ins);
99                 $(obj).val('');
100         }
101
102         window.showMore = "{{$showmore}}";
103         window.showFewer = "{{$showfewer}}";
104
105         function showHideCommentBox(id) {
106                 if( $('#comment-edit-form-' + id).is(':visible')) {
107                         $('#comment-edit-form-' + id).hide();
108                 }
109                 else {
110                         $('#comment-edit-form-' + id).show();
111                 }
112         }
113
114
115 </script>
116
117