friendica-github/view/head.tpl

113 lines
4.1 KiB
Smarty
Raw Normal View History

2011-03-11 19:12:32 +00:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
2011-05-10 09:18:39 +00:00
<base href="$baseurl/" />
2011-03-11 19:12:32 +00:00
<meta name="generator" content="$generator" />
2013-01-31 15:40:03 +00:00
{#<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />-->#}
<link rel="stylesheet" href="$baseurl/library/colorbox/colorbox.css" type="text/css" media="screen" />
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
2012-03-21 07:35:33 +00:00
<link rel="shortcut icon" href="$baseurl/images/friendica-32.png" />
2012-11-09 18:23:47 +00:00
<link rel="apple-touch-icon" href="$baseurl/images/friendica-128.png"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
2011-04-08 08:40:04 +00:00
<link rel="search"
href="$baseurl/opensearch"
type="application/opensearchdescription+xml"
title="Search in Friendica" />
2011-03-11 19:12:32 +00:00
<!--[if IE]>
2012-02-27 07:54:04 +00:00
<script type="text/javascript" src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2011-03-11 19:12:32 +00:00
<![endif]-->
2011-09-05 09:15:30 +00:00
<script type="text/javascript" src="$baseurl/js/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
<script type="text/javascript" src="$baseurl/js/fk.autocomplete.js" ></script>
2013-01-31 15:40:03 +00:00
{#<!--<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox.pack.js"></script>-->#}
<script type="text/javascript" src="$baseurl/library/colorbox/jquery.colorbox-min.js"></script>
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
2011-07-19 14:17:58 +00:00
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
2011-09-05 09:15:30 +00:00
<script type="text/javascript" src="$baseurl/js/acl.js" ></script>
<script type="text/javascript" src="$baseurl/js/webtoolkit.base64.js" ></script>
2011-09-05 09:15:30 +00:00
<script type="text/javascript" src="$baseurl/js/main.js" ></script>
2011-03-11 19:12:32 +00:00
<script>
var updateInterval = $update_interval;
var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }};
2011-03-29 22:27:14 +00:00
function confirmDelete() { return confirm("$delitem"); }
2011-03-11 19:12:32 +00:00
function commentOpen(obj,id) {
2011-03-29 22:27:14 +00:00
if(obj.value == '$comment') {
2011-03-11 19:12:32 +00:00
obj.value = '';
2012-03-21 13:48:04 +00:00
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
2012-05-11 10:41:29 +00:00
$("#mod-cmnt-wrap-" + id).show();
2011-03-11 19:12:32 +00:00
openMenu("comment-edit-submit-wrapper-" + id);
return true;
2011-03-11 19:12:32 +00:00
}
return false;
2011-03-11 19:12:32 +00:00
}
function commentClose(obj,id) {
if(obj.value == '') {
2011-03-29 22:27:14 +00:00
obj.value = '$comment';
2012-03-21 13:48:04 +00:00
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
$("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
2012-05-11 10:41:29 +00:00
$("#mod-cmnt-wrap-" + id).hide();
2011-03-11 19:12:32 +00:00
closeMenu("comment-edit-submit-wrapper-" + id);
return true;
2011-03-11 19:12:32 +00:00
}
return false;
2011-03-11 19:12:32 +00:00
}
function commentInsert(obj,id) {
var tmpStr = $("#comment-edit-text-" + id).val();
if(tmpStr == '$comment') {
tmpStr = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
openMenu("comment-edit-submit-wrapper-" + id);
}
2012-02-16 02:13:41 +00:00
var ins = $(obj).html();
ins = ins.replace('&lt;','<');
ins = ins.replace('&gt;','>');
ins = ins.replace('&amp;','&');
ins = ins.replace('&quot;','"');
$("#comment-edit-text-" + id).val(tmpStr + ins);
}
2012-03-27 03:13:03 +00:00
function qCommentInsert(obj,id) {
var tmpStr = $("#comment-edit-text-" + id).val();
if(tmpStr == '$comment') {
tmpStr = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
openMenu("comment-edit-submit-wrapper-" + id);
}
var ins = $(obj).val();
ins = ins.replace('&lt;','<');
ins = ins.replace('&gt;','>');
ins = ins.replace('&amp;','&');
ins = ins.replace('&quot;','"');
$("#comment-edit-text-" + id).val(tmpStr + ins);
2012-04-27 04:53:40 +00:00
$(obj).val('');
2012-03-27 03:13:03 +00:00
}
window.showMore = "$showmore";
window.showFewer = "$showfewer";
2011-11-23 00:00:05 +00:00
function showHideCommentBox(id) {
if( $('#comment-edit-form-' + id).is(':visible')) {
$('#comment-edit-form-' + id).hide();
}
else {
$('#comment-edit-form-' + id).show();
}
}
2011-11-23 00:00:05 +00:00
2011-03-11 19:12:32 +00:00
</script>
2011-03-29 22:27:14 +00:00