waughj / wp-upload-picture
Class for autogenerating picture tag HTML for WordPress media image with just the ID.
v0.5.3
2019-06-04 20:17 UTC
Requires
- php: >=7.0
- waughj/html-picture: >=0.7.2
- waughj/test-hash-item: >=2.0.0
- waughj/wp-get-image-sizes: *
- waughj/wp-upload-image: >=0.5.2
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Class for autogenerating picture tag HTML for WordPress media image with just the ID. Works just like WPUploadImage, but without the need for giving a $sizes string ( since the whole point o’ a picture tag is to be responsive ) & creates an HTMLPicture object ’stead o’ just an HTMLImage object.
Error handling works just as it does for WPUploadImage. Look up its documentation for mo’ information.
Changelog
0.5.0
- Implement WPUploadImage's WPMissingMediaIDException Error Handling
0.4.0
- Update Error Handling
0.3.0
- Add Ability to Easily Cancel Showing Versioning
0.2.0
- Make Compatible with New HTMLPicture Interface
0.1.0
- Initial Release