four col thing
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user