Releases: dereuromark/cakephp-templating
0.2.13
0.2.12
Improvements
- Simpler
svgPathconfig: Set totrueif it equals thepath.
Full Changelog: 0.2.11...0.2.12
0.2.11
0.2.10
Improvements
- Added Lucide and Heroicons icon sets (incl SVG)
- Added support for SVG for all types (latest versions)
- Added cache layer as optional feature when using SVG
- Added SVG map support (single file to read and cache per icon set)
Full Changelog: 0.2.9...0.2.10
0.2.9
Improvements
- Added SVG support for BS font icons
'Icon' => [
'sets' => [
'bs' => [
'class' => \Templating\View\Icon\BootstrapIcon::class,
'svgPath' => WWW_ROOT . 'css/bootstrap-icons/icons/',
],
...
],
],When svgPath is configured, the icon will be rendered as an inline SVG element loaded from the configured directory.
Full Changelog: 0.2.8...0.2.9
0.2.8
Improvements
- Removed deprecation usage
0.2.7
Improvements
- Allow caching icon collections for performance in production mode.
- Add Templating helper
yesNo()convenience method.
0.2.6
Improvements
Backend added
If routes are enabled, you should be able to navigate to
/admin/templating/icons
and see all your custom (mapped) icons, as well as the icons available.
You can also check the full icon sets available (namespaced ones).
It can also show you possible conflicts (same icon in different sets, here the defined order matters).
For conflicting ones you can use aliasing through the map - or directly use the verbose set:name syntax where the "other one" is needed.
Icon::render()
Aliasing now works by default for all icons that are not conflicting. On conflicts it will use the first one defined in your config.
The order now is as follows:
- map (custom aliasing)
- primary set
- other sets
See the new backend for details.
It also now allows custom title attribute key via titleField in options, and uses BC title option from previous icon helper functionality (with deprecation note). You should be using arguments (3rd param) for title.