small changes

This commit is contained in:
eclipse 2025-02-27 23:15:19 +01:00
parent bdabaa9b68
commit 161978313a
4 changed files with 21 additions and 38 deletions

View File

@ -1,18 +0,0 @@
<?php
//source: https://www.unixdude.net/posts/2017/Nov/29/pelican-contact-form/
if(isset($_POST['address']) && $_POST['address'] == ''){
//The form was submitted
$ouremail = 'kontakt@tobias-radloff.de';
// Important: if we add any form fields to the HTML,
// and want them included in the email, we will need to add them here also
$body = "Diese Nachricht wurde soeben durch das Kontaktformular auf t-r.de übermittelt:
Name: $_POST[name]
Emailadresse: $_POST[email]
Nachricht: $_POST[nachricht]";
// From:
$headers = "From: $_POST[email]";
// send the message
mail($ouremail, 'Nachricht ueber das Kontaktformular von t-r.de!', $body, $headers );
header('Location: /kontakt/danke/');
}
?>

View File

@ -1,6 +1,6 @@
<hgroup> <hgroup>
<h2>Abonniere meinen Newsletter!</h2> <h2>Abonniere meinen Newsletter</h2>
<p>Erfahre zuerst von Neuerscheinungen, Lesungen und allem anderen. Mein Dankeschön: ein unveröffentlichtes Gedicht.</p> <p>Erfahre zuerst von Neuerscheinungen, Lesungen und dem ganzen Rest. Mein Dankeschön für dich: ein unveröffentlichtes Gedicht.</p>
</hgroup> </hgroup>
<form class="newsletter-form" method="post" action="{{ SITEURL }}/subscribe.php"> <form class="newsletter-form" method="post" action="{{ SITEURL }}/subscribe.php">
<input class="newsletter-email" type="email" name="email" placeholder="Emailadresse" autocomplete="email" aria-label="Emailadresse" required/> <input class="newsletter-email" type="email" name="email" placeholder="Emailadresse" autocomplete="email" aria-label="Emailadresse" required/>

View File

@ -1,6 +1,6 @@
<hgroup> <hgroup>
<h2>Newsletter-Abmeldung</h2> <h2>Newsletter-Abmeldung</h2>
<p>Komm bald wiederm okay?</p> <p>Komm gerne wieder, irgendwann.</p>
</hgroup> </hgroup>
<form class="newsletter-form" method="get" action="{{ SITEURL }}/unsubscribe.php"> <form class="newsletter-form" method="get" action="{{ SITEURL }}/unsubscribe.php">
<input class="newsletter-email" type="email" name="email" placeholder="Emailadresse" autocomplete="email" aria-label="Emailadresse" required/> <input class="newsletter-email" type="email" name="email" placeholder="Emailadresse" autocomplete="email" aria-label="Emailadresse" required/>

View File

@ -1,25 +1,26 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content_body %}
{% block content_body %} {% for p in pages if p.title == "Index" %}
{% for p in pages %} {% set lr = cycler("row", "row-reverse") %}
{% if p.title == "Index" %}
{% set lr = cycler("row", "row-reverse") %}
{% if p.featured is defined %} {% if p.featured is defined %}
<div class="index-featured"> <div class="index-featured"></div>
</div> {% endif %}
{% endif %}
{% for e in p.elements %} {% for e in p.elements %}
<div class="index" style="flex-direction: {{ lr.next() }};"> <div class="index" style="flex-direction: {{ lr.next() }};">
<figure> <figure>
<a href="{{ e.link }}" alt="{{ e.text }}"><img src="{{ e.pic }}" /></a> <a href="{{ e.link }}" alt="{{ e.text }}"><img src="{{ e.pic }}" /></a>
{% if e.credit is defined %}<figcaption>Bild: {{ e.credit }}</figcaption>{% endif %} {% if e.credit is defined %}
<figcaption>Bild: {{ e.credit }}</figcaption>
{% endif %}
</figure> </figure>
<p>{{ e.text }}<br> <p>
<span class="index-link"><a href="{% if e.more_link is defined %}{{ e.more_link }}{% else %}{{ e.link }}{% endif %}">{{ e.more }}</a></span> {{ e.text }}<br />
<span class="index-link">
<a href="{% if e.more_link is defined %}{{ e.more_link }}{% else %}{{ e.link }}{% endif %}">{{ e.more }}</a>
</span>
</p> </p>
</div> </div>
{% endfor %} {% endfor %}
{% endfor %}
{% endif %} {% include "includes/subscribe.html" %} {%
{% endfor %} endblock content_body %}
{% endblock content_body %}