60 lines
1.4 KiB
PHP
Executable File
60 lines
1.4 KiB
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.
|
|
* This example templates only echos the field values from the content file and doesn't need any special logic from a controller.
|
|
* 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="layout">
|
|
|
|
<aside>
|
|
<section>
|
|
<h2>Address</h2>
|
|
<div class="text">
|
|
<?= $page->address()->kt() ?>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Email</h2>
|
|
<div class="text">
|
|
<?= html::email($page->email()) ?>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Phone</h2>
|
|
<div class="text">
|
|
<?= html::tel($page->phone()) ?>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>On the web</h2>
|
|
<div class="text">
|
|
<ul>
|
|
<?php foreach ($page->social()->toStructure() as $social): ?>
|
|
<li><?= html::a($social->url(), $social->platform()) ?></li>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
|
|
</aside>
|
|
|
|
<div class="text">
|
|
<?= $page->text()->kt() ?>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<?php snippet('footer') ?>
|