mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 05:36:54 +02:00
feat(shortcodes): upd entries
shortcode
This commit is contained in:
@@ -32,7 +32,7 @@ parsers()->shortcodes()->addHandler('entries', static function (ShortcodeInterfa
|
||||
|
||||
$varsDelimeter = $s->getParameter('varsDelimeter') ?: '|';
|
||||
|
||||
if ($s->getParameter('fetch') != null) {
|
||||
if ($s->getParameter('fetch') != null && registry()->get('flextype.settings.parsers.shortcodes.shortcodes.entries.fetch.enabled') === true) {
|
||||
|
||||
// Get vars
|
||||
foreach($s->getParameters() as $key => $value) {
|
||||
|
@@ -541,6 +541,8 @@ parsers:
|
||||
entries:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php"
|
||||
fetch:
|
||||
enabled: true
|
||||
php:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/PhpShortcode.php"
|
||||
|
2
tests/fixtures/settings/settings.yaml
vendored
2
tests/fixtures/settings/settings.yaml
vendored
@@ -528,6 +528,8 @@ parsers:
|
||||
entries:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php"
|
||||
fetch:
|
||||
enabled: true
|
||||
raw:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/RawShortcode.php"
|
||||
|
Reference in New Issue
Block a user