-
Notifications
You must be signed in to change notification settings - Fork 43
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
Carousel: handle posts without featured images #731
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good overall, just a couple of minor UI requests below.
@@ -66,28 +63,30 @@ function newspack_blocks_render_block_carousel( $attributes ) { | |||
while ( $article_query->have_posts() ) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 9660922
src/blocks/carousel/edit.js
Outdated
className="swiper-pagination-bullets amp-pagination" | ||
ref={ this.paginationRef } | ||
/> | ||
{ ! hasNoPosts && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also not render the next/previous UI (buttons and bullets) if there's only one post, both here and on the front-end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in c439d60
# Conflicts: # includes/class-newspack-blocks-api.php # src/blocks/carousel/edit.js # src/blocks/carousel/view.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now, thanks for the updates!
🎉 This PR is included in version 1.23.0-alpha.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [1.23.0](v1.22.1...v1.23.0) (2021-04-06) ### Features * add new patterns for donation and subscribe ([#730](#730)) ([a00cfd6](a00cfd6)) * deduplication across homepage posts & carousel ([#725](#725)) ([427c4e0](427c4e0)), closes [#664](#664) * handle posts with no featured image ([#731](#731)) ([0db34be](0db34be)), closes [#443](#443)
🎉 This PR is included in version 1.23.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Closes #443
How to test the changes in this Pull Request:
Other information: