fehlerbehebung
This commit is contained in:
parent
39756fb537
commit
b5dde8b09b
|
@ -26,7 +26,7 @@
|
|||
|
||||
<header>
|
||||
<img src="/images/logo_ctdo.svg" alt="ctdo logo">
|
||||
<?php print_element("nav"); echo "test"; ?>
|
||||
<?php print_file("elements/nav.html"); ?>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
<?php
|
||||
|
||||
function print_element($element_name) {
|
||||
print(file_get_contents("/elements/$element_name.html"));
|
||||
}
|
||||
|
||||
function print_event($event_name) {
|
||||
print(file_get_contents("/events/$element_name.html"));
|
||||
function print_file($path) {
|
||||
print(file_get_contents($path));
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue