From 4d9cc5c16da05018c73f8abb14e18ad5a5ec923b Mon Sep 17 00:00:00 2001 From: Thomas Guillot Date: Fri, 7 Feb 2025 11:26:50 +0000 Subject: [PATCH] feat(carousel): move panels around and rename them --- src/blocks/carousel/edit.js | 66 ++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/blocks/carousel/edit.js b/src/blocks/carousel/edit.js index ecd664e40..39a891a31 100644 --- a/src/blocks/carousel/edit.js +++ b/src/blocks/carousel/edit.js @@ -361,7 +361,37 @@ class Edit extends Component { - + + { postsToShow && ( + + setAttributes( { postsToShow: value ? value : 1 } ) + } + authors={ authors } + onAuthorsChange={ value => setAttributes( { authors: value } ) } + categories={ categories } + onCategoriesChange={ value => setAttributes( { categories: value } ) } + includeSubcategories={ includeSubcategories } + onIncludeSubcategoriesChange={ value => + setAttributes( { includeSubcategories: value } ) + } + tags={ tags } + onTagsChange={ value => setAttributes( { tags: value } ) } + onCustomTaxonomiesChange={ value => setAttributes( { customTaxonomies: value } ) } + customTaxonomies={ customTaxonomies } + specificMode={ specificMode } + onSpecificModeChange={ () => setAttributes( { specificMode: true } ) } + onLoopModeChange={ () => setAttributes( { specificMode: false } ) } + specificPosts={ specificPosts } + onSpecificPostsChange={ _specificPosts => + setAttributes( { specificPosts: _specificPosts } ) + } + postType={ postType } + /> + ) } + + ) } - - { postsToShow && ( - - setAttributes( { postsToShow: value ? value : 1 } ) - } - authors={ authors } - onAuthorsChange={ value => setAttributes( { authors: value } ) } - categories={ categories } - onCategoriesChange={ value => setAttributes( { categories: value } ) } - includeSubcategories={ includeSubcategories } - onIncludeSubcategoriesChange={ value => - setAttributes( { includeSubcategories: value } ) - } - tags={ tags } - onTagsChange={ value => setAttributes( { tags: value } ) } - onCustomTaxonomiesChange={ value => setAttributes( { customTaxonomies: value } ) } - customTaxonomies={ customTaxonomies } - specificMode={ specificMode } - onSpecificModeChange={ () => setAttributes( { specificMode: true } ) } - onLoopModeChange={ () => setAttributes( { specificMode: false } ) } - specificPosts={ specificPosts } - onSpecificPostsChange={ _specificPosts => - setAttributes( { specificPosts: _specificPosts } ) - } - postType={ postType } - /> - ) } - - + setAttributes( { showCredit: ! showCredit } ) } /> - +