header.tpl
3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Slimspots Wiki</title>
<!-- Bootstrap Core CSS -->
<link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="static/css/slimspots-wiki.css" rel="stylesheet">
<link href="static/css/styles.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href="static/select2/select2.css" rel="stylesheet">
<link href="static/select2/select2-bootstrap.css" rel="stylesheet">
<!-- FontAwesome -->
<link rel="stylesheet" href="static/font-awesome/css/font-awesome.min.css">
<script src="static/bootstrap/js/jquery-1.11.0.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="static/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
var viewportwidth;
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
if (typeof window.innerWidth != 'undefined')
{
viewportwidth = window.innerWidth
}
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
else if (typeof document.documentElement != 'undefined'
&& typeof document.documentElement.clientWidth !=
'undefined' && document.documentElement.clientWidth != 0)
{
viewportwidth = document.documentElement.clientWidth
}
// older versions of IE
else
{
viewportwidth = document.getElementsByTagName('body')[0].clientWidth
}
tinymce.init({
selector: "textarea",
height: 500,
browser_spellcheck : true,
plugin_preview_width : viewportwidth,
templates : [
{
title: "Sub-section title",
url: "tpl/tinymce_templates/sub-title.html",
description: "Enter the number in front (e.g. 2.7 Test) and add it in the id='' part of its source code."
},
{
title: "Sub-sub-section title",
url: "tpl/tinymce_templates/sub-sub-title.html",
description: "Enter the number in front (e.g. 2.7.7 Test) and add it in the id='' part of its source code."
}],
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor colorpicker textpattern autosave"
],
toolbar1: "insertfile undo redo print preview | media link image emoticons | bold italic forecolor backcolor fontsizeselect | alignleft aligncenter alignright alignjustify outdent indent | bullist numlist | charmap searchreplace visualblocks visualchars template",
content_css : ["static/bootstrap/css/bootstrap.min.css","static/css/slimspots-wiki.css", "static/css/styles.css", "static/select2/select2.css", "static/select2/select2-bootstrap.css", "static/font-awesome/css/font-awesome.min.css"]
});
</script>
</head>
<body>