Releases: fabianmichael/kirby-template-attributes
Releases · fabianmichael/kirby-template-attributes
2.3.1: Merge pull request #7 from fabianmichael/develop
Fixes:
- Convert classes/styles value array to null instead of empty string
2.3.0
What's Changed
attributes()
now also takes a DOM attributes string and parses into an array
2.2.0
Conditional values now also work for the style
attribute:
<button <?= attributes([
'role' => 'button',
'style' => [
'font-size: 2rem;' => ($size === 'large'),
],
]) ?>>
`
2.1.1
Use composer autoloader to load helpers.php to make this plugin compatible with static code analysis tools such as phpstan.
2.1.0
- Bump Kirby dependency to 4.1.0, fix tests
- Add phpcs and basic config as dev dependency
- 💥 Breaking change: Remove
__invoke()
magic method, because it would probably only cause confusion in practive.
2.0.0
- Improve tests for empty attribute values
- Require Kirby 4.0.0
1.3.0
Allow installation without using composer.
1.2.2
Add ArrayAccess interface to Attributes class
1.2.0
Update composer.json