Files
codesignd/site/snippets/templates/services.php
T
2016-08-15 18:47:13 +02:00

11 lines
633 B
PHP

<article class="text">
<h1><?= html($page->title()) ?></h1>
<?php foreach($page->services()->toStructure() as $service): ?>
<?php $illustration = ($illustration = $service->illustration()->toFile())? $illustration->url() : false ?>
<?php pattern('codesignd/2-blocks/service', ['illustration' => $illustration, 'title' => $service->title(), 'coloredTitle' => ($site->language()->code() === 'de'), 'text' => $service->text()->kt()]) ?>
<?php endforeach ?>
</article>
<hr>
<?php pattern('shared/2-blocks/cta', ['text' => $page->cta()->kirbytext(), 'button' => l::get('go.contact', '➪ Contact'), 'link' => url('contact')]) ?>