Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fieldmethod #1

Open
bnomei opened this issue Sep 25, 2018 · 0 comments
Open

fieldmethod #1

bnomei opened this issue Sep 25, 2018 · 0 comments

Comments

@bnomei
Copy link

bnomei commented Sep 25, 2018

maybe a fieldmethod would be nice or any other way to call the lib without using an extra kirbytext()-call.
sure one could simply call the class omz13\Badges::runTagsBadge( $tag ) but then i would prefer omz13\Badges::badge( $array ).

echo $myfield->value(); 
// string 'key[, value[, style]]'
// or from a yaml array ['key'=>'',...]
$myfield->badge(); // just like tag
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant