-
Notifications
You must be signed in to change notification settings - Fork 385
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
[Gutenberg] Add AMP Carousel for Gallery and AMP Lightbox features for Gallery and Image #1121
Merged
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
52943ed
Start adding carousel toggle for Gallery.
miina fd662d7
Merge #1008.
miina 54f9555
Add amp-carousel class.
miina ed1f9de
Filter saving the post for when AMP Plugin gets disabled. Add tests.
miina 0263878
Add lightbox logic for Image block.
miina 40486fe
Add lightbox for gallery block.
miina 96bd515
Fix CSS.
miina 553c4da
Merge develop.
miina 22060ec
Add block-related JS with blocks filter instead of admin filter.
miina 5b63476
Fix issue with assigning props directly.
miina 2e102ea
Add lightbox to gallery shortcode block.
miina c3aad13
Merge remote-tracking branch 'origin/develop' into add/amp-carousel-t…
miina dd924ec
Merge #1026
miina ca133a4
Adjust logic to using data- attributes.
miina 22597fa
Fixes. Merge #1008
miina b70af66
Update method comments. Remove unused dynamicBlocks data.
miina 438567d
Merge branch 'develop' of https://github.com/Automattic/amp-wp into a…
westonruter 7ee5fd3
Merge branch 'develop' into add/amp-carousel-toggle
westonruter 58430e4
Merge develop & resolve conflicts.
miina 55e8fff
Resolve conflicts.
miina f658c43
Merge remote-tracking branch 'origin/develop' into add/amp-carousel-t…
miina 6900e2b
Fixes.
miina a69dd55
Merge develop & resolve conflicts.
miina ff2cdd2
Merge develop.
miina d5169ef
Fixes after merge.
miina 13267f6
Fix displaying AMP carousel.
miina 134335e
Fix checking for shortcode.
miina 26c491e
Fix jscs.
miina 46c3a50
Merge branch 'develop' of https://github.com/Automattic/amp-wp into a…
westonruter 201654f
Fix AMP carousel for gallery block.
westonruter f9f3a05
Pass through all attributes from img to amp-img
westonruter cc53173
Force carousels to be used when AMP theme support is absent (for back…
westonruter dbe281c
Remove apparently unneessary object-fit from amp-image-lightbox; remo…
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@westonruter
for ( $j = $num_images - 1; $j >= 0; $j-- ) {
was used here since when looping directly through the nodes (foreach ( $images as $image ) {
) it's not working as expected, for example when adding a gallery with 5 images locally and using AMP Carousel it will just display the first three in the gallery. That's happening when testing locally now as well, is it working as expected for you?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.
@miina you're absolutely right. I broke it.
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.
PR to fix opened in #1187.