Compare commits
No commits in common. "b92ad8fa067b1339b98832904960b61aaf66d6fa" and "932e7f31525236f479ae3db8f419a6f111e0e937" have entirely different histories.
b92ad8fa06
...
932e7f3152
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
output/
|
output/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
*.code-workspace
|
||||||
content/pages/termine.md
|
content/pages/termine.md
|
||||||
lighttpd.conf
|
lighttpd.conf
|
||||||
newsletter.sqlite
|
newsletter.sqlite
|
||||||
@ -10,4 +11,4 @@ events.ini
|
|||||||
events.yaml
|
events.yaml
|
||||||
deploy.ini
|
deploy.ini
|
||||||
.venv/
|
.venv/
|
||||||
misc/picture\ ideas/
|
.vscode/
|
||||||
11
.vscode/settings.json
vendored
11
.vscode/settings.json
vendored
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"spellright.language": [
|
|
||||||
"de_DE",
|
|
||||||
"en_US"
|
|
||||||
],
|
|
||||||
"spellright.documentTypes": [
|
|
||||||
"markdown",
|
|
||||||
"latex",
|
|
||||||
"plaintext"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
8
.vscode/t-r.de.code-workspace
vendored
8
.vscode/t-r.de.code-workspace
vendored
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"folders": [
|
|
||||||
{
|
|
||||||
"path": ".."
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"settings": {}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 502 KiB |
@ -38,9 +38,7 @@ $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,11 +64,6 @@ 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 }}"><img class="event-flyer" src="{{ t.image }}" alt="siehe auch …"></a> {% endif %}
|
{% if t.image %}<a href="{{ t.image }}" target="_blank"><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