1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 13:46:42 +02:00

feat(shortcodes): upd filesystem shortcode

This commit is contained in:
Awilum
2022-05-09 17:02:18 +03:00
parent 878835faea
commit b01bba679e

View File

@@ -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') ?: '|';