|
@ -46,7 +46,12 @@ class Plugin extends PluginBase |
|
|
{ |
|
|
{ |
|
|
Event::listen('cms.page.postprocess', function($controller, $url, $page, $dataHolder) { |
|
|
Event::listen('cms.page.postprocess', function($controller, $url, $page, $dataHolder) { |
|
|
|
|
|
|
|
|
$dataHolder->content = \Shortcode::parse($dataHolder->content); |
|
|
|
|
|
|
|
|
// Only parse strings, so that we don't interrupt
|
|
|
|
|
|
// ajax responses that are in object or array form
|
|
|
|
|
|
if (is_string($dataHolder->content)) |
|
|
|
|
|
{ |
|
|
|
|
|
$dataHolder->content = \Shortcode::parse($dataHolder->content); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|