Compare commits

..

4 Commits

Author SHA1 Message Date
Tobias Radloff
b92ad8fa06 added vascode config to git repo 2025-11-21 09:01:10 +01:00
Tobias Radloff
8871fd49ac added event flyer 2025-11-21 08:59:12 +01:00
Tobias Radloff
03c64e2910 links to full-size flyer images now open in the same tab 2025-11-21 08:59:01 +01:00
Tobias Radloff
fdf2f2c03f added reply-to header to mails sent via contact form 2025-11-21 08:58:14 +01:00
7 changed files with 29 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,6 +1,5 @@
output/
__pycache__/
*.code-workspace
content/pages/termine.md
lighttpd.conf
newsletter.sqlite
@ -11,4 +10,4 @@ events.ini
events.yaml
deploy.ini
.venv/
.vscode/
misc/picture\ ideas/

11
.vscode/settings.json vendored Normal file
View 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
View File

@ -0,0 +1,8 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

View File

@ -38,7 +38,9 @@ $mailContents = [
'subject' => 'Diese Nachricht kam ueber das Kontaktformular von t-r.de',
'bodyText' => implode("\n\n", $body),
'fromAddress' => $general['notificationAddress'],
'fromName' => 'Tobias Radloffs Kontaktformular'
'fromName' => 'Tobias Radloffs Kontaktformular',
'replyTo' => $_POST['email'],
'name' => $_POST['name']
];
try {

View File

@ -64,6 +64,11 @@ function SendEmail($toAddress, $mailContents) {
// recipient
$mail->addAddress($toAddress);
// reply-to address
if ( isset($mailContents['replyTo']) and isset($mailContents['name']) ) {
$mail->addReplyTo($mailContents['replyTo'], $mailContents['name']);
}
// content
$mail->CharSet = 'UTF-8';
if ( isset($mailContents['bodyHTML']) and $mailContents['bodyHTML'] != '' ) {

View File

@ -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.link %}<p><a href="{{ t.link }}" target="_blank" title="siehe auch …">Mehr Infos</a></p>{% endif %}
</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>
</tr>
{% endfor %}