mirror of
https://github.com/flextype/flextype.git
synced 2025-08-06 13:16:45 +02:00
chore(shortcodes): update descriptions
This commit is contained in:
@@ -24,7 +24,7 @@ use function entries;
|
||||
use function parsers;
|
||||
use function registry;
|
||||
|
||||
// Shortcode: [entries-fetch id="entry-id" field="field-name" default="default-value"]
|
||||
// Shortcode: [entries-fetch id="STRING" field="STRING" default="STRING"]
|
||||
parsers()->shortcodes()->addHandler('entries-fetch', static function (ShortcodeInterface $s) {
|
||||
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.entries.enabled')) {
|
||||
return '';
|
||||
|
@@ -22,7 +22,7 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface;
|
||||
|
||||
use function parsers;
|
||||
|
||||
// Shortcode: [raw]
|
||||
// Shortcode: [raw] shortcodes to escape [/raw]
|
||||
parsers()->shortcodes()->addHandler('raw', static function (ShortcodeInterface $s) {
|
||||
return $s->getContent();
|
||||
});
|
||||
|
@@ -21,7 +21,7 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface;
|
||||
use function parsers;
|
||||
use function registry;
|
||||
|
||||
// Shortcode: [registry-get id="item-id" default="default-value"]
|
||||
// Shortcode: [registry-get id="STRING" default="STRING"]
|
||||
parsers()->shortcodes()->addHandler('registry-get', static function (ShortcodeInterface $s) {
|
||||
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.registry.enabled')) {
|
||||
return '';
|
||||
|
@@ -57,7 +57,8 @@ parsers()->shortcodes()->addHandler('getUriString', static function () {
|
||||
return getUriString();
|
||||
});
|
||||
|
||||
// Shortcode: [urlFor routeName="route-name" data='{"foo": "Foo"}' queryParams='{"foo": "Foo"}']
|
||||
// Shortcode: [urlFor routeName="STRING" data="STRING(JSON)" queryParams="STRING(JSON)"]
|
||||
// Example: [urlFor routeName="route-name" data='{"foo": "Foo"}' queryParams='{"foo": "Foo"}']
|
||||
parsers()->shortcodes()->addHandler('urlFor', static function (ShortcodeInterface $s) {
|
||||
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.url.enabled')) {
|
||||
return '';
|
||||
|
Reference in New Issue
Block a user