Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(carousel): rename block and reorganise settings #1962

Merged
merged 18 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6405500
feat(homepage-articles): rename block and reorganise settings
thomasguillot Nov 8, 2024
08ff2e5
feat: rework content display to use buttongroup
thomasguillot Nov 12, 2024
6821c3d
Merge branch 'trunk' into update/reorganise-homepage-articles
thomasguillot Nov 12, 2024
91bac92
feat: update togglecontrol label, fix lint
thomasguillot Nov 12, 2024
643bf0c
feat: use buttongroup to control query type
thomasguillot Nov 12, 2024
4523658
feat: rework loop settings
thomasguillot Nov 12, 2024
ed2b9fa
feat: add help to type buttongroup, fix wp 6.7 fields
thomasguillot Nov 13, 2024
76a3e12
feat: remove panelrow from settings panel
thomasguillot Nov 13, 2024
af2a612
feat: reorganise featured image, post meta, and post statuses
thomasguillot Nov 13, 2024
fed28fe
Merge branch 'trunk' into update/reorganise-homepage-articles
thomasguillot Nov 13, 2024
aed918e
feat(carousel): rename block and reorganise settings
thomasguillot Nov 15, 2024
d5c4d24
Merge branch 'trunk' into update/reorganise-post-carousel
thomasguillot Nov 15, 2024
0b6a949
Merge branch 'trunk' into update/reorganise-post-carousel
dkoo Jan 23, 2025
21352ab
Merge branch 'trunk' into update/reorganise-post-carousel
dkoo Jan 31, 2025
3eade76
Merge trunk into update/reorganise-post-carousel
thomasguillot Feb 7, 2025
65a1b0d
feat(carousel): move name, attributes, and category to json file
thomasguillot Feb 7, 2025
4d9cc5c
feat(carousel): move panels around and rename them
thomasguillot Feb 7, 2025
206e238
Merge branch 'trunk' into update/reorganise-post-carousel
dkoo Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions src/blocks/carousel/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"name": "carousel",
"category": "newspack",
"apiVersion": 3,
"attributes": {
"className": {
"type": "string",
"default": ""
},
"imageFit": {
"type": "string",
"default": "cover"
},
"autoplay": {
"type": "boolean",
"default": false
},
"delay": {
"type": "number",
"default": 5
},
"postsToShow": {
"type": "integer",
"default": 3
},
"authors": {
"type": "array"
},
"categories": {
"type": "array"
},
"includeSubcategories": {
"type": "boolean",
"default": true
},
"tags": {
"type": "array"
},
"customTaxonomies": {
"type": "array"
},
"showDate": {
"type": "boolean",
"default": true
},
"showAuthor": {
"type": "boolean",
"default": true
},
"showAvatar": {
"type": "boolean",
"default": true
},
"showCaption": {
"type": "boolean",
"default": false
},
"showCredit": {
"type": "boolean",
"default": false
},
"showCategory": {
"type": "boolean",
"default": false
},
"showTitle": {
"type": "boolean",
"default": true
},
"postType": {
"type": "array",
"default": [ "post" ],
"items": {
"type": "string"
}
},
"specificMode": {
"type": "boolean",
"default": false
},
"specificPosts": {
"type": "array",
"default": [],
"items": {
"type": "integer"
}
},
"slidesPerView": {
"type": "number",
"default": 1
},
"hideControls": {
"type": "boolean",
"default": false
},
"aspectRatio": {
"type": "number",
"default": 0.75
},
"includedPostStatuses": {
"type": "array",
"default": [ "publish" ],
"items": {
"type": "string"
}
}
}
}
Loading