From 1e0db19aaf6f8d8cefe37dea79b6823b9dbc95e8 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 13:14:26 +0000 Subject: [PATCH] Create custom shortcode for root shell --- plugins/shortcode-custom/CustomPrismjs.php | 15 +++++++++++++++ plugins/shortcode-custom/CustomShortcodes.php | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 plugins/shortcode-custom/CustomPrismjs.php create mode 100644 plugins/shortcode-custom/CustomShortcodes.php diff --git a/plugins/shortcode-custom/CustomPrismjs.php b/plugins/shortcode-custom/CustomPrismjs.php new file mode 100644 index 0000000..d4607ad --- /dev/null +++ b/plugins/shortcode-custom/CustomPrismjs.php @@ -0,0 +1,15 @@ +shortcode->getHandlers()->add('sh-root', function(ShortcodeInterface $sc) { + return '
'.$sc->getContent().'
'; + }); + } +} +?> \ No newline at end of file diff --git a/plugins/shortcode-custom/CustomShortcodes.php b/plugins/shortcode-custom/CustomShortcodes.php new file mode 100644 index 0000000..46fc2a4 --- /dev/null +++ b/plugins/shortcode-custom/CustomShortcodes.php @@ -0,0 +1,3 @@ + \ No newline at end of file