Skip to content

Releases: dereuromark/cakephp-templating

0.2.13

18 Nov 13:00

Choose a tag to compare

Fixes

  • Allow title false for Icon rendering

Full Changelog: 0.2.12...0.2.13

0.2.12

13 Oct 10:06

Choose a tag to compare

Improvements

  • Simpler svgPath config: Set to true if it equals the path.

Full Changelog: 0.2.11...0.2.12

0.2.11

09 Oct 13:39
2c74d61

Choose a tag to compare

Improvements

  • SvgRender: Allow merging of custom attributes into existing ones by @josbeir in #6
  • Add support for svg inlining by @josbeir in #7

New Contributors

Full Changelog: 0.2.10...0.2.11

0.2.10

08 Oct 17:05
ed46339

Choose a tag to compare

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

08 Oct 11:01

Choose a tag to compare

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

07 May 16:02
d86385f

Choose a tag to compare

Improvements

  • Removed deprecation usage

0.2.7

03 Mar 17:54
bd73c8b

Choose a tag to compare

Improvements

  • Allow caching icon collections for performance in production mode.
  • Add Templating helper yesNo() convenience method.

0.2.6

22 Oct 20:49
6ea4eb2

Choose a tag to compare

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.

0.2.5

16 May 10:30

Choose a tag to compare

Fixes

Allow FA5 to also use alternative JSON metadata

Included commits: 0.2.4...0.2.5

0.2.4

09 Apr 00:03

Choose a tag to compare

Fixes

Small fixes

Included commits: 0.2.3...0.2.4