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
- ? '
-
-
+
+
- |
+ |
Für diesen Zeitraum wurden keine neuen Artikel gefunden.
|
@@ -376,29 +361,29 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
foreach ($articles as $article) {
$articleRows .= '
-
-
+
+
- |
+ |
Thomas-Krenn-Wiki
|
- |
+ |
' . h($article['title']) . '
|
- |
+ |
Veröffentlicht am ' . h($article['date_de']) . ' von ' . h($article['author']) . '.
|
- |
+ |
@@ -410,6 +395,20 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
}
}
+ $testBadge = $isTest
+ ? ' |
+ |
+
+ |
+ '
+ : '';
+
$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
-
+
-
-
+
+
-
-
+
+
- |
+ |
Sollte diese E-Mail nicht einwandfrei dargestellt werden, klicken Sie bitte hier.
|
- |
+ |
THOMAS KRENN
|
-
-
+
+
- |
- NEWSLETTER
- ' . h($periodLabel) . '
+ |
+ NEWSLETTER
+ ' . h($periodLabel) . '
|
|
- |
+ |
- |
+ |
Guten Tag,
- „oh mei“ sagen wir in Bayern, wenn mal was schiefgeht. In diesem Newsletter finden Sie aktuelles und kostenfreies IT-Know-how aus dem Thomas-Krenn-Wiki.
-
' . $summaryText . '
-
Viel Spaß beim Lesen wünscht Ihr Team von Thomas-Krenn
+ hier ist Ihre aktuelle Übersicht aus dem Thomas-Krenn-Wiki.
+ ' . $summaryText . '
+ Viel Spaß beim Lesen wünscht Ihr Team von Thomas-Krenn
|
@@ -484,10 +482,10 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
' . $testBadge . '
' . $articleRows . '
|
-
-
+
+
- |
+ |
Haben Sie Fragen oder einen Themenwunsch?
Kontaktieren Sie uns gerne direkt.
|
@@ -496,8 +494,8 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
-
-
+
+
Tel.: +49 8551 9150 0 | Fax: +49 8551 9150 55
thomas-krenn.com
Thomas-Krenn.AG | Speltenbach-Steinäcker 1 | D-94078 Freyung
diff --git a/wiki.php b/wiki.php
index 7a14da3..ddca103 100644
--- a/wiki.php
+++ b/wiki.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
- ? '
- |
-
- |
- '
- : '';
-
$articleRows = '';
if ($count === 0) {
$articleRows = '
-
-
+
+
- |
+ |
Für diesen Zeitraum wurden keine neuen Artikel gefunden.
|
@@ -376,29 +361,29 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
foreach ($articles as $article) {
$articleRows .= '
-
-
+
+
- |
+ |
Thomas-Krenn-Wiki
|
- |
+ |
' . h($article['title']) . '
|
- |
+ |
Veröffentlicht am ' . h($article['date_de']) . ' von ' . h($article['author']) . '.
|
- |
+ |
@@ -410,6 +395,20 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
}
}
+ $testBadge = $isTest
+ ? ' |
+ |
+
+ |
+ '
+ : '';
+
$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
-
+
-
-
+
+
-
-
+
+
- |
+ |
Sollte diese E-Mail nicht einwandfrei dargestellt werden, klicken Sie bitte hier.
|
- |
+ |
THOMAS KRENN
|
-
-
+
+
- |
- NEWSLETTER
- ' . h($periodLabel) . '
+ |
+ NEWSLETTER
+ ' . h($periodLabel) . '
|
|
- |
+ |
- |
+ |
Guten Tag,
- „oh mei“ sagen wir in Bayern, wenn mal was schiefgeht. In diesem Newsletter finden Sie aktuelles und kostenfreies IT-Know-how aus dem Thomas-Krenn-Wiki.
-
' . $summaryText . '
-
Viel Spaß beim Lesen wünscht Ihr Team von Thomas-Krenn
+ hier ist Ihre aktuelle Übersicht aus dem Thomas-Krenn-Wiki.
+ ' . $summaryText . '
+ Viel Spaß beim Lesen wünscht Ihr Team von Thomas-Krenn
|
@@ -484,10 +482,10 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
' . $testBadge . '
' . $articleRows . '
|
-
-
+
+
- |
+ |
Haben Sie Fragen oder einen Themenwunsch?
Kontaktieren Sie uns gerne direkt.
|
@@ -496,8 +494,8 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
-
-
+
+
Tel.: +49 8551 9150 0 | Fax: +49 8551 9150 55
thomas-krenn.com
Thomas-Krenn.AG | Speltenbach-Steinäcker 1 | D-94078 Freyung
| | | | | | | | | | | | | | | | | | | | | |