Skip to content

Commit aded4fd

Browse files
committed
Add the {icon} plugin to the list of template plugins
See #340
1 parent 69f2624 commit aded4fd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/view/template-plugins.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,23 @@ Like `foreach`, `hascontent` also supports an `else` part:
379379
All additional attributes are added as attributes of the `select` HTML element.
380380

381381

382+
## `{icon}`
383+
384+
`{icon}` renders a “Font Awesome” icon with support for brand icons.
385+
386+
```smarty
387+
{icon name='magnifying-glass'}
388+
{icon size=24 name='github' type='brand'}
389+
{icon size=32 name='user' type='solid'}
390+
{icon size=64 name='bell'}
391+
```
392+
393+
| Attribute | Description |
394+
|-----------|-------------|
395+
| `size` | the size of the icon, possible values are `16`, `24`, `32`, `48`, `64`, `96`, `128` and `144`; defaults to `16` |
396+
| `type` | requests the least “thick” icon when omitted, the solid variant with `'solid'` and a brand icon with `'brand'` |
397+
398+
382399
## `{implode}`
383400

384401
`implodes` transforms an array into a string and prints it.

0 commit comments

Comments
 (0)