-
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
Enable captions on Gallery shortcodes #3659
Merged
Merged
Changes from 6 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
1b34cef
Enable captions on Gallery shortcodes
kienstra dde1e46
Rename a $images to $images_and_captions for clarity
kienstra a48d974
Address a PHPCS issue with array destructuring
kienstra 5c7334b
Rename get_carousel_dimensions() to get_dimensions()
kienstra 641e008
Make the $dom property protected, improve a DocBlock
kienstra cbd925b
Add the parameter name to the @param tag
kienstra 5e07516
Fix a typo in 'associative'
kienstra 93246e8
Use <amp-lightbox-gallery> for lightboxes
kienstra 08404be
Exit if ! $images, before running count( $images )
kienstra 0caa844
Merge branch 'develop' into add/gallery-shortcode-captions
kienstra 2c32f41
Merge branch 'develop' into add/gallery-shortcode-captions
kienstra 22ae686
Merge branch 'develop' of github.com:ampproject/amp-wp into add/galle…
westonruter 82b428a
Change @since tag from 1.4.1 to 1.5.0
kienstra d3ba063
Commit Alain's classes to represent and collect images
kienstra 93aa3ea
Account for 0.0 or 0 width or height in dimensions function
kienstra 6ba9bdb
Fix phpcs issues that caused a failed Travis build
kienstra 2ed1653
Update return tag, as it no longer returns null
kienstra 5794193
Move the image list classes to an AMP namespace in amp/
kienstra 78b0c75
Might revert: try adding composer dump-autoload to .travis.yml
kienstra 3125261
Add use statements to the top of some files
kienstra 67c7590
Revert edit to .travis.yml, try another approach
kienstra 692d14b
Move the AMP_Carousel class to the AMP namespace
kienstra 8eb54a8
Add internal tag to class Carousel, move tags up in other classes
kienstra 07cfc97
Align param tag descriptions, pass '' instead of null
kienstra c0a5e05
Merge branch 'develop' into add/gallery-shortcode-captions
kienstra 7e206ef
Move new classes to src/component directory, per discussion
kienstra 3f0ee52
Import classes, preventing need for the \ operator
kienstra 2b4a98f
In Carousel, accept Image_List in constructor
kienstra 284b328
Remove parameter from Carousel::get_dimensions()
kienstra d7fdbd2
Change directory to Component, make classes PascalCase
kienstra be2b4e2
Correct covers and var tags
kienstra 12c6d26
Remove the Image class, and simply use a DOMElement
kienstra 951cd3f
Add a rule to enforce PascalCase file names in src/*
kienstra 12f062e
Merge branch 'develop' into add/gallery-shortcode-captions
kienstra 92a764e
Rename ImageList to DOMElementList
kienstra 7b603ea
Commit Weston's suggestion to change the package to Amp\AmpWP
kienstra 305e471
Change other package names
kienstra 8de2340
Revert cloning at least for now, remove test for immutability
kienstra 3cdd86f
Clone the DOMElementList in add(), and return the clone
kienstra 097d1b8
Update the DocBlock of DOMElementList::add()
kienstra 873c41a
Edit DocBlocks, include correcting var tag
kienstra 38df209
Make $elements propert private again
kienstra f48d09b
Commit Alain's suggestion to make the Carousel class final
kienstra 5a8749c
Update src/Component/Carousel.php
kienstra 0355530
Commit Alain's suggestion to make `$images` private
kienstra 450f9cd
In Carousel, rename $images to $slides
kienstra 0ae904e
Also rename images to slides in Test_Carousel
kienstra 4ac1d25
Remove optimize-autoloader from composer.json config, will apply this…
kienstra 478f71e
Make get_dimensions() private instead of public
kienstra c7d5d6e
Add the -o flag to composer install for production build processes
kienstra 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
Oops, something went wrong.
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.
There's no intended change to the Gallery block, only a refactoring of this logic into the class
AMP_Carousel
.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.
(Now it's
AMP\Carousel
)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.
Now, it's
Amp\AmpWp\Component\Carousel
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.
Actually, it's
Amp\AmpWP
(capital_P_dangit? 😄)For what it's worth, I do like
AmpWP
more thanAmpWp
.