-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasis.php
36 lines (33 loc) · 1.02 KB
/
basis.php
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
<?php
// Declare variables specific to this page
$page['body'] = basename($_SERVER['PHP_SELF'], ".php");
$page['case'] = $_GET['case'];
// Include requisite functions and variables
require_once 'layout/required/functions.php';
require_once 'layout/required/variables.php';
?>
<!DOCTYPE html>
<html lang="<?php echo $page['lang']; ?>">
<?php require_once 'layout/anchored/head.php'; ?>
<body id="<?php echo $page['body']; ?>">
<?php require_once 'layout/anchored/header.php'; ?>
<main>
<article>
<header>
<?php include_once 'layout/embedded/aside-redesign.php'; ?>
<h2><?php echo $page['name']; ?></h2>
<?php
$hasp = $page['path'] . '/' . $page['case'] . '.md';
echo pmf_body_text($hasp, $page['lang']);
unset($hasp);
?>
</header>
<article>
<?php require_once 'layout/targeted/basis-article-' . $page['case'] . '.php'; ?>
</article>
</article>
</main>
<?php require_once 'layout/anchored/footer.php'; ?>
</body>
<?php unset($page); ?>
</html>