Releases: Log1x/sage-directives
Releases · Log1x/sage-directives
v1.1.6
Change log
Bug fixes
- Allow the second parameter of
@setto accept a value containing commas (e.g. an array) (Fixes #28)
Enhancements
- Allow passing
rawas the second parameter of@imageto return an attachment URL (Fixes #24) - Add the
$limitparameter to theparsemethod to allow passing a limit toexplode()(#28) - Bump lock files
Documentation
- Add
@imageexample forraw
v1.1.5
v1.1.4
v1.1.3
v1.1.2
v1.1.1
Change log
Enhancements
- Added
Util::unwrap()which simply unwraps the passed string from the passed delimiter. - Added
Util::clean()to combine and clean malformed arrays formed from a parsed expressions. Util::toString()now accepts a second parameter$singlefor working with flattened or malformed arrays.
Bug fixes
- Fix passing an array as the third parameter to
@image
v1.1.0
Change log
Enhancements
- Added
@imagedirective which echos attachment images as well as ACF field images responsively usingwp_get_attachment_image(). - Added
Util::field()which if ACF is present, attempts to get and return a field value fromget_field(),get_sub_field(), orget_field($field, 'option')(in that order). - Added
Util::toString()which attempts to convert expressions such as arrays back to strings before passing them to Blade to avoid array to string exceptions after modifying arrays passed as a Blade expression. - Added
Util::wrap()which simply wraps the passed value in single quotes. - Added
Util::isArray()in a simple but effective attempt to detect when an expression is an array in a conditional outside of the compiled Blade scope. - Bump dependencies.
- Clean up
README.md. - Update
docs/installation.mdto match recent changes to theREADME. - Change
DiscoursetoSupportin the documentation header navigation. - Other small clean up.
Bug fixes
- Fix documentation styles with the new VuePress.
- Only pull the Google font weights we're actually using on the documentation.
v1.0.9
v1.0.8
v1.0.7
Changelog
Enhancements
- Add Sage 10 support 🎈
@suband@hassubcan now accept a third parameter for deeper nested arrays (e.g.@sub('images', 'sizes', 'thumbnail')). (Fixes #12)- New
@permalink,@category,@term,@role, and@endroledirectives.
Bug Fixes
- Change
get()to a protected function. - Fix a few typos in the docs. (Fixes #13)