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:
@@ -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'));
|
||||
});
|
||||
|
Reference in New Issue
Block a user