|
| 1 | +## v1.1.9 (02/19/2021) |
| 2 | + |
| 3 | +### Enhancements |
| 4 | + |
| 5 | +- feat(wordpress): Add `@__` translate directive (#38) |
| 6 | +- feat(wordpress): Add @wpbodyopen directive (#46) |
| 7 | +- chore(docs): Document @wpbodyopen directive |
| 8 | +- feat(acf): Add `@hasfields` and `@endhasfields` directives (#52) |
| 9 | +- chore(docs): Add @hasfields and @endhasfields to docs (#53) |
| 10 | +- enhance(package): Add `log1x/sage-directives/namespace` filter for overriding default namespace (#33) |
| 11 | +- feat(directives): Add `@hasoptions` & `@endhasoptions` (#54) |
| 12 | + |
| 13 | +### Bug fixes |
| 14 | + |
| 15 | +- fix(docs): Update legacy codex documentation links (#47) |
| 16 | +- fix(term-directive): Fix warnings for `@term` (#55) |
| 17 | + |
| 18 | +## v1.1.8 (03/31/2020) |
| 19 | + |
| 20 | +### Bug fixes |
| 21 | + |
| 22 | +- fix(hasposts): add missing closing tag (Fixes: #34) |
| 23 | + |
| 24 | +## v1.1.7 (02/20/2020) |
| 25 | + |
| 26 | +### Bug fixes |
| 27 | + |
| 28 | +- Fix `@thumbnail()` having `thumbnail` hardcoded as its image size when passed `false` as the second value. |
| 29 | + |
1 | 30 | ## v1.1.6 (12-02-2019) |
2 | 31 |
|
3 | 32 | ### Bug fixes |
| 33 | + |
4 | 34 | - Allow the second parameter of `@set` to accept a value containing commas (e.g. an array) (Fixes #28) |
5 | 35 |
|
6 | 36 | ### Enhancements |
| 37 | + |
7 | 38 | - Allow passing `raw` as the second parameter of `@image` to return an attachment URL (Fixes #24) |
8 | 39 | - Add the `$limit` parameter to the `parse` method to allow passing a limit to `explode()` (#28) |
9 | 40 | - Bump lock files |
10 | 41 |
|
11 | 42 | ### Documentation |
12 | | -- Add `@image` example for `raw` |
| 43 | + |
| 44 | +- Add `@image` example for `raw` |
13 | 45 |
|
14 | 46 | ## v1.1.5 (11-19-2019) |
15 | 47 |
|
16 | 48 | ### Enhancements |
| 49 | + |
17 | 50 | - Add `@notempty` / `@endnotempty` (#27, @shanejones) |
18 | 51 | - Bump dependencies |
19 | 52 | - Remove unused `$expression` from `@end` directives |
|
22 | 55 | ## v1.1.4 (11-13-2019) |
23 | 56 |
|
24 | 57 | ### Bug fixes |
| 58 | + |
25 | 59 | - Use `Illuminate\Support\Str` instead of `str_` |
26 | 60 |
|
27 | 61 | ## v1.1.3 (08-25-2019) |
28 | 62 |
|
29 | 63 | ### Enhancements |
| 64 | + |
30 | 65 | - Added `@hasposts` and `@endhasposts` directives. |
31 | 66 | - Added `@noposts` and `@endnoposts` directives. (#18) |
32 | 67 |
|
33 | 68 | ## v1.1.2 (08-07-2019) |
34 | 69 |
|
35 | 70 | ### Bug fixes |
| 71 | + |
36 | 72 | - Use `Collection::put()` instead of `Collection::replace()` to maintain backwards compatibility. |
37 | 73 |
|
38 | 74 | ## v1.1.1 (08-07-2019) |
39 | 75 |
|
40 | 76 | ### Enhancements |
| 77 | + |
41 | 78 | - Added `Util::unwrap()` which simply unwraps the passed string from the passed delimiter. |
42 | 79 | - Added `Util::clean()` to combine and clean malformed arrays formed from a parsed expressions. |
43 | 80 | - `Util::toString()` now accepts a second parameter `$single` for working with flattened or malformed arrays. |
44 | 81 |
|
45 | 82 | ### Bug fixes |
| 83 | + |
46 | 84 | - Fix passing an array as the third parameter to `@image` |
47 | 85 |
|
48 | 86 | ## v1.1.0 (08-07-2019) |
49 | 87 |
|
50 | 88 | ### Enhancements |
| 89 | + |
51 | 90 | - Added `@image` directive which echos attachment images as well as ACF field images responsively using `wp_get_attachment_image()` |
52 | 91 | - 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). |
53 | 92 | - 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. |
|
60 | 99 | - Other small clean up. |
61 | 100 |
|
62 | 101 | ### Bug fixes |
| 102 | + |
63 | 103 | - Fix documentation styles with the new VuePress. |
64 | 104 | - Only pull the Google font weights we're actually using on the documentation. |
65 | 105 |
|
66 | 106 | ## v1.0.9 (05-12-2019) |
67 | 107 |
|
68 | 108 | ### Enhancements |
| 109 | + |
69 | 110 | - Move docs from DocPress to VuePress (woo-hoo search!) |
70 | 111 | - Add CHANGELOG.md |
71 | 112 | - Clean up `package.json` |
72 | 113 | - Clean up `.gitignore` and `.gitattributes` |
73 | 114 |
|
74 | 115 | ### Bug Fixes |
| 116 | + |
75 | 117 | - Fix various typo's within the documentation. |
76 | 118 |
|
77 | 119 | ## v1.0.8 (05-03-2019) |
78 | 120 |
|
79 | 121 | ### Enhancements |
| 122 | + |
80 | 123 | - Use a better method of getting Sage 10's Blade compiler. |
81 | 124 |
|
82 | 125 | ### Bug Fixes |
| 126 | + |
83 | 127 | - Remove an unused `@asset` implementation that clashes with Sage 10. |
84 | 128 |
|
85 | 129 | ## v1.0.7 (04-30-2019) |
86 | 130 |
|
87 | 131 | ### Enhancements |
88 | | -- Add Sage 10 support 🎈 |
| 132 | + |
| 133 | +- Add Sage 10 support 🎈 |
89 | 134 | - `@sub` and `@hassub` can now accept a third parameter for deeper nested arrays (e.g. `@sub('images', 'sizes', 'thumbnail')`). (Fixes #12) |
90 | 135 | - New `@permalink`, `@categories`, `@category`, `@term`, `@role`, and `@endrole` directives. |
91 | 136 |
|
92 | 137 | ### Bug Fixes |
| 138 | + |
93 | 139 | - Change `get()` to a protected function. |
94 | 140 | - Fix a few typos in the docs. (Fixes #13) |
95 | 141 |
|
96 | 142 | ## v1.0.6 (03-02-2019) |
97 | 143 |
|
98 | 144 | ### Enhancements |
| 145 | + |
99 | 146 | - Change namespace to `Log1x\SageDirectives` |
100 | 147 | - The project README was getting a little insane with the amount of Directives currently in the project. They now have a new home: https://log1x.github.io/sage-directives-docs/ |
101 | 148 |
|
102 | 149 | ### Bug Fixes |
| 150 | + |
103 | 151 | - Set `ignore_sticky_posts` to `true` when passing an array of post IDs/objects to `@posts` |
104 | 152 | - Properly return the collection array when passing post IDs/objects to `@posts` |
105 | 153 |
|
106 | 154 | ## v1.0.5 (02-13-2019) |
107 | 155 |
|
108 | 156 | ### Bug Fixes |
| 157 | + |
109 | 158 | - Change `is_number()` to `is_numeric()` (oops) |
110 | 159 | - Fix `@published` typo on README |
111 | 160 |
|
112 | 161 | ## v1.0.4 (02-11-2019) |
113 | 162 |
|
114 | 163 | ### Features |
| 164 | + |
115 | 165 | - Added 12+ new helper directives: `@istrue`, `@isfalse`, `@isnull`, `@isnotnull`, `@instanceof`, `@typeof`, `@repeat`, `@style`, `@script`, `@js`, `@inline`, `@fa` |
116 | 166 | - Added 6 new WordPress directives: `@author`, `@authorurl`, `@published`, `@modified`, `@wpautop`, `@wpautokp` |
117 | 167 | - Refactored `@posts` allowing it to accept post ID's, `WP_Post` instances, or an array with a combination of the two (#8) |
118 | 168 | - Refactored source code DocBlocks and formatting of directives |
119 | 169 | - Improved formatting and examples for documentation |
120 | 170 |
|
121 | 171 | ### Bug Fixes |
| 172 | + |
122 | 173 | - Fix missing closing parenthesis in fields directive (#7) |
123 | 174 | - Added missing parameters to allow passing an array key to `@isfield`, `@issub`, and `@isoption` |
124 | 175 |
|
125 | 176 | ### Breaking Change |
| 177 | + |
126 | 178 | - `@condition` has been replaced with `@istrue` / `@isfalse` |
127 | 179 |
|
128 | 180 | ## v1.0.3 (01-30-2019) |
129 | 181 |
|
130 | 182 | ### Bug Fixes |
| 183 | + |
131 | 184 | - Add a `function_exists()` check for `add_action()` to prevent issues in scenarios where WordPress core is not loaded (e.g. Composer). |
132 | 185 |
|
133 | 186 | ## v1.0.2 (12-07-2018) |
134 | 187 |
|
135 | 188 | ### Features |
| 189 | + |
136 | 190 | - Add usage documentation with examples. |
137 | 191 | - Allow `@posts` to accept a custom WP_Query instance as a variable as well as return the main loop if `$query` is undefined and no variable is passed. (Thanks to @mmirus on #1) |
138 | 192 | - Add `@title`, `@content`, and `@excerpt` WordPress directives. |
139 | 193 | - Allow `@option` to accept a second parameter to return a value in an array. |
140 | 194 |
|
141 | 195 | ### Enhancements |
| 196 | + |
142 | 197 | - Clean up `@sub`, `@hassub`, and `@issub` (were mistakenly accepting unusable param's originally from `@field`). |
143 | 198 | - Clean up `@condition` syntax to be more uniform with the other directives. |
144 | 199 |
|
145 | 200 | ### Bug Fixes |
| 201 | + |
146 | 202 | - Add missing `@isoption` directive. |
147 | 203 | - Fix `@options` param typo. |
148 | 204 |
|
149 | 205 | ## v1.0.1 (10-29-2018) |
150 | 206 |
|
151 | 207 | ### Enhancements |
| 208 | + |
152 | 209 | - Rewrite utility methods making use of `collect()` and allowing easier argument splitting. |
153 | 210 | - Refactor directives using new utility methods as well as allowing additional arguments to be passed for ACF directives such as post ID. |
154 | 211 | - Make directive source code more readable. |
|
0 commit comments