From: elektrischerwalfisch Date: Sat, 12 Apr 2025 15:27:09 +0000 (+0200) Subject: removed mailto X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=390ff9c7df7c168843d0d58eea399ac438584d1c;p=flatmark removed mailto --- diff --git a/theme/mailto.php b/theme/mailto.php deleted file mode 100644 index a3793ce..0000000 --- a/theme/mailto.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/theme/shortcodes.php b/theme/shortcodes.php index f4a5ea5..eb79be0 100644 --- a/theme/shortcodes.php +++ b/theme/shortcodes.php @@ -85,13 +85,6 @@ return '
' . $imgRounded . '
'; }, $markdown); - // Shortcode: mail link - $pattern = '/\{mail\}(.*?)\{\/mail\}/s'; - $markdown = preg_replace_callback($pattern, function ($matches) { - $linkText = trim($matches[1]); - return '' . htmlspecialchars($linkText) . ''; - }, $markdown); - // Shortcode: output readme-file $pattern = '/\{readme\}/s'; $markdown = preg_replace_callback($pattern, function () use ($Parsedown) { @@ -104,7 +97,6 @@ } }, $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);