bnomei / kirby3-field-ecco
Kirby 3 Field Method to ecco strings based on boolval of Field
Fund package maintenance!
bnomei
Patreon
buymeacoff.ee/bnomei
paypal.me/bnomei
Installs: 176
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 0
Open Issues: 0
Type:kirby-plugin
Requires
- php: >=7.2.0
- getkirby/composer-installer: ^1.1
README
Kirby 3 Field Method to ecco strings based on boolval of Field.
Commercial Usage
Support open source!
This plugin is free but if you use it in a commercial project please consider to sponsor me or make a donation.
If my work helped you to make some cash it seems fair to me that I might get a little reward as well, right?
Be kind. Share a little. Thanks.
‐ Bruno
M | O | N | E | Y |
---|---|---|---|---|
Github sponsor | Patreon | Buy Me a Coffee | Paypal dontation | Hire me |
Installation
- unzip master.zip as folder
site/plugins/kirby3-field-ecco
or git submodule add https://github.com/bnomei/kirby3-field-ecco.git site/plugins/kirby3-field-ecco
orcomposer require bnomei/kirby3-field-ecco
Usage
in php code
echo $page->myBoolField()->ecco('Yes please. 👍', 'OMG NO! 👎');
or in blueprint template language
{{ page.myBoolField.ecco('Yes please. 👍', 'OMG NO! 👎') }}
Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
License
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.