diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index dce8b8f0..4e6b5e24 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -56,8 +56,28 @@ CARD; } + $hasGlobalParameter = array_key_exists("global", $bridgeElement->parameters); + if($hasGlobalParameter) { + $globalParameters = json_decode($bridgeElement->parameters['global'], true); + } + foreach($bridgeElement->parameters as $parameterName => $parameter) { + + $parameter = json_decode($parameter, true); + + if(!is_numeric($parameterName) && $parameterName == "global") { + + continue; + + } + + if($hasGlobalParameter) { + + $parameter = array_merge($parameter, $globalParameters); + + } + if(!is_numeric($parameterName)) { $card .= '