From 0feb448308ce24c85f595116f041820eaef71a51 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Wed, 7 May 2025 11:19:57 -0700 Subject: [PATCH] WIP --- assets/arrow-circle.svg | 10 +++++++++ tpl/flex_multiblock_callout.tpl | 21 +++++++++++++++++++ .../rad-theme-engine/src/RadThemeEngine.php | 7 +++++++ .../rad-theme-engine/src/Site.php | 1 + 4 files changed, 39 insertions(+) create mode 100644 assets/arrow-circle.svg create mode 100644 tpl/flex_multiblock_callout.tpl diff --git a/assets/arrow-circle.svg b/assets/arrow-circle.svg new file mode 100644 index 0000000..ce34b32 --- /dev/null +++ b/assets/arrow-circle.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/tpl/flex_multiblock_callout.tpl b/tpl/flex_multiblock_callout.tpl new file mode 100644 index 0000000..e8112b1 --- /dev/null +++ b/tpl/flex_multiblock_callout.tpl @@ -0,0 +1,21 @@ +
+
+
+
+

{{ headline }}

+ {{{ intro_content }}} + +
 
+
+
+ {{#each}} +
+ {{#assetURL asdf}} + {{ headline }} + {{ description }} +
+ {{/each}} +
+
+
+
diff --git a/vendor/open-function-computers-llc/rad-theme-engine/src/RadThemeEngine.php b/vendor/open-function-computers-llc/rad-theme-engine/src/RadThemeEngine.php index ddb1422..8797467 100644 --- a/vendor/open-function-computers-llc/rad-theme-engine/src/RadThemeEngine.php +++ b/vendor/open-function-computers-llc/rad-theme-engine/src/RadThemeEngine.php @@ -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(); diff --git a/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php b/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php index d9bded8..89b74fe 100644 --- a/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php +++ b/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php @@ -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);