From d4135bc33a33f674706f76b9bd5a2b9bea710139 Mon Sep 17 00:00:00 2001 From: Sonny Le Date: Mon, 22 Jul 2024 12:49:32 +0700 Subject: [PATCH] Add verticle align middle to Grid Widget --- framework/elements/grid/grid.php | 3 ++- framework/elements/grid/grid.xml | 1 + language/en-GB/en-GB.astroid.ini | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/elements/grid/grid.php b/framework/elements/grid/grid.php index c8bbda16..14ae35f4 100644 --- a/framework/elements/grid/grid.php +++ b/framework/elements/grid/grid.php @@ -106,6 +106,7 @@ $min_height = $params->get('min_height', 0); $overlay_type = $params->get('overlay_type', ''); $enable_grid_match = $params->get('enable_grid_match', 0); +$vertical_middle = $params->get('vertical_middle', 0); $box_shadow = $params->get('card_box_shadow', ''); $box_shadow = $box_shadow ? ' ' . $box_shadow : ''; @@ -180,7 +181,7 @@ echo '
'; if ($media_position == 'left' || $media_position == 'right') { - echo '
'; + echo '
'; echo '
'; } if ($media_position != 'inside') { diff --git a/framework/elements/grid/grid.xml b/framework/elements/grid/grid.xml index d2055708..afb62a08 100644 --- a/framework/elements/grid/grid.xml +++ b/framework/elements/grid/grid.xml @@ -343,6 +343,7 @@ + diff --git a/language/en-GB/en-GB.astroid.ini b/language/en-GB/en-GB.astroid.ini index 7d3fcb6b..384c4864 100644 --- a/language/en-GB/en-GB.astroid.ini +++ b/language/en-GB/en-GB.astroid.ini @@ -1400,6 +1400,7 @@ ASTROID_WIDGET_META_POSITION_LABEL="Meta Position" ASTROID_BEFORE_TITLE="Before Title" ASTROID_AFTER_TITLE="After Title" ASTROID_WIDGET_ENABLE_GRID_MATCH="Enable Grid Match" +ASTROID_WIDGET_VERTICAL_MIDDLE="Vertical Align Middle" ; Video Button ASTROID_WIDGET_VIDEO_BUTTON_LABEL="Video Button"