Compare commits
4 Commits
932e7f3152
...
b92ad8fa06
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b92ad8fa06 | ||
|
|
8871fd49ac | ||
|
|
03c64e2910 | ||
|
|
fdf2f2c03f |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,6 +1,5 @@
|
|||||||
output/
|
output/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.code-workspace
|
|
||||||
content/pages/termine.md
|
content/pages/termine.md
|
||||||
lighttpd.conf
|
lighttpd.conf
|
||||||
newsletter.sqlite
|
newsletter.sqlite
|
||||||
@ -11,4 +10,4 @@ events.ini
|
|||||||
events.yaml
|
events.yaml
|
||||||
deploy.ini
|
deploy.ini
|
||||||
.venv/
|
.venv/
|
||||||
.vscode/
|
misc/picture\ ideas/
|
||||||
11
.vscode/settings.json
vendored
Normal file
11
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"spellright.language": [
|
||||||
|
"de_DE",
|
||||||
|
"en_US"
|
||||||
|
],
|
||||||
|
"spellright.documentTypes": [
|
||||||
|
"markdown",
|
||||||
|
"latex",
|
||||||
|
"plaintext"
|
||||||
|
]
|
||||||
|
}
|
||||||
8
.vscode/t-r.de.code-workspace
vendored
Normal file
8
.vscode/t-r.de.code-workspace
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": ".."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
||||||
BIN
content/images/termine/2025-12-11-lesung-poster.jpg
Normal file
BIN
content/images/termine/2025-12-11-lesung-poster.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 502 KiB |
@ -38,7 +38,9 @@ $mailContents = [
|
|||||||
'subject' => 'Diese Nachricht kam ueber das Kontaktformular von t-r.de',
|
'subject' => 'Diese Nachricht kam ueber das Kontaktformular von t-r.de',
|
||||||
'bodyText' => implode("\n\n", $body),
|
'bodyText' => implode("\n\n", $body),
|
||||||
'fromAddress' => $general['notificationAddress'],
|
'fromAddress' => $general['notificationAddress'],
|
||||||
'fromName' => 'Tobias Radloffs Kontaktformular'
|
'fromName' => 'Tobias Radloffs Kontaktformular',
|
||||||
|
'replyTo' => $_POST['email'],
|
||||||
|
'name' => $_POST['name']
|
||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -64,6 +64,11 @@ function SendEmail($toAddress, $mailContents) {
|
|||||||
// recipient
|
// recipient
|
||||||
$mail->addAddress($toAddress);
|
$mail->addAddress($toAddress);
|
||||||
|
|
||||||
|
// reply-to address
|
||||||
|
if ( isset($mailContents['replyTo']) and isset($mailContents['name']) ) {
|
||||||
|
$mail->addReplyTo($mailContents['replyTo'], $mailContents['name']);
|
||||||
|
}
|
||||||
|
|
||||||
// content
|
// content
|
||||||
$mail->CharSet = 'UTF-8';
|
$mail->CharSet = 'UTF-8';
|
||||||
if ( isset($mailContents['bodyHTML']) and $mailContents['bodyHTML'] != '' ) {
|
if ( isset($mailContents['bodyHTML']) and $mailContents['bodyHTML'] != '' ) {
|
||||||
|
|||||||
@ -41,7 +41,7 @@
|
|||||||
{% if t.description %}<p>{{ t.description | replace("\n\n", "</p><p>") | replace("\n", "<br>") | replace("</p><br><p>", "</p><p>")}}</p>{% endif %}
|
{% if t.description %}<p>{{ t.description | replace("\n\n", "</p><p>") | replace("\n", "<br>") | replace("</p><br><p>", "</p><p>")}}</p>{% endif %}
|
||||||
{% if t.link %}<p><a href="{{ t.link }}" target="_blank" title="siehe auch …">Mehr Infos</a></p>{% endif %}
|
{% if t.link %}<p><a href="{{ t.link }}" target="_blank" title="siehe auch …">Mehr Infos</a></p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if t.image %}<a href="{{ t.image }}" target="_blank"><img class="event-flyer" src="{{ t.image }}" alt="siehe auch …"></a> {% endif %}
|
{% if t.image %}<a href="{{ t.image }}"><img class="event-flyer" src="{{ t.image }}" alt="siehe auch …"></a> {% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user