Skip to content

Releases: fabianmichael/kirby-template-attributes

2.3.2

29 Aug 11:46
8e03d1f

Choose a tag to compare

What's Changed

  • feat: add 'download' attribute to boolean attributes list by @cstmth in #8

New Contributors

  • @cstmth made their first contribution in #8

Full Changelog: 2.3.1...2.3.2

2.3.1: Merge pull request #7 from fabianmichael/develop

23 Nov 17:52
0efe145

Choose a tag to compare

Fixes:

  • Convert classes/styles value array to null instead of empty string

2.3.0

04 Jul 08:39
f1c87e0

Choose a tag to compare

What's Changed

  • attributes() now also takes a DOM attributes string and parses into an array

2.2.0

29 May 10:09
5f01021

Choose a tag to compare

Conditional values now also work for the style attribute:

<button <?= attributes([
    'role' => 'button',
    'style' => [
      'font-size: 2rem;' => ($size === 'large'),
    ],
]) ?>>
`

2.1.1

18 Mar 17:36
507a926

Choose a tag to compare

Use composer autoloader to load helpers.php to make this plugin compatible with static code analysis tools such as phpstan.

2.1.0

17 Mar 10:07
1b8bbd4

Choose a tag to compare

  • 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

28 Nov 10:50

Choose a tag to compare

  • Improve tests for empty attribute values
  • Require Kirby 4.0.0

1.3.0

29 Apr 10:16

Choose a tag to compare

Allow installation without using composer.

1.2.2

16 Mar 11:30
015cfae

Choose a tag to compare

Add ArrayAccess interface to Attributes class

1.2.0

21 Feb 08:49
d968cec

Choose a tag to compare

Update composer.json