diff --git a/.gitignore b/.gitignore index feedc7b..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -WG Neue Server spannendes Know-how Der Thomas-Krenn-Newsletter im Mai.msg \ No newline at end of file diff --git a/WG Neue Server spannendes Know-how Der Thomas-Krenn-Newsletter im Mai.msg b/WG Neue Server spannendes Know-how Der Thomas-Krenn-Newsletter im Mai.msg deleted file mode 100644 index 5da9414..0000000 Binary files a/WG Neue Server spannendes Know-how Der Thomas-Krenn-Newsletter im Mai.msg and /dev/null differ diff --git a/index.php b/index.php index a5e9ad8..303f146 100644 --- a/index.php +++ b/index.php @@ -339,33 +339,18 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel $replyEmail = trim((string)($config['reply_to'] ?: $config['from_email'])); $replyHref = 'mailto:' . $replyEmail; - $summaryText = $count === 1 ? 'Im ' . h($periodLabel) . ' wurde 1 neuer Wiki-Artikel veröffentlicht.' : 'Im ' . h($periodLabel) . ' wurden ' . $count . ' neue Wiki-Artikel veröffentlicht.'; - $testBadge = $isTest - ? ' - - - - - -
- TESTVERSAND -
- - ' - : ''; - $articleRows = ''; if ($count === 0) { $articleRows = ' - - +
+ - @@ -376,29 +361,29 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel foreach ($articles as $article) { $articleRows .= ' -
+ Für diesen Zeitraum wurden keine neuen Artikel gefunden.
- +
+ - - - - + + ' + : ''; + $unsubscribeFooter = ''; $unsubscribeUrl = trim((string)($config['unsubscribe_url'] ?? '')); if ($unsubscribeUrl !== '' && $unsubscribeUrl !== '#' && filter_var($unsubscribeUrl, FILTER_VALIDATE_URL)) { @@ -424,58 +423,57 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel Thomas-Krenn Wiki Newsletter - +
' . h($preheader) . ' ‌ ‌ ‌
-
-
+ Thomas-Krenn-Wiki
+ ' . h($article['title']) . '
+ Veröffentlicht am ' . h($article['date_de']) . ' von ' . h($article['author']) . '.
+
- Jetzt Artikel lesen + Jetzt Artikel lesen
@@ -410,6 +395,20 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel } } + $testBadge = $isTest + ? '
+ + + + +
+ TESTVERSAND +
+
+
+
-
- +