four col thing

This commit is contained in:
2025-06-17 10:01:03 -07:00
parent 3a2cbd8a26
commit 9e06826533
7 changed files with 29 additions and 0 deletions

View File

@@ -103,6 +103,13 @@ class RadThemeEngine
};
}
public static function acfOption()
{
return function ($template, $context, $args, $source) {
return get_field($args, "options");
};
}
public static function count()
{
return function ($template, $context, $args, $source) {

View File

@@ -692,6 +692,7 @@ class Site
"length" => \ofc\RadThemeEngine::count(),
"paginationLinks" => \ofc\RadThemeEngine::pagination(),
"queryCount" => \ofc\RadThemeEngine::queryCount(),
"acfOption" => \ofc\RadThemeEngine::acfOption(),
];
foreach ($helpers as $name => $callback) {
$this->hb->addHelper($name, $callback);