diff --git a/src/flextype/core/Parsers/Shortcodes/DateShortcode.php b/src/flextype/core/Parsers/Shortcodes/DateShortcode.php new file mode 100644 index 00000000..f8df2eba --- /dev/null +++ b/src/flextype/core/Parsers/Shortcodes/DateShortcode.php @@ -0,0 +1,33 @@ +shortcodes()->addHandler('date', static function (ShortcodeInterface $s) { + if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.date.enabled')) { + return ''; + } + + return date($s->getBBCode()); +});