hana+nils hana+nils

Attributes Helper

Helper for Kirby to build attributes based on conditions, like conditionally adding classes to an element

Manual

Download

… and extract the folder to site/plugins/attrs-helper

Composer

Git Submodule

<p
    <?= attrs([
        'id' => 'introduction',
        'class' => 'highlighted'
    ])?>
>
    An introductory paragraph.
</p>
Version
2.0.3
License
Other
Stars
6
Created
5 Oct 2022
Implements
Kirby support
More