-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathincluded_functions.php
47 lines (39 loc) · 1.23 KB
/
included_functions.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
44
45
46
47
<?php
function redirect($new_location) {
header("Location: " . $new_location);
exit;
}
function new_header($name="Jonah Carpenter", $urlLink="") {
echo "<head>";
echo " <title>$name</title>";
// <!-- Link to Foundation -->";
echo " <link rel='stylesheet' href='css/normalize.css'>";
echo " <link rel='stylesheet' href='css/foundation.css'>";
echo " <script src='js/vendor/modernizr.js'></script>";
echo "</head>";
echo "<body>";
echo "<div class='contain-to-grid sticky'>";
echo "<nav class='top-bar' data-topbar data-options='sticky_on: large'>";
echo "<ul class='title-area'>";
echo "<li class='name'>";
echo " <h1 align='left'><a href='/~jgcarpe2/".$urlLink."'>$name</a></h1>";
echo "</li>";
echo "</ul>";
echo "</nav>";
echo "</div>";
}
function new_footer($name="Jonah Carpenter"){
date_default_timezone_set("America/Chicago");
echo "<br /><br /><br />";
echo "<h4><div class='text-center'><small>Copyright {$name}".date("M Y").", ".$name."</small></div></h4>";
echo "</body>";
echo "</html>";
}
function print_alert($name="") {
echo "<br />";
echo "<div class='row'>";
echo "<div data-alert class='alert-box info round'>".$name;
echo "</div>";
echo "</div>";
}
?>