-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.html
58 lines (52 loc) · 2.16 KB
/
header.html
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
<!DOCTYPE html>
<html>
<head>
<?php
// Google Analytics
if (isset($CFG->analytics) && !empty($CFG->analytics)) {
echo '
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=' .$CFG->analytics . '"></script>
<script async>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());
gtag("config", "' . $CFG->analytics . '");
</script>
<!-- End Google Analytics -->
';
}
?>
<title><?php echo $PAGE->title ?></title>
<meta name="description" content="<?php echo $PAGE->description ?>"/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="<?php echo $CFG->userfilesurl ?>/branding/logos/favicon.ico" />
<!--[if lt IE 7]>
<style type="text/css">
.dock img { behavior: url(iepngfix.htc) }
</style>
<![endif]-->
<?php
echo js_code_wrap('var dirfromroot = "' . $CFG->directory . '";');
echo js_code_wrap(fill_template("tmp/pagelib.template", "defer_script"));
// Load javascript.
echo get_js_set("main");
// Load CSS.
echo get_css_set("main");
// RSS
if(isset($USER->userkey) && !empty($USER->userkey)) {
echo '<link href="' . $CFG->wwwroot . '/scripts/rss/rss.php?pageid=' . $PAGE->id . '&key=' . $USER->userkey . '" title="' . $CFG->sitename . ' [RSS]" type="application/rss+xml" rel="alternate"/>';
}
?>
</head>
<body>
<div id="ajax_error_display" style="display: none;"></div>
<noscript>
<div style="text-align: center;">
<h2>JavaScript is disabled!</h2>
This website requires Javascript to run properly.
Please enable JavaScript in your web browser!
</div>
</noscript>
<div id="main-content" style="display: none;">