diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..feedc7b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+WG Neue Server spannendes Know-how Der Thomas-Krenn-Newsletter im Mai.msg
\ No newline at end of file
diff --git a/index.php b/index.php
index 66ef2ac..a5e9ad8 100644
--- a/index.php
+++ b/index.php
@@ -340,61 +340,13 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
$replyEmail = trim((string)($config['reply_to'] ?: $config['from_email']));
$replyHref = 'mailto:' . $replyEmail;
- $articleRows = '';
- if ($count === 0) {
- $articleRows = '
-
- |
+ |
|
@@ -406,16 +358,64 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
| '
: '';
+ $articleRows = '';
+ if ($count === 0) {
+ $articleRows = '
+
+
+
+
+ |
+ Für diesen Zeitraum wurden keine neuen Artikel gefunden.
+ |
+
+
+ |
+ ';
+ } else {
+ foreach ($articles as $article) {
+ $articleRows .= '
+
+
+
+
+ |
+ Thomas-Krenn-Wiki
+ |
+
+
+ |
+ ' . h($article['title']) . '
+ |
+
+
+ |
+ Veröffentlicht am ' . h($article['date_de']) . ' von ' . h($article['author']) . '.
+ |
+
+
+ |
+
+ |
+
+
+ |
+ ';
+ }
+ }
+
$unsubscribeFooter = '';
$unsubscribeUrl = trim((string)($config['unsubscribe_url'] ?? ''));
if ($unsubscribeUrl !== '' && $unsubscribeUrl !== '#' && filter_var($unsubscribeUrl, FILTER_VALIDATE_URL)) {
- $unsubscribeFooter = ' Newsletter abbestellen';
+ $unsubscribeFooter = ' Abmelden';
}
- $summaryText = $count === 1
- ? 'Im ' . h($periodLabel) . ' wurde 1 neuer Wiki-Artikel veröffentlicht.'
- : 'Im ' . h($periodLabel) . ' wurden ' . $count . ' neue Wiki-Artikel veröffentlicht.';
-
return '
@@ -424,56 +424,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
+ |
+ THOMAS KRENN
|
-
-
+
+
|
- NEWSLETTER
- ' . h($periodLabel) . '
+ NEWSLETTER
+ ' . h($periodLabel) . '
|
|
- |
+ |
- |
+ |
Guten Tag,
- ' . $summaryText . ' Entdecken Sie jetzt alle Neuheiten aus der Welt des Thomas-Krenn-Wikis.
+ „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
|
@@ -483,10 +484,10 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
' . $testBadge . '
' . $articleRows . '
- |
+ |
- |
+ |
Haben Sie Fragen oder einen Themenwunsch?
Kontaktieren Sie uns gerne direkt.
|
@@ -495,10 +496,12 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
-
-
- Thomas-Krenn.AG | Speltenbach-Steinäcker 1 | D-94078 Freyung
- Wiki öffnen' . $unsubscribeFooter . '
+
+
+ Tel.: +49 8551 9150 0 | Fax: +49 8551 9150 55
+ thomas-krenn.com
+ Thomas-Krenn.AG | Speltenbach-Steinäcker 1 | D-94078 Freyung
+ ' . $unsubscribeFooter . '
|
|
diff --git a/wiki.php b/wiki.php
index 19a9f12..7a14da3 100644
--- a/wiki.php
+++ b/wiki.php
@@ -340,61 +340,13 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
$replyEmail = trim((string)($config['reply_to'] ?: $config['from_email']));
$replyHref = 'mailto:' . $replyEmail;
- $articleRows = '';
- if ($count === 0) {
- $articleRows = '
-
-
-
-
- |
- Für diesen Zeitraum wurden keine neuen Artikel gefunden.
- |
-
-
- |
- ';
- } else {
- foreach ($articles as $article) {
- $articleRows .= '
-
-
-
-
- |
- Thomas-Krenn-Wiki
- |
-
-
- |
- ' . h($article['title']) . '
- |
-
-
- |
- Veröffentlicht am ' . h($article['date_de']) . ' von ' . h($article['author']) . '.
- |
-
-
- |
-
- |
-
-
- |
- ';
- }
- }
+ $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
? '
- |
+ |
|
@@ -406,16 +358,64 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
| '
: '';
+ $articleRows = '';
+ if ($count === 0) {
+ $articleRows = '
+
+
+
+
+ |
+ Für diesen Zeitraum wurden keine neuen Artikel gefunden.
+ |
+
+
+ |
+ ';
+ } else {
+ foreach ($articles as $article) {
+ $articleRows .= '
+
+
+
+
+ |
+ Thomas-Krenn-Wiki
+ |
+
+
+ |
+ ' . h($article['title']) . '
+ |
+
+
+ |
+ Veröffentlicht am ' . h($article['date_de']) . ' von ' . h($article['author']) . '.
+ |
+
+
+ |
+
+ |
+
+
+ |
+ ';
+ }
+ }
+
$unsubscribeFooter = '';
$unsubscribeUrl = trim((string)($config['unsubscribe_url'] ?? ''));
if ($unsubscribeUrl !== '' && $unsubscribeUrl !== '#' && filter_var($unsubscribeUrl, FILTER_VALIDATE_URL)) {
- $unsubscribeFooter = ' Newsletter abbestellen';
+ $unsubscribeFooter = ' Abmelden';
}
- $summaryText = $count === 1
- ? 'Im ' . h($periodLabel) . ' wurde 1 neuer Wiki-Artikel veröffentlicht.'
- : 'Im ' . h($periodLabel) . ' wurden ' . $count . ' neue Wiki-Artikel veröffentlicht.';
-
return '
@@ -424,56 +424,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
+ |
+ THOMAS KRENN
|
-
-
+
+
|
- NEWSLETTER
- ' . h($periodLabel) . '
+ NEWSLETTER
+ ' . h($periodLabel) . '
|
|
- |
+ |
- |
+ |
Guten Tag,
- ' . $summaryText . ' Entdecken Sie jetzt alle Neuheiten aus der Welt des Thomas-Krenn-Wikis.
+ „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
|
@@ -483,10 +484,10 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
' . $testBadge . '
' . $articleRows . '
- |
+ |
- |
+ |
Haben Sie Fragen oder einen Themenwunsch?
Kontaktieren Sie uns gerne direkt.
|
@@ -495,10 +496,12 @@ function buildNewsletterHtml(array $config, array $articles, string $periodLabel
-
-
- Thomas-Krenn.AG | Speltenbach-Steinäcker 1 | D-94078 Freyung
- Wiki öffnen' . $unsubscribeFooter . '
+
+
+ Tel.: +49 8551 9150 0 | Fax: +49 8551 9150 55
+ thomas-krenn.com
+ Thomas-Krenn.AG | Speltenbach-Steinäcker 1 | D-94078 Freyung
+ ' . $unsubscribeFooter . '
|
|
| | | | | | | | | | | |