Echo the slot as a comment so that it can be used by HTML replacement mechanisms

This commit is contained in:
Alex Tselegidis 2024-05-11 17:27:28 +02:00
parent 0e766419f4
commit 3b01f9bf91

View file

@ -167,6 +167,8 @@ if (!function_exists('slot')) {
$section = $layout['sections'][$name] ?? null; $section = $layout['sections'][$name] ?? null;
echo '<!-- <SLOT id="' . $layout['filename'] . '/' . $name . '" /> -->' . PHP_EOL;
if (!$section) { if (!$section) {
return; return;
} }