From: soufiane Date: Mon, 5 May 2025 07:51:43 +0000 (+0200) Subject: Merge remote-tracking branch 'origin/master' X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=81cd7d379c44143abeda1bee54940b8276a0276e;p=miranui.git Merge remote-tracking branch 'origin/master' # Conflicts: # wp-content/mu-plugins/cube/Widgets/BannerText.php # wp-content/themes/miranui_new/resources/css/common.scss # wp-content/themes/miranui_new/resources/css/header.scss # wp-content/themes/miranui_new/resources/css/variables.scss --- 81cd7d379c44143abeda1bee54940b8276a0276e diff --cc wp-content/mu-plugins/cube/Widgets/BannerText.php index 2774b85,b2000c5..0fc87d8 --- a/wp-content/mu-plugins/cube/Widgets/BannerText.php +++ b/wp-content/mu-plugins/cube/Widgets/BannerText.php @@@ -88,44 -87,44 +88,85 @@@ class BannerText extends _Base $attributes = $this->get_render_attributes(); // Rendered content ++<<<<<<< HEAD + echo view("widgets/bannerText", compact("settings", "attributes")); + } + + protected function backboneTemplate(){ ?> + <# + size_classes = { + 'xlarge': 'text-xl', + 'large': 'text-lg', + }; + + view.addRenderAttribute( + 'title', + { + 'class': [ 'text-block-title font-bold text-xl', size_classes[settings.text_size] ] + } + ); + view.addRenderAttribute( 'subtitle', 'class', ['text-block-subtitle font-bold text-md']); + view.addRenderAttribute( 'body', 'class', ['text-block-body']); + + view.addInlineEditingAttributes( 'title', 'none' ); + view.addInlineEditingAttributes( 'subtitle', 'none' ); + view.addInlineEditingAttributes( 'body', 'none' ); + #> +
+ + <# if ('' !== settings.title) { #> + <{{{ settings.title_tag }}} {{{ view.getRenderAttributeString( 'title' ) }}}>{{{ settings.title }}} + <# } #> + + <# if ('' !== settings.subtitle) { #> + <{{{ settings.subtitle_tag }}} {{{ view.getRenderAttributeString( 'subtitle' ) }}}>{{{ settings.subtitle }}} + <# } #> + + <# if ('' !== settings.body) { #> +
{{{ settings.body }}}
+ <# } #> + +
++======= + echo view("widgets/banner", compact("settings", "attributes")); + } + + protected function backboneTemplate(){ ?> + <# + size_classes = { + 'xlarge': 'text-xl', + 'large': 'text-lg', + }; + + view.addRenderAttribute( + 'title', + { + 'class': [ 'text-block-title font-bold text-xl', size_classes[settings.text_size] ] + } + ); + view.addRenderAttribute( 'subtitle', 'class', ['text-block-subtitle font-bold text-md']); + view.addRenderAttribute( 'body', 'class', ['text-block-body']); + + view.addInlineEditingAttributes( 'title', 'none' ); + view.addInlineEditingAttributes( 'subtitle', 'none' ); + view.addInlineEditingAttributes( 'body', 'none' ); + #> +
+ + <# if ('' !== settings.title) { #> + <{{{ settings.title_tag }}} {{{ view.getRenderAttributeString( 'title' ) }}}>{{{ settings.title }}} + <# } #> + + <# if ('' !== settings.subtitle) { #> + <{{{ settings.subtitle_tag }}} {{{ view.getRenderAttributeString( 'subtitle' ) }}}>{{{ settings.subtitle }}} + <# } #> + + <# if ('' !== settings.body) { #> +
{{{ settings.body }}}
+ <# } #> + +
++>>>>>>> origin/master