]> skyeroc.xyz Git - flatmark/commitdiff
removed mailto
authorelektrischerwalfisch <mail@elektrischerwalfisch.de>
Sat, 12 Apr 2025 15:27:09 +0000 (17:27 +0200)
committerelektrischerwalfisch <mail@elektrischerwalfisch.de>
Sat, 12 Apr 2025 15:27:09 +0000 (17:27 +0200)
theme/mailto.php [deleted file]
theme/shortcodes.php

diff --git a/theme/mailto.php b/theme/mailto.php
deleted file mode 100644 (file)
index a3793ce..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?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
index f4a5ea56d7559ddc3cdcdf2c1c3da2687ab28257..eb79be0820c94b98723c5518e2fbda5d3121aa68 100644 (file)
             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) {
             }
         }, $markdown);
 
-
     // Shortcode: code 2/2 - restore code blocks (so no shortcode inside was processed)
         foreach ($codeBlocks as $placeholder => $codeBlock) {
             $markdown = str_replace($placeholder, $codeBlock, $markdown);