forked from jskenney/calendar-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcalendar_css.php
More file actions
139 lines (115 loc) · 5.67 KB
/
calendar_css.php
File metadata and controls
139 lines (115 loc) · 5.67 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
if (!defined('CALENDAR_PATH')) {
define('CALENDAR_PATH', '');
}
?>
<!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="robots" content="noindex">
<meta name="googlebot" content="noindex">
<!-- The above 3 meta tags *must* come first in the head;
any other head content must come *after* these tags -->
<!-- Icon to use on the browser bar -->
<link rel="icon" href="<?php echo CALENDAR_PATH; ?>calendar/images/web-icon.png">
<!-- Bootstrap core CSS -->
<link href="<?php echo CALENDAR_PATH; ?>calendar/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Skeleton CSS -->
<link rel="stylesheet" href="<?php echo CALENDAR_PATH; ?>calendar/Skeleton/css/normalize.css">
<link rel="stylesheet" href="<?php echo CALENDAR_PATH; ?>calendar/Skeleton/css/skeleton.css">
<link rel="stylesheet" href="<?php echo CALENDAR_PATH; ?>calendar/css/skeleton-modifications.css">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="<?php echo CALENDAR_PATH; ?>calendar/bootstrap3-ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- Fonts -->
<link href='<?php echo CALENDAR_PATH; ?>calendar/fonts/raleway.css' rel='stylesheet' type='text/css'>
<!-- Ace Code Editor - https://ace.c9.io/ -->
<script type="text/javascript"
src="<?php echo CALENDAR_PATH; ?>calendar/ace-builds/src-noconflict/ace.js" charset="utf-8">
</script>
<!-- Chart.js - http://www.chartjs.org -->
<script type="text/javascript"
src="<?php echo CALENDAR_PATH; ?>calendar/chartjs/Chart.bundle.min.js" charset="utf-8">
</script>
<!-- To support challenge/response authentication within course notes-->
<?php
if (isset($COURSE)) {
?>
<script type="text/javascript">
var nonce = <?php echo json_encode($_SESSION["cal4-$COURSE-nonce"]); ?>;
</script>
<script type="text/javascript" src="<?php echo CALENDAR_PATH; ?>calendar/js/sha256.js"></script>
<?php
}
?>
<!-- Styles for the submission System -->
<link href="<?php echo CALENDAR_PATH; ?>calendar/css/calendar-default.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script type="text/javascript" src="<?php echo CALENDAR_PATH; ?>calendar/MathJax-3.3.2/tex-chtml-full.js?config=TeX-MML-AM_CHTML"></script>
<!-- Highlight.js -->
<link rel="stylesheet" href="<?php echo CALENDAR_PATH; ?>calendar/highlight/styles/color-brewer.min.css">
<script src='<?php echo CALENDAR_PATH; ?>calendar/highlight/highlight.min.js'></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- Font-Awesome -->
<link rel="stylesheet" type="text/css" href="<?php echo CALENDAR_PATH; ?>calendar/Font-Awesome/css/font-awesome.min.css">
<!-- Datatables -->
<link rel="stylesheet" type="text/css" href="<?php echo CALENDAR_PATH; ?>calendar/datatables.net/datatables.min.css"/>
<!-- Printing -->
<link rel="stylesheet" type="text/css" media="print" href="<?php echo CALENDAR_PATH; ?>calendar/css/calendar-print.css" />
<?php
echo " <!-- Custom CSS based on user preferences -->".PHP_EOL;
if (isset($CUSTOMCSS) && isset($_REQUEST['type']) && isset($CUSTOMCSS[$_REQUEST['type']])) {
foreach ($CUSTOMCSS[$_REQUEST['type']] as $ck => $crow) {
$cfilename = CALENDAR_PATH.$crow;
if (file_exists($cfilename)) {
echo " <link href='$cfilename' rel='stylesheet'>".PHP_EOL;
} else {
echo " <!-- unable to find the file below from CUSTOMCSS ({$_REQUEST['type']}) variable:".PHP_EOL;
echo " <link href='$cfilename' rel='stylesheet'>".PHP_EOL;
echo " -->".PHP_EOL;
}
}
}
?>
<?php
echo " <!-- Custom JavaScript based on user preferences -->".PHP_EOL;
if (isset($CUSTOMJS) && isset($_REQUEST['type']) && isset($CUSTOMJS[$_REQUEST['type']])) {
foreach ($CUSTOMJS[$_REQUEST['type']] as $ck => $crow) {
$cfilename = CALENDAR_PATH.$crow;
if (file_exists($cfilename)) {
echo " <script type='text/javascript' src='$cfilename'></script>".PHP_EOL;
} else {
echo " <!-- unable to find the file below from CUSTOMJS ({$_REQUEST['type']}) variable:".PHP_EOL;
echo " <script type='text/javascript' src='$cfilename'></script>".PHP_EOL;
echo " -->".PHP_EOL;
}
}
}
?>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="<?php echo CALENDAR_PATH; ?>calendar/jquery/js/jquery-3.6.3.min.js"></script>
<script src="<?php echo CALENDAR_PATH; ?>calendar/bootstrap/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="<?php echo CALENDAR_PATH; ?>calendar/bootstrap3-ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.js"></script>
<!-- DataTables -->
<script type="text/javascript" src="<?php echo CALENDAR_PATH; ?>calendar/datatables.net/datatables.min.js"></script>
<title><?php echo $PAGE_TITLE; ?></title>
</head>
<body>