Files
lichterei-web/site/templates/default.php
2019-07-28 16:03:52 +02:00

23 lines
846 B
PHP
Executable File

<?php
/**
* Templates render the content of your pages.
* They contain the markup together with some control structures like loops or if-statements.
* The `$page` variable always refers to the currently active page.
* To fetch the content from each field we call the field name as a method on the `$page` object, e.g. `$page->title()`. *
* This default template must not be removed. It is used whenever Kirby cannot find a template with the name of the content file.
* Snippets like the header, footer and intro contain markup used in multiple templates. They also help to keep templates clean.
* More about templates: https://getkirby.com/docs/guide/templates/basics
*/
?>
<?php snippet('header') ?>
<main>
<?php snippet('intro') ?>
<div class="text">
<?= $page->text()->kt() ?>
</div>
</main>
<?php snippet('footer') ?>