Skip to content

Releases: Log1x/sage-directives

v1.1.5

20 Nov 03:52
Compare
Choose a tag to compare

Change log

Enhancements

  • Add @notempty / @endnotempty (#27, @shanejones)
  • Bump dependencies
  • Remove unused $expression from @end directives
  • Fix linting for 3.5

v1.1.4

14 Nov 01:03
Compare
Choose a tag to compare

Change log

Bug fixes

  • Use Illuminate\Support\Str instead of str_

v1.1.3

25 Aug 19:28
Compare
Choose a tag to compare

Change log

Enhancements

  • Added @hasposts and @endhasposts directives.
  • Added @noposts and @endnoposts directives. (#18)

v1.1.2

07 Aug 17:50
Compare
Choose a tag to compare

Change log

Bug fixes

  • Use Collection::put() instead of Collection::replace() to maintain backwards compatibility.

v1.1.1

07 Aug 15:38
Compare
Choose a tag to compare

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 $single for working with flattened or malformed arrays.

Bug fixes

  • Fix passing an array as the third parameter to @image

v1.1.0

07 Aug 10:23
Compare
Choose a tag to compare

Change log

Enhancements

  • Added @image directive which echos attachment images as well as ACF field images responsively using wp_get_attachment_image().
  • Added Util::field() which if ACF is present, attempts to get and return a field value from get_field(), get_sub_field(), or get_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.md to match recent changes to the README.
  • Change Discourse to Support in 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

22 Jul 21:07
Compare
Choose a tag to compare

Change log

Enhancements

  • Add @action, @filter, @wphead, @wpfoot, and @bodyclass directives (#17)
  • Add linting to codebase
  • Update docs
  • Bump dependencies

Bug fixes

  • Fix possible issues when using double quotes instead of single quotes in certain directives

v1.0.8

03 May 10:18
Compare
Choose a tag to compare

Changelog

Enhancements

  • Use a better method of getting Sage 10's Blade compiler.

Bug Fixes

  • Remove an unused @asset implementation that clashes with Sage 10.

v1.0.7

29 Apr 16:01
2fd945b
Compare
Choose a tag to compare

Changelog

Enhancements

  • Add Sage 10 support 🎈
  • @sub and @hassub can now accept a third parameter for deeper nested arrays (e.g. @sub('images', 'sizes', 'thumbnail')). (Fixes #12)
  • New @permalink, @category, @term, @role, and @endrole directives.

Bug Fixes

  • Change get() to a protected function.
  • Fix a few typos in the docs. (Fixes #13)

v1.0.6

02 Mar 10:34
Compare
Choose a tag to compare

Changelog

Enhancements

Bug Fixes

  • Set ignore_sticky_posts to true when passing an array of post IDs/objects to @posts
  • Properly return the collection array when passing post IDs/objects to @posts