klimasofa / inserttags
Replace some insert tags within contao
v1.1.2
2022-01-08 15:25 UTC
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.9
- symfony/config: ^4.4 || ^5.1
- symfony/dependency-injection: ^4.4 || ^5.1
- symfony/http-kernel: ^4.4 || ^5.1
Requires (Dev)
- contao/manager-plugin: ^2.0
- phpunit/phpunit: ^9.5
- symfony/phpunit-bridge: ^4.4 || ^5.1
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
This bundle provides some custom inserttags for klimasofa.
Currently, these inserttags are handled:
Inserttag | Replacement |
---|---|
{{CO2}} | CO2 |
{{current_age::*}} | Current age in years |
Example
{{current_age::2006-07-25}} will return 14 on 16 February 2021, and 15 on 6 November 2021.
The allowed date formats for the birthday are YYYY-MM-DD and DD.MM.YYYY. Both the day (DD) and month (MM) may omit the leading zero. So this is fine: {{current_age::1982-6-9}}.