From 206c704fd80f54c5df31e897aeecdd624d81591c Mon Sep 17 00:00:00 2001 From: dadolun95 Date: Mon, 2 Sep 2024 12:15:28 +0200 Subject: [PATCH] Add feature that allow user to add content types into Slide component (issue #384) --- .../Magento/PageBuilder/etc/adminhtml/di.xml | 5 ++ .../pagebuilder/content_type/slide.xml | 76 ++++++++++++++++++- .../ui_component/pagebuilder_slide_form.xml | 73 +++++++++++++++++- .../pagebuilder_slide_mobile_form.xml | 2 +- .../slide/appearance/container.svg | 11 +++ .../element/slider-dependent-visual-select.js | 46 +++++++++++ .../content-type/slide/container/master.html | 11 +++ .../content-type/slide/container/preview.html | 39 ++++++++++ .../content-type/slider/default/preview.html | 60 ++++++++------- 9 files changed, 291 insertions(+), 32 deletions(-) mode change 100755 => 100644 app/code/Magento/PageBuilder/view/adminhtml/ui_component/pagebuilder_slide_form.xml create mode 100644 app/code/Magento/PageBuilder/view/adminhtml/web/css/images/content-type/slide/appearance/container.svg create mode 100644 app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/slider-dependent-visual-select.js create mode 100644 app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/slide/container/master.html create mode 100644 app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/slide/container/preview.html diff --git a/app/code/Magento/PageBuilder/etc/adminhtml/di.xml b/app/code/Magento/PageBuilder/etc/adminhtml/di.xml index de248a19513..b548a564b56 100644 --- a/app/code/Magento/PageBuilder/etc/adminhtml/di.xml +++ b/app/code/Magento/PageBuilder/etc/adminhtml/di.xml @@ -432,6 +432,11 @@ Collage Right Magento_PageBuilder::css/images/content-type/slide/appearance/collage-right.svg + + container + Container + Magento_PageBuilder::css/images/content-type/slide/appearance/container.svg + diff --git a/app/code/Magento/PageBuilder/view/adminhtml/pagebuilder/content_type/slide.xml b/app/code/Magento/PageBuilder/view/adminhtml/pagebuilder/content_type/slide.xml index d7082cb3eda..e496d5aecd1 100644 --- a/app/code/Magento/PageBuilder/view/adminhtml/pagebuilder/content_type/slide.xml +++ b/app/code/Magento/PageBuilder/view/adminhtml/pagebuilder/content_type/slide.xml @@ -8,8 +8,9 @@ - + + + + + + +