Merge branch 'feature/WEB-7_News' into develop
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
@@ -0,0 +1 @@
|
|||||||
|
Uuid: eiecqh0l4nefl1er
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
Title: 20250709-Test
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Headline: Absolut Chancenlos!
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Subheadline: Kreismeisterschaft zieht Kreise
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Author: - user://myU6sssZ
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Date: 2025-07-03
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Image: - file://eiecqh0l4nefl1er
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Summary: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren!
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Blocks:
|
||||||
|
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"content": {
|
||||||
|
"level": "h2",
|
||||||
|
"text": "Chancenlos im Weltall"
|
||||||
|
},
|
||||||
|
"id": "8b5bee77-9d6b-4c5f-b3fc-2faa3404a623",
|
||||||
|
"isHidden": false,
|
||||||
|
"type": "heading"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"content": {
|
||||||
|
"fen": "8/8/8/4b1K1/2k1B3/8/8/8 s - - 0 1"
|
||||||
|
},
|
||||||
|
"id": "c523aec4-886c-41a9-bb78-58169e83320c",
|
||||||
|
"isHidden": false,
|
||||||
|
"type": "fen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"content": {
|
||||||
|
"text": "<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>"
|
||||||
|
},
|
||||||
|
"id": "1ab3788d-e2d9-404b-a055-a60ce7a350da",
|
||||||
|
"isHidden": false,
|
||||||
|
"type": "text"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Uuid: ackrirrywfq3usug
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
Title: Test
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Headline:
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Author: - user://myU6sssZ
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Date: 2025-07-09
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Image:
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Summary:
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Blocks:
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Uuid: fotaqn1ncsptpivg
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
Title: News
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Herotext: Unser Verein hat aufregende Neuigkeiten! Wir freuen uns, Sie auf unserer Homepage auf dem Laufenden zu halten. Schauen Sie auch auf unsere alte Homepage, um weitere Informationen und Ressourcen zu finden.
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Herobutton: Archiv
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Buttonlink: https://archiv.schachfreunde-badsteben.de
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Uuid: qtyyzjcbmgvhwzod
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
Title: News
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Uuid: qtyyzjcbmgvhwzod
|
|
||||||
@@ -10,7 +10,6 @@ fields:
|
|||||||
- image
|
- image
|
||||||
- line
|
- line
|
||||||
- gallery
|
- gallery
|
||||||
- quote
|
|
||||||
- type: fen
|
- type: fen
|
||||||
label: FEN-Diagramm
|
label: FEN-Diagramm
|
||||||
preview: fields
|
preview: fields
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
title: Verein
|
||||||
|
|
||||||
|
columns:
|
||||||
|
main:
|
||||||
|
width: 1/2
|
||||||
|
sections:
|
||||||
|
fields:
|
||||||
|
type: fields
|
||||||
|
fields:
|
||||||
|
herotext:
|
||||||
|
label: Text (Hero)
|
||||||
|
type: text
|
||||||
|
herobutton:
|
||||||
|
label: Text für den Button
|
||||||
|
type: text
|
||||||
|
buttonlink:
|
||||||
|
label: Link für den Button
|
||||||
|
type: text
|
||||||
|
sidebar:
|
||||||
|
width: 1/2
|
||||||
|
sections:
|
||||||
|
pages:
|
||||||
|
type: pages
|
||||||
|
template: news
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
title: Block Page
|
||||||
|
|
||||||
|
columns:
|
||||||
|
main:
|
||||||
|
width: 2/3
|
||||||
|
sections:
|
||||||
|
content:
|
||||||
|
type: fields
|
||||||
|
fields:
|
||||||
|
blocks:
|
||||||
|
type: blocks
|
||||||
|
pretty: true
|
||||||
|
fieldsets:
|
||||||
|
- heading
|
||||||
|
- text
|
||||||
|
- image
|
||||||
|
- line
|
||||||
|
- gallery
|
||||||
|
- type: fen
|
||||||
|
label: FEN-Diagramm
|
||||||
|
preview: fields
|
||||||
|
wysiwyg: true
|
||||||
|
fields:
|
||||||
|
fen:
|
||||||
|
type: text
|
||||||
|
label: FEN-Position
|
||||||
|
- type: pgn4web
|
||||||
|
label: PGN-Datei
|
||||||
|
preview: fields
|
||||||
|
fields:
|
||||||
|
pgn:
|
||||||
|
label: PGN-Datei
|
||||||
|
type: files
|
||||||
|
|
||||||
|
sidebar:
|
||||||
|
width: 1/3
|
||||||
|
sections:
|
||||||
|
publishing:
|
||||||
|
type: fields
|
||||||
|
fields:
|
||||||
|
image:
|
||||||
|
label: Titelbild
|
||||||
|
type: files
|
||||||
|
headline:
|
||||||
|
label: Überschrift
|
||||||
|
type: text
|
||||||
|
subheadline:
|
||||||
|
label: Untertitel
|
||||||
|
type: text
|
||||||
|
summary:
|
||||||
|
label: Zusammenfassung
|
||||||
|
type: textarea
|
||||||
|
size: small
|
||||||
|
author:
|
||||||
|
label: Autor
|
||||||
|
type: users
|
||||||
|
default: true
|
||||||
|
date:
|
||||||
|
label: Datum
|
||||||
|
type: date
|
||||||
|
display: DD.MM.YYYY
|
||||||
|
default: today
|
||||||
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// FEN in Array umwandeln
|
// FEN in Array umwandeln
|
||||||
function fenToBoard($fen) {
|
function fenToBoard($fen) {
|
||||||
$rows = explode('/', explode(' ', $fen)[0]);
|
$rows = explode('/', explode(' ', $fen)[0]);
|
||||||
@@ -22,10 +21,8 @@ function fenToBoard($fen) {
|
|||||||
return $board;
|
return $board;
|
||||||
}?>
|
}?>
|
||||||
|
|
||||||
<?php
|
<?php snippet('layout', slots: true) ?>
|
||||||
snippet('layout', slots: true) ?>
|
|
||||||
<div class="blockpage">
|
<div class="blockpage">
|
||||||
<?= $page->blocks()->toBlocks() ?>
|
<?= $page->blocks()->toBlocks() ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php endsnippet() ?>
|
||||||
endsnippet() ?>
|
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
<?php snippet('layout', slots: true) ?>
|
||||||
|
|
||||||
|
<?php foreach($page->children() as $post): ?>
|
||||||
|
<article class="relative isolate flex flex-col gap-8 lg:flex-row">
|
||||||
|
<div class="relative aspect-video sm:aspect-2/1 lg:aspect-square lg:w-64 lg:shrink-0">
|
||||||
|
<img src="<?= $post->image()->url() ?>" alt="" class="absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover" />
|
||||||
|
<div class="absolute inset-0 rounded-2xl ring-1 ring-gray-900/10 ring-inset"></div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="flex items-center gap-x-4 text-xs">
|
||||||
|
<time datetime="2020-03-16" class="text-gray-500"><?= $post->date()->toDate("d.m.Y") ?></time>
|
||||||
|
<a href="#" class="relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100">Marketing</a>
|
||||||
|
</div>
|
||||||
|
<div class="group relative max-w-xl">
|
||||||
|
<h2>
|
||||||
|
<a href="<?= $post->url() ?>" class="relative">
|
||||||
|
<span class="absolute inset-0"></span>
|
||||||
|
<?= $post->headline() ?>
|
||||||
|
</a>
|
||||||
|
</h2>
|
||||||
|
<p><?= $post->summary() ?></p>
|
||||||
|
</div>
|
||||||
|
<?php if ($user = $post->author()->toUser()): ?>
|
||||||
|
<div class="mt-6 flex border-t border-gray-900/5 pt-6">
|
||||||
|
<div class="relative flex items-center gap-x-4">
|
||||||
|
<img src="<?= $user->avatar()->url() ?>" alt="" class="size-10 rounded-full bg-gray-50" />
|
||||||
|
<div class="text-sm/6">
|
||||||
|
<p>
|
||||||
|
<a href="#">
|
||||||
|
<span class="absolute inset-0"></span>
|
||||||
|
<div class="text-xl">
|
||||||
|
<?= $user->username() ?>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p class="text-sm"><?= $user->role()->title() ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<?php endforeach ?>
|
||||||
|
|
||||||
|
<?php endsnippet() ?>
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
<?php
|
||||||
|
// FEN in Array umwandeln
|
||||||
|
function fenToBoard($fen) {
|
||||||
|
$rows = explode('/', explode(' ', $fen)[0]);
|
||||||
|
$board = [];
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
$boardRow = [];
|
||||||
|
$chars = str_split($row);
|
||||||
|
foreach ($chars as $char) {
|
||||||
|
if (is_numeric($char)) {
|
||||||
|
for ($i = 0; $i < intval($char); $i++) {
|
||||||
|
$boardRow[] = '';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$boardRow[] = $char;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$board[] = $boardRow;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $board;
|
||||||
|
}?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php snippet('layout', slots: true) ?>
|
||||||
|
<p><?= $page->date()->toDate("d.m.Y") ?> - <?= $page->subheadline() ?></p>
|
||||||
|
|
||||||
|
<h1><?= $page->headline() ?></h1>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<img src="<?= $page->image()->url() ?>" alt="">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="blockpage">
|
||||||
|
<?= $page->blocks()->toBlocks() ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ($user = $page->author()->toUser()): ?>
|
||||||
|
<div class="mt-6 flex border-t border-b-sf_grau-300 pt-6">
|
||||||
|
<div class="relative flex items-center gap-x-4">
|
||||||
|
<img src="<?= $user->avatar()->url() ?>" alt="" class="size-10 rounded-full" />
|
||||||
|
<div class="text-sm/6">
|
||||||
|
<p>
|
||||||
|
<a href="#">
|
||||||
|
<span class="absolute inset-0"></span>
|
||||||
|
<div class="text-xl">
|
||||||
|
<?= $user->username() ?>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p class="text-sm"><?= $user->role()->title() ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php endsnippet() ?>
|
||||||
Reference in New Issue
Block a user