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>
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
<?php
|
||||
/** @var \Kirby\Cms\Block $block */
|
||||
?>
|
||||
<figure class="gallery">
|
||||
<ul>
|
||||
<?php foreach ($block->images()->toFiles() as $image): ?>
|
||||
<li>
|
||||
<?php snippet('image', [
|
||||
'alt' => $image->alt(),
|
||||
'contain' => $block->crop()->isTrue(),
|
||||
'lightbox' => true,
|
||||
'ratio' => $block->ratio()->or('auto'),
|
||||
'src' => $image->url(),
|
||||
]) ?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?php if ($block->caption()->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
<?= $block->caption() ?>
|
||||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php
|
||||
/** @var \Kirby\Cms\Block $block */
|
||||
?>
|
||||
<figure class="gallery">
|
||||
<ul>
|
||||
<?php foreach ($block->images()->toFiles() as $image): ?>
|
||||
<li>
|
||||
<?php snippet('image', [
|
||||
'alt' => $image->alt(),
|
||||
'contain' => $block->crop()->isTrue(),
|
||||
'lightbox' => true,
|
||||
'ratio' => $block->ratio()->or('auto'),
|
||||
'src' => $image->url(),
|
||||
]) ?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?php if ($block->caption()->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
<?= $block->caption() ?>
|
||||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
Block snippets control the HTML for individual blocks
|
||||
in the blocks field. This image snippet overwrites
|
||||
Kirby's default image block to add custom classes
|
||||
and data attributes.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
|
||||
$src = null;
|
||||
|
||||
if ($block->location()->value() === 'web') {
|
||||
$alt = $block->alt();
|
||||
$src = $block->src();
|
||||
} else if ($image = $block->image()->toFile()) {
|
||||
$alt = $block->alt()->or($image->alt());
|
||||
$src = $image->url();
|
||||
}
|
||||
|
||||
?>
|
||||
<?php if ($src): ?>
|
||||
<figure>
|
||||
<?php snippet('image', [
|
||||
'alt' => $alt,
|
||||
'contain' => $block->crop()->isFalse(),
|
||||
'lightbox' => $block->link()->isEmpty(),
|
||||
'href' => $block->link()->or($src),
|
||||
'src' => $src,
|
||||
'ratio' => $block->ratio()->or('auto')
|
||||
]) ?>
|
||||
|
||||
<?php if ($block->caption()->isNotEmpty()): ?>
|
||||
<figcaption class="img-caption">
|
||||
<?= $block->caption() ?>
|
||||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
Block snippets control the HTML for individual blocks
|
||||
in the blocks field. This image snippet overwrites
|
||||
Kirby's default image block to add custom classes
|
||||
and data attributes.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
|
||||
$src = null;
|
||||
|
||||
if ($block->location()->value() === 'web') {
|
||||
$alt = $block->alt();
|
||||
$src = $block->src();
|
||||
} else if ($image = $block->image()->toFile()) {
|
||||
$alt = $block->alt()->or($image->alt());
|
||||
$src = $image->url();
|
||||
}
|
||||
|
||||
?>
|
||||
<?php if ($src): ?>
|
||||
<figure>
|
||||
<?php snippet('image', [
|
||||
'alt' => $alt,
|
||||
'contain' => $block->crop()->isFalse(),
|
||||
'lightbox' => $block->link()->isEmpty(),
|
||||
'href' => $block->link()->or($src),
|
||||
'src' => $src,
|
||||
'ratio' => $block->ratio()->or('auto')
|
||||
]) ?>
|
||||
|
||||
<?php if ($block->caption()->isNotEmpty()): ?>
|
||||
<figcaption class="img-caption">
|
||||
<?= $block->caption() ?>
|
||||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
Block snippets control the HTML for individual blocks
|
||||
in the blocks field. This video snippet overwrites
|
||||
Kirby's default video block to add custom classes
|
||||
and style attributes.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<?php if ($block->url()->isNotEmpty()): ?>
|
||||
<figure>
|
||||
<span class="video" style="--w:16;--h:9">
|
||||
<?= video($block->url()) ?>
|
||||
</span>
|
||||
<?php if ($block->caption()->isNotEmpty()): ?>
|
||||
<figcaption class="video-caption"><?= $block->caption() ?></figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
Block snippets control the HTML for individual blocks
|
||||
in the blocks field. This video snippet overwrites
|
||||
Kirby's default video block to add custom classes
|
||||
and style attributes.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<?php if ($block->url()->isNotEmpty()): ?>
|
||||
<figure>
|
||||
<span class="video" style="--w:16;--h:9">
|
||||
<?= video($block->url()) ?>
|
||||
</span>
|
||||
<?php if ($block->caption()->isNotEmpty()): ?>
|
||||
<figcaption class="video-caption"><?= $block->caption() ?></figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
||||
+69
-69
@@ -1,69 +1,69 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This footer snippet is reused in all templates.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="grid">
|
||||
<?php
|
||||
$homePage = page('home');
|
||||
$footerImage = $homePage ? $homePage->image('Lichterei.png') : null;
|
||||
?>
|
||||
<?php
|
||||
$language = kirby()->language()?->code() ?? 'en';
|
||||
$blackoutMessage = $language === 'de'
|
||||
? 'Wer hat den Lichtschalter berührt?'
|
||||
: 'Who touched the light switch?';
|
||||
?>
|
||||
<div class="column footer-main footer-magnet" style="--columns: 8" data-footer-magnet>
|
||||
<h2 class="footer-magnet" data-footer-magnet><a href="https://b.mindboost.team/media/">Made with fun.</a></h2>
|
||||
<p class="blackout-message" data-blackout-message>
|
||||
<?= esc($blackoutMessage) ?>
|
||||
</p>
|
||||
<p class="footer-magnet" data-footer-magnet>
|
||||
<?php if ($footerImage): ?>
|
||||
<img
|
||||
class="footer-dim-image"
|
||||
data-footer-magnet
|
||||
data-brightness-index="0"
|
||||
src="<?= $footerImage->url() ?>"
|
||||
alt="<?= $footerImage->alt()->or('Lichterei') ?>"
|
||||
>
|
||||
<?php else: ?>
|
||||
Kirby: the file-based CMS that adapts to any project, loved by developers and editors alike
|
||||
<?php endif ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
$secretHeading = $site->footerSecretsHeading()->or('Secrets');
|
||||
$secretOne = $site->footerSecretOne()->or('Our source of inspiration');
|
||||
$secretTwo = $site->footerSecretTwo()->or('The forbidden glow hacks');
|
||||
$secretLink = 'https://b.mindboost.team/media';
|
||||
?>
|
||||
<div class="column secret-column footer-magnet" style="--columns: 4" data-footer-magnet>
|
||||
<h2 class="footer-magnet" data-footer-magnet><?= esc($secretHeading) ?></h2>
|
||||
<ul class="secret-links">
|
||||
<li class="footer-magnet" data-footer-magnet><a class="secret-link" href="<?= $secretLink ?>"><?= esc($secretOne) ?></a></li>
|
||||
<li class="footer-magnet" data-footer-magnet><a class="secret-link" href="<?= $secretLink ?>"><?= esc($secretTwo) ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<?= js([
|
||||
'assets/js/prism.js',
|
||||
'assets/js/lightbox.js',
|
||||
'assets/js/index.js',
|
||||
'@auto'
|
||||
]) ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This footer snippet is reused in all templates.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="grid">
|
||||
<?php
|
||||
$homePage = page('home');
|
||||
$footerImage = $homePage ? $homePage->image('Lichterei.png') : null;
|
||||
?>
|
||||
<?php
|
||||
$language = kirby()->language()?->code() ?? 'en';
|
||||
$blackoutMessage = $language === 'de'
|
||||
? 'Wer hat den Lichtschalter berührt?'
|
||||
: 'Who touched the light switch?';
|
||||
?>
|
||||
<div class="column footer-main footer-magnet" style="--columns: 8" data-footer-magnet>
|
||||
<h2 class="footer-magnet" data-footer-magnet><a href="https://b.mindboost.team/media/">Made with fun.</a></h2>
|
||||
<p class="blackout-message" data-blackout-message>
|
||||
<?= esc($blackoutMessage) ?>
|
||||
</p>
|
||||
<p class="footer-magnet" data-footer-magnet>
|
||||
<?php if ($footerImage): ?>
|
||||
<img
|
||||
class="footer-dim-image"
|
||||
data-footer-magnet
|
||||
data-brightness-index="0"
|
||||
src="<?= $footerImage->url() ?>"
|
||||
alt="<?= $footerImage->alt()->or('Lichterei') ?>"
|
||||
>
|
||||
<?php else: ?>
|
||||
Kirby: the file-based CMS that adapts to any project, loved by developers and editors alike
|
||||
<?php endif ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
$secretHeading = $site->footerSecretsHeading()->or('Secrets');
|
||||
$secretOne = $site->footerSecretOne()->or('Our source of inspiration');
|
||||
$secretTwo = $site->footerSecretTwo()->or('The forbidden glow hacks');
|
||||
$secretLink = 'https://b.mindboost.team/media';
|
||||
?>
|
||||
<div class="column secret-column footer-magnet" style="--columns: 4" data-footer-magnet>
|
||||
<h2 class="footer-magnet" data-footer-magnet><?= esc($secretHeading) ?></h2>
|
||||
<ul class="secret-links">
|
||||
<li class="footer-magnet" data-footer-magnet><a class="secret-link" href="<?= $secretLink ?>"><?= esc($secretOne) ?></a></li>
|
||||
<li class="footer-magnet" data-footer-magnet><a class="secret-link" href="<?= $secretLink ?>"><?= esc($secretTwo) ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<?= js([
|
||||
'assets/js/prism.js',
|
||||
'assets/js/lightbox.js',
|
||||
'assets/js/index.js',
|
||||
'@auto'
|
||||
]) ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+134
-134
@@ -1,134 +1,134 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This header snippet is reused in all templates.
|
||||
It fetches information from the `site.txt` content file
|
||||
and contains the site navigation.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
||||
<?php
|
||||
/*
|
||||
In the title tag we show the title of our
|
||||
site and the title of the current page
|
||||
*/
|
||||
?>
|
||||
<title><?= $site->title()->esc() ?> | <?= $page->title()->esc() ?></title>
|
||||
|
||||
<?php
|
||||
/*
|
||||
Stylesheets can be included using the `css()` helper.
|
||||
Kirby also provides the `js()` helper to include script file.
|
||||
More Kirby helpers: https://getkirby.com/docs/reference/templates/helpers
|
||||
*/
|
||||
?>
|
||||
<?= css([
|
||||
'assets/css/prism.css',
|
||||
'assets/css/lightbox.css',
|
||||
'assets/css/index.css',
|
||||
'@auto'
|
||||
]) ?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
The `url()` helper is a great way to create reliable
|
||||
absolute URLs in Kirby that always start with the
|
||||
base URL of your site.
|
||||
*/
|
||||
?>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<?= url('favicon.ico') ?>">
|
||||
</head>
|
||||
<body class="<?= $page->isHomePage() ? 'is-home' : 'is-subpage has-top-menu' ?>">
|
||||
|
||||
<?php
|
||||
$currentLanguage = kirby()->language();
|
||||
$languages = kirby()->languages();
|
||||
$languageCode = $currentLanguage?->code() ?? 'en';
|
||||
$blackoutText = $languageCode === 'de'
|
||||
? 'Wer hat den Lichtschalter berührt?'
|
||||
: 'Who touched the light switch?';
|
||||
$languageSwitch = null;
|
||||
if ($currentLanguage && $languages->count() > 1) {
|
||||
foreach ($languages as $languageOption) {
|
||||
if ($languageOption->code() !== $languageCode) {
|
||||
$languageSwitch = $languageOption;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="blackout-overlay" data-blackout-overlay>
|
||||
<p><?= esc($blackoutText) ?></p>
|
||||
</div>
|
||||
<?php if ($languageSwitch): ?>
|
||||
<a class="language-toggle" href="<?= $page->url($languageSwitch->code()) ?>" aria-label="Switch language to <?= $languageSwitch->name() ?>">
|
||||
<span aria-hidden="true">🌐</span>
|
||||
<span><?= strtoupper($languageSwitch->code()) ?></span>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php
|
||||
$menuPages = $site->children()->listed()->limit(3);
|
||||
$menuImageMap = [
|
||||
'home' => 'hugger.png',
|
||||
'photography' => 'PXL_20251120_000355748.PORTRAIT.ORIGINAL_1.jpg',
|
||||
];
|
||||
$slots = 3;
|
||||
?>
|
||||
<section class="magnetic-menu" aria-label="Site navigation">
|
||||
<div class="magnetic-menu__inner" data-magnetic-menu>
|
||||
<?php for ($i = 0; $i < $slots; $i++): ?>
|
||||
<?php
|
||||
$item = $menuPages->nth($i);
|
||||
$label = $item ? $item->title()->value() : 'Secret Spot ' . ($i + 1);
|
||||
$safeLabel = esc($label);
|
||||
$repeatText = mb_strtoupper($label) . ' • ';
|
||||
$circleText = str_repeat($repeatText, 8);
|
||||
$pathId = 'circlePath-' . $i;
|
||||
$imageFile = $menuImageMap[$item?->id()] ?? 'hugger.png';
|
||||
$imageUrl = url('media/' . $imageFile);
|
||||
?>
|
||||
<?php if ($item): ?>
|
||||
<a
|
||||
class="magnetic-menu__item"
|
||||
href="<?= $item->url() ?>"
|
||||
data-index="<?= $i ?>"
|
||||
>
|
||||
<?php else: ?>
|
||||
<div class="magnetic-menu__item is-placeholder" data-index="<?= $i ?>" aria-hidden="true">
|
||||
<?php endif ?>
|
||||
<div class="magnetic-menu__image">
|
||||
<img src="<?= $imageUrl ?>" alt="<?= $safeLabel ?>">
|
||||
</div>
|
||||
<svg class="magnetic-menu__circle" viewBox="0 -5 100 113" preserveAspectRatio="xMidYMid meet" aria-hidden="true" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<path id="<?= $pathId ?>" d="M50 50 m -45, 0 a 45,45 0 1,1 90,0 a 45,45 0 1,1 -90,0"></path>
|
||||
</defs>
|
||||
<text>
|
||||
<textPath startOffset="0" xlink:href="#<?= $pathId ?>" href="#<?= $pathId ?>">
|
||||
<?= esc($circleText) ?>
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
<?php if ($item): ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php endfor ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<main class="main">
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This header snippet is reused in all templates.
|
||||
It fetches information from the `site.txt` content file
|
||||
and contains the site navigation.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
||||
<?php
|
||||
/*
|
||||
In the title tag we show the title of our
|
||||
site and the title of the current page
|
||||
*/
|
||||
?>
|
||||
<title><?= $site->title()->esc() ?> | <?= $page->title()->esc() ?></title>
|
||||
|
||||
<?php
|
||||
/*
|
||||
Stylesheets can be included using the `css()` helper.
|
||||
Kirby also provides the `js()` helper to include script file.
|
||||
More Kirby helpers: https://getkirby.com/docs/reference/templates/helpers
|
||||
*/
|
||||
?>
|
||||
<?= css([
|
||||
'assets/css/prism.css',
|
||||
'assets/css/lightbox.css',
|
||||
'assets/css/index.css',
|
||||
'@auto'
|
||||
]) ?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
The `url()` helper is a great way to create reliable
|
||||
absolute URLs in Kirby that always start with the
|
||||
base URL of your site.
|
||||
*/
|
||||
?>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<?= url('favicon.ico') ?>">
|
||||
</head>
|
||||
<body class="<?= $page->isHomePage() ? 'is-home' : 'is-subpage has-top-menu' ?>">
|
||||
|
||||
<?php
|
||||
$currentLanguage = kirby()->language();
|
||||
$languages = kirby()->languages();
|
||||
$languageCode = $currentLanguage?->code() ?? 'en';
|
||||
$blackoutText = $languageCode === 'de'
|
||||
? 'Wer hat den Lichtschalter berührt?'
|
||||
: 'Who touched the light switch?';
|
||||
$languageSwitch = null;
|
||||
if ($currentLanguage && $languages->count() > 1) {
|
||||
foreach ($languages as $languageOption) {
|
||||
if ($languageOption->code() !== $languageCode) {
|
||||
$languageSwitch = $languageOption;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="blackout-overlay" data-blackout-overlay>
|
||||
<p><?= esc($blackoutText) ?></p>
|
||||
</div>
|
||||
<?php if ($languageSwitch): ?>
|
||||
<a class="language-toggle" href="<?= $page->url($languageSwitch->code()) ?>" aria-label="Switch language to <?= $languageSwitch->name() ?>">
|
||||
<span aria-hidden="true">🌐</span>
|
||||
<span><?= strtoupper($languageSwitch->code()) ?></span>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php
|
||||
$menuPages = $site->children()->listed()->limit(3);
|
||||
$menuImageMap = [
|
||||
'home' => 'hugger.png',
|
||||
'photography' => 'PXL_20251120_000355748.PORTRAIT.ORIGINAL_1.jpg',
|
||||
];
|
||||
$slots = 3;
|
||||
?>
|
||||
<section class="magnetic-menu" aria-label="Site navigation">
|
||||
<div class="magnetic-menu__inner" data-magnetic-menu>
|
||||
<?php for ($i = 0; $i < $slots; $i++): ?>
|
||||
<?php
|
||||
$item = $menuPages->nth($i);
|
||||
$label = $item ? $item->title()->value() : 'Secret Spot ' . ($i + 1);
|
||||
$safeLabel = esc($label);
|
||||
$repeatText = mb_strtoupper($label) . ' • ';
|
||||
$circleText = str_repeat($repeatText, 8);
|
||||
$pathId = 'circlePath-' . $i;
|
||||
$imageFile = $menuImageMap[$item?->id()] ?? 'hugger.png';
|
||||
$imageUrl = url('media/' . $imageFile);
|
||||
?>
|
||||
<?php if ($item): ?>
|
||||
<a
|
||||
class="magnetic-menu__item"
|
||||
href="<?= $item->url() ?>"
|
||||
data-index="<?= $i ?>"
|
||||
>
|
||||
<?php else: ?>
|
||||
<div class="magnetic-menu__item is-placeholder" data-index="<?= $i ?>" aria-hidden="true">
|
||||
<?php endif ?>
|
||||
<div class="magnetic-menu__image">
|
||||
<img src="<?= $imageUrl ?>" alt="<?= $safeLabel ?>">
|
||||
</div>
|
||||
<svg class="magnetic-menu__circle" viewBox="0 -5 100 113" preserveAspectRatio="xMidYMid meet" aria-hidden="true" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<path id="<?= $pathId ?>" d="M50 50 m -45, 0 a 45,45 0 1,1 90,0 a 45,45 0 1,1 -90,0"></path>
|
||||
</defs>
|
||||
<text>
|
||||
<textPath startOffset="0" xlink:href="#<?= $pathId ?>" href="#<?= $pathId ?>">
|
||||
<?= esc($circleText) ?>
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
<?php if ($item): ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php endfor ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<main class="main">
|
||||
|
||||
+18
-18
@@ -1,18 +1,18 @@
|
||||
<?php
|
||||
|
||||
$attrs = attr([
|
||||
'data-lightbox' => $lightbox ?? false,
|
||||
'href' => $href ?? $src,
|
||||
]);
|
||||
|
||||
?>
|
||||
<a <?= $attrs ?>>
|
||||
<img
|
||||
src="<?= esc($src, 'attr') ?>"
|
||||
alt="<?= esc($alt, 'attr') ?>"
|
||||
style="
|
||||
aspect-ratio: <?= $ratio ?? 'auto' ?>;
|
||||
object-fit: <?= ($contain ?? false) ? 'contain' : 'cover' ?>
|
||||
"
|
||||
>
|
||||
</a>
|
||||
<?php
|
||||
|
||||
$attrs = attr([
|
||||
'data-lightbox' => $lightbox ?? false,
|
||||
'href' => $href ?? $src,
|
||||
]);
|
||||
|
||||
?>
|
||||
<a <?= $attrs ?>>
|
||||
<img
|
||||
src="<?= esc($src, 'attr') ?>"
|
||||
alt="<?= esc($alt, 'attr') ?>"
|
||||
style="
|
||||
aspect-ratio: <?= $ratio ?? 'auto' ?>;
|
||||
object-fit: <?= ($contain ?? false) ? 'contain' : 'cover' ?>
|
||||
"
|
||||
>
|
||||
</a>
|
||||
|
||||
+20
-20
@@ -1,20 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This intro snippet is reused in multiple templates.
|
||||
While it does not contain much code, it helps to keep your
|
||||
code DRY and thus facilitate maintenance when you have
|
||||
to make changes.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<header class="h1">
|
||||
<h1><?= $page->headline()->or($page->title())->esc() ?></h1>
|
||||
<?php if ($page->subheadline()->isNotEmpty()): ?>
|
||||
<p class="color-grey"><?= $page->subheadline()->esc() ?></p>
|
||||
<?php endif ?>
|
||||
</header>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This intro snippet is reused in multiple templates.
|
||||
While it does not contain much code, it helps to keep your
|
||||
code DRY and thus facilitate maintenance when you have
|
||||
to make changes.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<header class="h1">
|
||||
<h1><?= $page->headline()->or($page->title())->esc() ?></h1>
|
||||
<?php if ($page->subheadline()->isNotEmpty()): ?>
|
||||
<p class="color-grey"><?= $page->subheadline()->esc() ?></p>
|
||||
<?php endif ?>
|
||||
</header>
|
||||
|
||||
+23
-23
@@ -1,23 +1,23 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This layouts snippet renders the content of a layout
|
||||
field with our custom grid system.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<?php foreach ($field->toLayouts() as $layout): ?>
|
||||
<section class="grid margin-xl" id="<?= esc($layout->id(), 'attr') ?>" style="--gutter: 1.5rem">
|
||||
<?php foreach ($layout->columns() as $column): ?>
|
||||
<div class="column" style="--columns:<?= esc($column->span(), 'css') ?>">
|
||||
<div class="text">
|
||||
<?= $column->blocks() ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</section>
|
||||
<?php endforeach ?>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
This layouts snippet renders the content of a layout
|
||||
field with our custom grid system.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<?php foreach ($field->toLayouts() as $layout): ?>
|
||||
<section class="grid margin-xl" id="<?= esc($layout->id(), 'attr') ?>" style="--gutter: 1.5rem">
|
||||
<?php foreach ($layout->columns() as $column): ?>
|
||||
<div class="column" style="--columns:<?= esc($column->span(), 'css') ?>">
|
||||
<div class="text">
|
||||
<?= $column->blocks() ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</section>
|
||||
<?php endforeach ?>
|
||||
|
||||
+30
-30
@@ -1,30 +1,30 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
The note snippet renders an excerpt of a blog article.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<article class="note-excerpt">
|
||||
<a href="<?= $note->url() ?>">
|
||||
<header>
|
||||
<figure class="img" style="--w: 16; --h:9">
|
||||
<?php if ($cover = $note->cover()): ?>
|
||||
<img src="<?= $cover->crop(320, 180)->url() ?>" alt="<?= $cover->alt()->esc() ?>">
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
|
||||
<h2 class="note-excerpt-title"><?= $note->title()->esc() ?></h2>
|
||||
<time class="note-excerpt-date" datetime="<?= $note->published('c') ?>"><?= $note->published() ?></time>
|
||||
</header>
|
||||
<?php if (($excerpt ?? true) !== false): ?>
|
||||
<div class="note-excerpt-text">
|
||||
<?= $note->text()->toBlocks()->excerpt(280) ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</a>
|
||||
</article>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
The note snippet renders an excerpt of a blog article.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<article class="note-excerpt">
|
||||
<a href="<?= $note->url() ?>">
|
||||
<header>
|
||||
<figure class="img" style="--w: 16; --h:9">
|
||||
<?php if ($cover = $note->cover()): ?>
|
||||
<img src="<?= $cover->crop(320, 180)->url() ?>" alt="<?= $cover->alt()->esc() ?>">
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
|
||||
<h2 class="note-excerpt-title"><?= $note->title()->esc() ?></h2>
|
||||
<time class="note-excerpt-date" datetime="<?= $note->published('c') ?>"><?= $note->published() ?></time>
|
||||
</header>
|
||||
<?php if (($excerpt ?? true) !== false): ?>
|
||||
<div class="note-excerpt-text">
|
||||
<?= $note->text()->toBlocks()->excerpt(280) ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</a>
|
||||
</article>
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
The pagination snippet renders prev/next links in the
|
||||
blog, when articles spread across multiple pages
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<?php if ($pagination->hasPages()): ?>
|
||||
<nav class="pagination">
|
||||
<?php if ($pagination->hasPrevPage()): ?>
|
||||
<a class="pagination-prev" href="<?= $pagination->prevPageUrl() ?>">←</a>
|
||||
<?php else: ?>
|
||||
<span class="pagination-prev">←</span>
|
||||
<?php endif ?>
|
||||
<?php if ($pagination->hasNextPage()): ?>
|
||||
<a class="pagination-next" href="<?= $pagination->nextPageUrl() ?>">→</a>
|
||||
<?php else: ?>
|
||||
<span class="pagination-next">→</span>
|
||||
<?php endif ?>
|
||||
</nav>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
The pagination snippet renders prev/next links in the
|
||||
blog, when articles spread across multiple pages
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<?php if ($pagination->hasPages()): ?>
|
||||
<nav class="pagination">
|
||||
<?php if ($pagination->hasPrevPage()): ?>
|
||||
<a class="pagination-prev" href="<?= $pagination->prevPageUrl() ?>">←</a>
|
||||
<?php else: ?>
|
||||
<span class="pagination-prev">←</span>
|
||||
<?php endif ?>
|
||||
<?php if ($pagination->hasNextPage()): ?>
|
||||
<a class="pagination-next" href="<?= $pagination->nextPageUrl() ?>">→</a>
|
||||
<?php else: ?>
|
||||
<span class="pagination-next">→</span>
|
||||
<?php endif ?>
|
||||
</nav>
|
||||
<?php endif ?>
|
||||
|
||||
+27
-27
@@ -1,27 +1,27 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
The prevnext snippet renders the nice "keep on reading"
|
||||
section below each article in the blog, to jump between
|
||||
articles. It reuses the note snippet to render a full
|
||||
excerpt of the article.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<nav class="blog-prevnext">
|
||||
<h2 class="h2">Keep on reading</h2>
|
||||
|
||||
<div class="autogrid" style="--gutter: 1.5rem">
|
||||
<?php if ($prev = $page->prevListed()): ?>
|
||||
<?php snippet('note', ['note' => $prev, 'excerpt' => false]) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($next = $page->nextListed()): ?>
|
||||
<?php snippet('note', ['note' => $next, 'excerpt' => false]) ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</nav>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
The prevnext snippet renders the nice "keep on reading"
|
||||
section below each article in the blog, to jump between
|
||||
articles. It reuses the note snippet to render a full
|
||||
excerpt of the article.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<nav class="blog-prevnext">
|
||||
<h2 class="h2">Keep on reading</h2>
|
||||
|
||||
<div class="autogrid" style="--gutter: 1.5rem">
|
||||
<?php if ($prev = $page->prevListed()): ?>
|
||||
<?php snippet('note', ['note' => $prev, 'excerpt' => false]) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($next = $page->nextListed()): ?>
|
||||
<?php snippet('note', ['note' => $next, 'excerpt' => false]) ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
+27
-27
@@ -1,27 +1,27 @@
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
In this snippet the svg() helper is a great way to embed SVG
|
||||
code directly in your HTML. Pass the path to your SVG
|
||||
file to load it.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<span class="social">
|
||||
<a href="https://mastodon.social/@getkirby" aria-label="Follow us on Mastodon">
|
||||
<?= svg('assets/icons/mastodon.svg') ?>
|
||||
</a>
|
||||
<a href="https://instagram.com/getkirby" aria-label="Follow us on Instagram">
|
||||
<?= svg('assets/icons/instagram.svg') ?>
|
||||
</a>
|
||||
<a href="https://youtube.com/kirbycasts" aria-label="Watch our videos on YouTube">
|
||||
<?= svg('assets/icons/youtube.svg') ?>
|
||||
</a>
|
||||
<a href="https://chat.getkirby.com" aria-label="Chat with us on Discord">
|
||||
<?= svg('assets/icons/discord.svg') ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
In this snippet the svg() helper is a great way to embed SVG
|
||||
code directly in your HTML. Pass the path to your SVG
|
||||
file to load it.
|
||||
|
||||
More about snippets:
|
||||
https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
<span class="social">
|
||||
<a href="https://mastodon.social/@getkirby" aria-label="Follow us on Mastodon">
|
||||
<?= svg('assets/icons/mastodon.svg') ?>
|
||||
</a>
|
||||
<a href="https://instagram.com/getkirby" aria-label="Follow us on Instagram">
|
||||
<?= svg('assets/icons/instagram.svg') ?>
|
||||
</a>
|
||||
<a href="https://youtube.com/kirbycasts" aria-label="Watch our videos on YouTube">
|
||||
<?= svg('assets/icons/youtube.svg') ?>
|
||||
</a>
|
||||
<a href="https://chat.getkirby.com" aria-label="Chat with us on Discord">
|
||||
<?= svg('assets/icons/discord.svg') ?>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user