-
Notifications
You must be signed in to change notification settings - Fork 0
/
head.inc.php
43 lines (43 loc) · 1.38 KB
/
head.inc.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
37
38
39
40
41
42
43
<?php
/* The Header
* This header file includes bootstrap and jquery.
*
* Dynamic variables:
* - $title: Changes the title of the page if set.
* - $extraCss: (array) Links to additional CSS style files to include.
* - $extraJs: (array) Links to additional JS files.
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>
<?php
if (isset($title)) {
echo $title . " - Mini Brother";
} else {
echo "Mini Brother";
}
?>
</title>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<?php
// Includes any additional custom CSS files.
if (isset($extraCss)) {
foreach($extraCss as $css) {
echo '<link rel="stylesheet" href="' . $css . '">';
}
}
// Includes any additional custom JS files.
if (isset($extraJs)) {
foreach($extraJs as $js) {
echo '<script src="' . $js . '"></script>';
}
}
?>
</head>
<body>