Skip to content

Releases: fabianmichael/kirby-template-attributes

2.3.4

Choose a tag to compare

@fabianmichael fabianmichael released this 22 May 08:34
3496e1f
build: remove composer lock file from git

2.3.3

Choose a tag to compare

@fabianmichael fabianmichael released this 14 Mar 06:04
7fd2295

Just minor improvements in handling empty attribute values

2.3.2

Choose a tag to compare

@fabianmichael fabianmichael released this 29 Aug 11:46
8e03d1f

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

Choose a tag to compare

@fabianmichael fabianmichael released this 23 Nov 17:52
0efe145

Fixes:

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

2.3.0

Choose a tag to compare

@fabianmichael fabianmichael released this 04 Jul 08:39
f1c87e0

What's Changed

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

2.2.0

Choose a tag to compare

@fabianmichael fabianmichael released this 29 May 10:09
5f01021

Conditional values now also work for the style attribute:

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

2.1.1

Choose a tag to compare

@fabianmichael fabianmichael released this 18 Mar 17:36
507a926

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

2.1.0

Choose a tag to compare

@fabianmichael fabianmichael released this 17 Mar 10:07
1b8bbd4
  • 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

Choose a tag to compare

@fabianmichael fabianmichael released this 28 Nov 10:50
  • Improve tests for empty attribute values
  • Require Kirby 4.0.0

1.3.0

Choose a tag to compare

@fabianmichael fabianmichael released this 29 Apr 10:16

Allow installation without using composer.