# Contact
-...
\ No newline at end of file
+You got questions about flatmark or you want me to build a flatMark-website for you?
+
+Just {mail}contact me!{/mail}
--- /dev/null
+<?php
+// Build and redirect to the actual mailto link
+$emailUser = "flatmark";
+$emailDomain = "elektrischerwalfisch.de";
+$email = $emailUser . '@' . $emailDomain;
+
+// Redirect to the mail client
+header("Location: mailto:$email");
+exit;
+
+?>
\ No newline at end of file
return '<div class="background ' . $bgClass . '">' . $bgHtml . '</div>';
}, $markdown);
-
-
// Shortcode: img rounded
$pattern = '/\{img-rounded\}(.*?)\{\/img-rounded\}/s';
$markdown = preg_replace_callback($pattern, function ($matches) use ($Parsedown) {
return '<div class="img-rounded">' . $imgRounded . '</div>';
}, $markdown);
+ // Shortcode: mail link
+ $pattern = '/\{mail\}(.*?)\{\/mail\}/s';
+ $markdown = preg_replace_callback($pattern, function ($matches) {
+ $linkText = trim($matches[1]);
+ return '<a href="../theme/mailto.php">' . htmlspecialchars($linkText) . '</a>';
+ }, $markdown);
+
// Shortcode: output readme-file
$pattern = '/\{readme\}/s';
$markdown = preg_replace_callback($pattern, function () use ($Parsedown) {