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