diff --git a/blocks/class-blockstrap-widget-modal.php b/blocks/class-blockstrap-widget-modal.php index 2a82ae6..4a8f48f 100644 --- a/blocks/class-blockstrap-widget-modal.php +++ b/blocks/class-blockstrap-widget-modal.php @@ -491,6 +491,12 @@ public function output($args=[], $widget_args=[], $content='') global $bs_modal_content,$bs_modal_header_count; if ($bs_modal_header_count) { foreach ($bs_modal_content as $content) { + $content = do_shortcode( $content ); + + if (function_exists('do_blocks')) { + $content = do_blocks( $content ); + } + echo $content; } $bs_modal_header_count = 0; // reset the diff --git a/blocks/class-blockstrap-widget-offcanvas.php b/blocks/class-blockstrap-widget-offcanvas.php index 4c2d81f..8c254af 100644 --- a/blocks/class-blockstrap-widget-offcanvas.php +++ b/blocks/class-blockstrap-widget-offcanvas.php @@ -503,11 +503,17 @@ public function output($args=[], $widget_args=[], $content='') global $bs_offcanvas_content,$bs_offcanvas_header_count; if ($bs_offcanvas_header_count) { foreach ($bs_offcanvas_content as $content) { + $content = do_shortcode( $content ); + + if (function_exists('do_blocks')) { + $content = do_blocks( $content ); + } + echo $content; } $bs_offcanvas_header_count = 0; // reset the } - }); + }, 1); $bs_offcanvas_header_count++; diff --git a/blockstrap-page-builder-blocks.php b/blockstrap-page-builder-blocks.php index e3ab3ab..d32b373 100644 --- a/blockstrap-page-builder-blocks.php +++ b/blockstrap-page-builder-blocks.php @@ -11,7 +11,7 @@ * Plugin Name: BlockStrap Page Builder Blocks * Plugin URI: https://ayecode.io/ * Description: BlockStrap - A FSE page builder for WordPress - * Version: 0.1.18 + * Version: 0.1.19 * Author: AyeCode * Author URI: https://ayecode.io * Text Domain: blockstrap-page-builder-blocks @@ -21,7 +21,7 @@ */ -define('BLOCKSTRAP_BLOCKS_VERSION', '0.1.18'); +define('BLOCKSTRAP_BLOCKS_VERSION', '0.1.19'); /** * The BlockStrap Class diff --git a/readme.txt b/readme.txt index 1590a96..3692885 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://ayecode.io Tags: page builder, bootstrap, blocks, builder, design Requires at least: 6.0 Tested up to: 6.5 -Stable tag: 0.1.18 +Stable tag: 0.1.19 Requires PHP: 7.2 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -176,10 +176,11 @@ Automatic updates should work seamlessly. We always suggest you backup your webs == Changelog == -= 0.1.18 = += 0.1.19 = * BS > Offcanvas block added for creating Offcanvas items - ADDED * Accordion block not setting parent ID which could break some advanced features - FIXED * Gallery block not setting uploaded images alt tag - FIXED +* Modal and Offcanvas in footer not rendering shortcodes - FIXED = 0.1.17 = * BS > Modal block added for creating popups - ADDED