View source: Template

The HTML for this page is generated by the template agency.php.

All templates can be found in the /site/templates folder.

To learn more about Kirby’s templates, please check out our docs: https://getkirby.com/docs

Back to the page

/site/templates/agency.php
<?php snippet('agency/header') ?>

<h1 class="intro">We are a digital product agency that focuses on strategy and design.</h1>

<?php if ($cover = $page->cover()): ?>
<figure>
  <a href="<?= $cover->url() ?>" data-lightbox class="img" style="--w:2;--h:1">
    <?= $cover->crop(1200, 600) ?>
  </a>
</figure>
<?php endif ?>

<hr>

<?php if ($projects->count()): ?>
<h2 class="h1" id="projects">Featured work</h2>
<?php snippet('agency/projects', ['projects' => $projects, 'columns' => 4]) ?>
<hr>
<?php endif ?>

<?php if ($clients->count()): ?>
<h2 class="h1" id="clients">Our clients</h2>
<?php snippet('agency/clients', ['clients' => $clients]) ?>
<hr>
<?php endif ?>

<section class="section grid">
  <div class="column" style="--columns: 4">
    <h2 class="intro"><?= $home->contactHeading()->escape() ?></h2>
    <div class="text">
      <?= $home->contactText()->kt() ?>
      <p><?= Html::email($home->contactAddress()) ?></p>
    </div>
  </div>
</section>

<?php snippet('agency/footer') ?>