From bff3e1e352f56a00686e1ad56f8b66de97638420 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" Date: Sun, 11 Aug 2024 23:22:22 +0200 Subject: [PATCH] Added color class for boxes --- templates/partials/shortcodes/box.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/partials/shortcodes/box.html.twig b/templates/partials/shortcodes/box.html.twig index ff59168..3b0b427 100644 --- a/templates/partials/shortcodes/box.html.twig +++ b/templates/partials/shortcodes/box.html.twig @@ -1,4 +1,5 @@ {#{% set boxStyle = shortcode.getParameter('style', '') %}#} +{% set boxColor = shortcode.getParameter('color', 'primary') %} {% set boxHeading = shortcode.getParameter('heading', shortcode.getBbCode()) %} {% set boxLevel = shortcode.getParameter('level', '3') %} {% set boxImage = shortcode.getParameter('image', '') %} @@ -15,7 +16,7 @@ {% set pagePath = uri.route(true) %} {% set imagePath = pagePath ~ '/' ~ boxImage %} -
+
{% if boxImage %} {{ boxImageAlt }}