div TODOs
This commit is contained in:
@@ -2,25 +2,18 @@
|
||||
/**
|
||||
* layout.php
|
||||
*
|
||||
* Grundlayout: Header + Content + Footer
|
||||
* Kann als Basis-Template dienen, falls Module HTML ausgeben
|
||||
*
|
||||
* Beispiel-Aufruf in Modul:
|
||||
* include __DIR__ . '/../templates/layout.php';
|
||||
*
|
||||
* TODO: In Zukunft: zentrales Template-System (z.B. mit $content)
|
||||
* Basislayout fuer Header + Content + Footer.
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php include __DIR__ . '/header.php'; ?>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<!-- TODO: Dynamischen Content hier einfügen -->
|
||||
<?php
|
||||
if (isset($content)) {
|
||||
echo $content;
|
||||
} else {
|
||||
echo "<p>Inhalt fehlt</p>";
|
||||
echo '<p>Kein Inhalt uebergeben.</p>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user