This repository was archived by the owner on Aug 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·88 lines (80 loc) · 3.84 KB
/
Copy pathheader.php
File metadata and controls
executable file
·88 lines (80 loc) · 3.84 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
<!DOCTYPE html>
<html lang="<?= $lang; ?>">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="Observe.education allows researchers and practitioners to systematically observe teaching and learning practices.">
<meta name="author" content="Jeppe Bundsgaard">
<link rel="icon" href="favicon.png">
<title>Observe.Education</title>
<link rel="stylesheet" href="./vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
<!-- Add icon library -->
<link rel="stylesheet" href="./vendor/components/font-awesome/css/all.min.css">
<!-- styles for Observe -->
<link rel="stylesheet" href="./css/basesystem.css" id="basesystemstyles">
<link rel="stylesheet" href="./css/observe.css">
<link rel="stylesheet" href="./css/basesystemadmin.css">
<link rel="stylesheet" href="./css/vendor/bootstrap4-toggle.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js"></script>
<!-- Adobe Acumin Font -->
<link rel="stylesheet" href="https://use.typekit.net/ltl7ebe.css">
</head>
<body class="pb-0 pb-lg-5"> <!-- Removed: d-flex flex-column -->
<!-- Header --><!-- add? fixed-top -->
<nav class="navbar navbar-expand-md justify-content-between site-header d-print-none">
<div class="col-xl-4 d-none d-xl-block">
</div>
<div class="col-4 text-center">
<h1 class="display-4 text-dark">OBSERVE.<span class="observefont">education</span></h1>
</div>
<div class="col-4 d-lg-none">
<button class="navbar-toggler float-right navbar-light" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon "></span>
</button>
</div>
<div class="collapse navbar-collapse col-md-4 col-12 justify-content-end " id="navbarToggler">
<ul class="navbar-nav justify-content-end">
<li class="nav-item active d-flex justify-content-end">
<a class="nav-link menulink" href="./"><?= strtolower(_('Frontpage'));?></a> <span class="menubar d-none d-lg-inline">|</span>
</li>
<li class="nav-item active d-flex justify-content-end">
<a class="nav-link menulink" href="./?page=features"><?= strtolower(_('Features'));?></a> <span class="menubar d-none d-lg-inline">|</span>
</li>
<?php
$orgpagesdir=$systemdirs["pages"]."org/".$_SESSION["locale"]."/";
if(file_exists($orgpagesdir)) {
if ($handle = opendir($orgpagesdir)) {
while (false !== ($e = readdir($handle))) {
if ($e != "." && $e != "..") {
$f=str_replace(".html","",$e);
?>
<li class="nav-item active d-flex justify-content-end">
<a class="nav-link menulink" href="./?page=<?= $f;?>"><?= $f;?></a>
</li>
<?php
}
}
closedir($handle);
}
}
?>
<?php if(!$_SESSION["user_id"]) {?>
<li class="nav-item active d-flex justify-content-end">
<a class="nav-link menulink observefont display-5" href="./?backend=1"><?= strtolower(_('Log in'));?></a>
</li>
<?php } else { ?>
<li class="nav-item active d-flex justify-content-end" id="showMyUser">
<a class="nav-link menulink observefont display-5" href="#"><?= strtolower(_('My User'));?></a>
</li>
<?php }?>
</ul>
</div>
</nav>
<div id="adminmenu">
<?= ($user_id?get_template("adminmenu")["template"]:""); ?>
</div>
<main role="main" class="flex-shrink-0 h-100 mb-3">
<div class="h-100" id="contentdiv">