From b01bba679eeaf4232d32c18a71ccbc0b7fd9419c Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 9 May 2022 17:02:18 +0300 Subject: [PATCH] feat(shortcodes): upd `filesystem` shortcode --- src/flextype/core/Parsers/Shortcodes/FilesystemShortcode.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flextype/core/Parsers/Shortcodes/FilesystemShortcode.php b/src/flextype/core/Parsers/Shortcodes/FilesystemShortcode.php index b632696e..44b0be02 100644 --- a/src/flextype/core/Parsers/Shortcodes/FilesystemShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/FilesystemShortcode.php @@ -20,6 +20,9 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface; // Shortcode: [filesystem] parsers()->shortcodes()->addHandler('filesystem', static function (ShortcodeInterface $s) { + if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.filesystem.enabled')) { + return ''; + } $varsDelimeter = $s->getParameter('varsDelimeter') ?: '|';