mirror of
https://github.com/flextype/flextype.git
synced 2025-08-14 00:54:03 +02:00
Flextype Core: Shortcodes - start using new Images API
This commit is contained in:
@@ -57,5 +57,5 @@ Shortcodes::shortcode()->addHandler('images', function(ShortcodeInterface $s) {
|
||||
($s->getParameter('id')) and $attributes['id'] = $s->getParameter('id');
|
||||
($s->getParameter('alt')) and $attributes['alt'] = $s->getParameter('alt');
|
||||
|
||||
return Images::getImage($s->getParameter('path'), $params, $attributes);
|
||||
return Images::fetchImage($s->getParameter('path'), $params, $attributes);
|
||||
});
|
||||
|
@@ -50,5 +50,5 @@ Shortcodes::shortcode()->addHandler('images_url', function(ShortcodeInterface $s
|
||||
($s->getParameter('q')) and $params['q'] = $s->getParameter('q');
|
||||
($s->getParameter('fm')) and $params['fm'] = $s->getParameter('fm');
|
||||
|
||||
return Images::getImageUrl($s->getParameter('path'), $params);
|
||||
return Images::fetchImageUrl($s->getParameter('path'), $params);
|
||||
});
|
||||
|
Reference in New Issue
Block a user