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