From 9950aa25fd0d3431669c427a7d95ecff23e0bd8a Mon Sep 17 00:00:00 2001 From: smueller Date: Tue, 7 Jul 2026 11:21:51 +0200 Subject: [PATCH] Refine newsletter HTML layout in index.php by updating padding, font sizes, and background colors for improved aesthetics and readability. Adjusted article count message for grammatical accuracy in German. --- index.php | 87 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/index.php b/index.php index fcbc9dc..85a8008 100644 --- a/index.php +++ b/index.php @@ -344,7 +344,7 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel $replyEmail = trim((string)($config['reply_to'] ?: $config['from_email'])); $replyHref = 'mailto:' . $replyEmail; $summaryText = $count === 1 - ? 'In diesem Zeitraum wurde 1 neuer Wiki-Artikel veröffentlicht.' + ? 'In diesem Zeitraum wurde ein neuer Wiki-Artikel veröffentlicht.' : 'In diesem Zeitraum wurden ' . $count . ' neue Wiki-Artikel veröffentlicht.'; [$periodStart, $periodEnd] = newsletterPeriod((string)$config['period_mode']); @@ -358,10 +358,10 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel if ($count === 0) { $articleRows = ' - - +
+ - @@ -372,29 +372,29 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel foreach ($articles as $article) { $articleRows .= ' -
+ Für diesen Zeitraum wurden keine neuen Artikel gefunden.
- +
+ - - - - -
- Thomas-Krenn-Wiki + + Wiki-Beitrag
- ' . h($article['title']) . ' + + ' . h($article['title']) . '
+ Veröffentlicht am ' . h($article['date_de']) . ' von ' . h($article['author']) . '.
+
- Jetzt Artikel lesen + Artikel lesen
@@ -408,10 +408,10 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel $testBadge = $isTest ? '
+ - @@ -434,7 +434,7 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel Thomas-Krenn Wiki Newsletter - +
' . h($preheader) . ' ‌ ‌ ‌
-
-
+ TESTVERSAND
+
+
-
- +