1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 05:07:41 +02:00

Flextype Core: Shortcodes - start using new Snippets API

This commit is contained in:
Awilum
2019-02-20 13:53:03 +03:00
parent 8c5fd02d08
commit 54ce0541cf

View File

@@ -16,7 +16,7 @@ use Thunder\Shortcode\ShortcodeFacade;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
// Snippets
// Shortcode: [snippets get=snippet-name]
// Shortcode: [snippets fetch=snippet-name]
Shortcodes::shortcode()->addHandler('snippets', function(ShortcodeInterface $s) {
return Snippets::get($s->getParameter('get'));
return Snippets::get($s->getParameter('fetch'));
});