Files
lichterei-web/site/templates/notes.php
T
godelandClaude Opus 5.5 a28632abdf Ubuntu-Basis auf 24.04 pinnen (PHP2Shell-Fix, Kirby 4 braucht PHP <= 8.4)
ubuntu:latest ist inzwischen 26.04 mit PHP 8.5, das Kirby 4.6 nicht unterstuetzt.
24.04 liefert php8.3 8.3.6-0ubuntu0.24.04.13 mit dem Fix fuer
CVE-2026-109618/-109619. Image neu bauen mit --pull.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 12:56:10 +02:00

47 lines
1.4 KiB
PHP

<?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') ?>