Icon plugin to present most popular icons sets in SVG format for Flextype.
This plugin currently contains 3 primary SVG icon sets:
/project/plugins/icon
/project/plugins/icon
Key | Value | Description |
---|---|---|
enabled | true | true or false to disable the plugin |
priority | 1 | Icon plugin priority |
Global function icon()
/**
* Get SVG icon from specific icons set.
*
* @param string|null $name Icon name.
* @param string|null $set Icon set:
* - tabler
* - bootstrap
* - fontawesome|brands,
* - fontawesome|regular
* - fontawesome|solid
* @param string|null $class CSS Class.
*
* @return string
*/
function icon(?string $name = null, ?string $set = 'fontawesome|solid', ?string $class = null): string
Display icon in the twig templates
{{ icon('apple', 'fontawesome|brands') }}
Display icon in the entry content
[icon name="apple" set="fontawesome|brands"]
Display icon in the php
echo icon('apple', 'fontawesome|brands');
Version
2.1.0
Lincense
MIT
Links
Categories
Feed plugin for Flextype supports Atom 1.0, RSS and JSON feed types and allows you to generate feeds for entries.
Form Admin Plugin to manage user forms in Flextype Admin Panel.
Accounts plugins for Flextype.
Estimated reading time plugin for Flextype.
Access Control List plugin for Flextype.
PHP Embed plugin allows you to embed php code into your page.