WIP
This commit is contained in:
10
assets/arrow-circle.svg
Normal file
10
assets/arrow-circle.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.8 KiB |
21
tpl/flex_multiblock_callout.tpl
Normal file
21
tpl/flex_multiblock_callout.tpl
Normal file
@@ -0,0 +1,21 @@
|
||||
<section class="multiblock-callout">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h2>{{ headline }}</h2>
|
||||
{{{ intro_content }}}
|
||||
|
||||
<div class="left-image" style="background-image: url({{ image }})"> </div>
|
||||
</div>
|
||||
<div class="col">
|
||||
{{#each}}
|
||||
<div class="callout">
|
||||
{{#assetURL asdf}}
|
||||
{{ headline }}
|
||||
{{ description }}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -85,6 +85,13 @@ class RadThemeEngine
|
||||
};
|
||||
}
|
||||
|
||||
public static function assetURL()
|
||||
{
|
||||
return function ($template, $context, $args, $source) {
|
||||
return $args;
|
||||
};
|
||||
}
|
||||
|
||||
private static function getFromBuffer($func)
|
||||
{
|
||||
ob_start();
|
||||
|
||||
@@ -600,6 +600,7 @@ class Site
|
||||
"json-access" => \ofc\RadThemeEngine::jsonAccess(),
|
||||
"flex" => \ofc\RadThemeEngine::processFlex(),
|
||||
"nl2br" => \ofc\RadThemeEngine::nl2br(),
|
||||
"assetURL" => \ofc\RadThemeEngine::assetURL(),
|
||||
];
|
||||
foreach ($helpers as $name => $callback) {
|
||||
$this->hb->addHelper($name, $callback);
|
||||
|
||||
Reference in New Issue
Block a user