Initial commit

This commit is contained in:
KirbyCMS Deploy
2026-04-15 11:50:31 +00:00
commit 0a8c107828
1114 changed files with 203788 additions and 0 deletions

51
site/templates/about.php Normal file
View File

@@ -0,0 +1,51 @@
<?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 about page example uses the content from our layout field
to create most parts of the page and keeps it modular. Only the
contact box at the bottom is pre-defined with a set of fields
in the about.yml blueprint.
Snippets like the header and footer 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') ?>
<?php snippet('intro') ?>
<?php snippet('layouts', ['field' => $page->layout()]) ?>
<aside class="contact">
<h2 class="h1">Get in contact</h2>
<div class="grid" style="--gutter: 1.5rem">
<section class="column text" style="--columns: 4">
<h3>Address</h3>
<?= $page->address() ?>
</section>
<section class="column text" style="--columns: 4">
<h3>Email</h3>
<p><?= Html::email($page->email()) ?></p>
<h3>Phone</h3>
<p><?= Html::tel($page->phone()) ?></p>
</section>
<section class="column text" style="--columns: 4">
<h3>On the web</h3>
<ul>
<?php foreach ($page->social()->toStructure() as $social): ?>
<li><?= Html::a($social->url(), $social->platform()) ?></li>
<?php endforeach ?>
</ul>
</section>
</div>
</aside>
<?php snippet('footer') ?>

47
site/templates/album.php Normal file
View File

@@ -0,0 +1,47 @@
<?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 example template makes use of the `$gallery` variable defined
in the `album.php` controller (/site/controllers/album.php)
Snippets like the header and footer 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') ?>
<article>
<?php snippet('intro') ?>
<div class="grid">
<div class="column" style="--columns: 4">
<div class="text">
<?= $page->text() ?>
</div>
</div>
<div class="column" style="--columns: 8">
<ul class="album-gallery">
<?php foreach ($gallery as $image): ?>
<li>
<a href="<?= $image->url() ?>" data-lightbox>
<figure class="img" style="--w:<?= $image->width() ?>;--h:<?= $image->height() ?>">
<img src="<?= $image->resize(800)->url() ?>" alt="<?= $image->alt()->esc() ?>">
</figure>
</a>
</li>
<?php endforeach ?>
</ul>
</div>
</article>
<?php snippet('footer') ?>

View File

@@ -0,0 +1,30 @@
<?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 and footer 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') ?>
<article>
<h1 class="h1"><?= $page->title()->esc() ?></h1>
<div class="text">
<?= $page->text()->kt() ?>
</div>
</article>
<?php snippet('footer') ?>

61
site/templates/home.php Normal file
View File

@@ -0,0 +1,61 @@
<?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 home template renders content from others pages, the children of
the `photography` page to display a nice gallery grid.
Snippets like the header and footer 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') ?>
<?php snippet('intro') ?>
<?php
/*
We always use an if-statement to check if a page exists to
prevent errors in case the page was deleted or renamed before
we call a method like `children()` in this case
*/
?>
<?php if ($photographyPage = page('photography')): ?>
<ul class="home-grid">
<?php foreach ($photographyPage->children()->listed() as $album): ?>
<li>
<a href="<?= $album->url() ?>">
<figure>
<?php
/*
The `cover()` method defined in the `album.php`
page model can be used everywhere across the site
for this type of page
We can automatically resize images to a useful
size with Kirby's built-in image manipulation API
*/
?>
<?php if ($cover = $album->cover()): ?>
<img src="<?= $cover->resize(1024, 1024)->url() ?>" alt="<?= $cover->alt()->esc() ?>">
<?php endif ?>
<figcaption>
<span>
<span class="example-name"><?= $album->title()->esc() ?></span>
</span>
</figcaption>
</figure>
</a>
</li>
<?php endforeach ?>
</ul>
<?php endif ?>
<?php snippet('footer') ?>

59
site/templates/note.php Normal file
View File

@@ -0,0 +1,59 @@
<?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 note template renders a blog article. It uses the `$page->cover()`
method from the `note.php` page model (/site/models/page.php)
It also receives the `$tag` variable from its controller
(/site/controllers/note.php) if a tag filter is activated.
Snippets like the header and footer 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') ?>
<?php if ($cover = $page->cover()): ?>
<a href="<?= $cover->url() ?>" data-lightbox class="img" style="--w:2; --h:1">
<img src="<?= $cover->crop(1200, 600)->url() ?>" alt="<?= $cover->alt()->esc() ?>">
</a>
<?php endif ?>
<article class="note">
<header class="note-header h1">
<h1 class="note-title"><?= $page->title()->esc() ?></h1>
<?php if ($page->subheading()->isNotEmpty()): ?>
<p class="note-subheading"><small><?= $page->subheading()->esc() ?></small></p>
<?php endif ?>
</header>
<div class="note text">
<?= $page->text()->toBlocks() ?>
</div>
<footer class="note-footer">
<?php if (!empty($tags)): ?>
<ul class="note-tags">
<?php foreach ($tags as $tag): ?>
<li>
<a href="<?= $page->parent()->url(['params' => ['tag' => $tag]]) ?>"><?= esc($tag) ?></a>
</li>
<?php endforeach ?>
</ul>
<?php endif ?>
<time class="note-date" datetime="<?= $page->date()->toDate('c') ?>">Published on <?= $page->date()->esc() ?></time>
</footer>
<?php snippet('prevnext') ?>
</article>
<?php snippet('footer') ?>

46
site/templates/notes.php Normal file
View File

@@ -0,0 +1,46 @@
<?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 template lists all the subpages of the `notes` page with
their title date sorted by date and links to each subpage.
This template receives additional variables like $tag and $notes
from the `notes.php` controller in `/site/controllers/notes.php`
Snippets like the header and footer 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') ?>
<?php if (empty($tag) === false): ?>
<header class="h1">
<h1>
<small>Tag:</small> <?= esc($tag) ?>
<a href="<?= $page->url() ?>" aria-label="All Notes">&times;</a>
</h1>
</header>
<?php else: ?>
<?php snippet('intro') ?>
<?php endif ?>
<ul class="grid">
<?php foreach ($notes as $note): ?>
<li class="column" style="--columns: 4">
<?php snippet('note', ['note' => $note]) ?>
</li>
<?php endforeach ?>
</ul>
<?php snippet('pagination', ['pagination' => $notes->pagination()]) ?>
<?php snippet('footer') ?>

View File

@@ -0,0 +1,43 @@
<?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 template lists all all the subpages of the `phototography`
page with title and cover image.
Snippets like the header and footer 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') ?>
<?php snippet('intro') ?>
<ul class="grid" style="--gutter: 1.5rem">
<?php foreach ($page->children()->listed() as $project): ?>
<li class="column" style="--columns: 3">
<a href="<?= $project->url() ?>">
<figure>
<span class="img" style="--w:4;--h:5">
<?php if ($cover = $project->cover()): ?>
<img src="<?= $cover->crop(400, 500)->url() ?>" alt="<?= $cover->alt()->esc() ?>">
<?php endif ?>
</span>
<figcaption class="img-caption">
<?= $project->title()->esc() ?>
</figcaption>
</figure>
</a>
</li>
<?php endforeach ?>
</ul>
<?php snippet('footer') ?>