-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
34 lines (26 loc) · 1017 Bytes
/
footer.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
<?php
// show not working back-button at homescreen
if(preg_match('/.php/i', $_SERVER['REQUEST_URI']))
$navigationHeader = '<ul><li id="back"><a id="link_back" href="javascript:history.back()"><img src="images/back.png" alt="back" /></a></li>';
else
$navigationHeader = '<ul><li id="back"><img src="images/back_inactive.png" alt="back" /></li>';
$navigationHeader .= '
<li><a href="./"><img id="logo" src="images/logo.png" /></a></li>
<li class="showSettings"><img src="images/settings.png" /></li>
</ul>';
##############
# Templatesystem
##############
include("function/template.php");
$template = new template("layout.html");
$template->readtemplate();
$template->replace("NAVIGATION_HEADER", $navigationHeader);
$template->replace("TITLE", $title);
$template->replace("CONTENT", $content);
$template->replace("SEARCHFIELD", $searchField);
$template->replace("GREETING", $greeting);
##############
# Publizieren
##############
$template->parse();
?>