This commit is contained in:
2025-05-07 10:02:41 -07:00
parent 85d45b6a3a
commit 4a237f7d9c
4 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
return [ return [
"debug" => true, "debug" => true,
"flex-file-prefix" => "flex",
/** /**
* excerpt-length * excerpt-length

0
tpl/intro_block.tpl Normal file
View File

View File

@@ -72,7 +72,7 @@ class RadThemeEngine
continue; continue;
} }
$output .= site()->render($g["acf_fc_layout"], $g); $output .= site()->render(site()->getFlexFilePrefix().$g["acf_fc_layout"], $g);
} }
return $output; return $output;
}; };

View File

@@ -80,6 +80,14 @@ class Site
$this->processGuestAJAX(); $this->processGuestAJAX();
} }
public function getFlexFilePrefix(): string
{
if (!isset($this->config["flex-file-prefix"])) {
return "";
}
return $this->config["flex-file-prefix"]."_";
}
private function processGuestAJAX() private function processGuestAJAX()
{ {
if (!isset($this->config["guest-ajax"])) { if (!isset($this->config["guest-ajax"])) {