Download the PHP package netzmacht/contao-font-awesome-inserttag without Composer
On this page you can find all versions of the php package netzmacht/contao-font-awesome-inserttag. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netzmacht/contao-font-awesome-inserttag
More information about netzmacht/contao-font-awesome-inserttag
Files in netzmacht/contao-font-awesome-inserttag
Package contao-font-awesome-inserttag
Short Description Provides an insert tag for using font awesome icons.
License LGPL-3.0-or-later
Informations about the package contao-font-awesome-inserttag
Font Awesome InsertTag
This extension provides two insert tags for creating font awesome icons in Contao CMS.
Features
Font Awesome Inserttag supports FontAwesome 4 and FontAwesome 5 as well.
Icon Insert Tags
There are a couple of insert tags for icon generation. For Font Awesome 4 there is the previously known fa
insert tag.
To support the styles introduced in Font Awesome 5 there a specific insert tags the styles fas
, far
, fal
, fab
.
Following options are supported:
-
All values after the first double column get prefixed with
fa-
Prefix:{{fa::phone}}
-
Multiple values are supported:
{{fa::phone 4x muted}}
-
Additional values could be passed as second param devided by a colon:
{{fa::phone 4x muted:pull-left custom}}
The former syntax with a double colon "::" between two params is deprecated but still supported.
It works the same with the new short codes provided by Font Awesome 5. If you're migrating from Font Awesome 4 to 5 and
have some old insert tags you may have a look at the provided configuration option default_style
.
Insert Tag "fa-stack"
The second insert tag support the icon stack feature of font awesome. All features described above are supported for every icon. Furthermore the icon stack wrapper itself can be adjusted by classes:
{fa-stack::square:first-icon::plus:secon-icon::lg:custom-stack}
To support the styles introduced in Font Awesome 5 there a specific insert tags the styles fas-stack
, far-stack
, fal-stack
, fab-stack
.
Requirements
Version 2 is designed for Contao 4.4 and above. It can be installed by using the managed edition of Contao.
If you want to add the bundle yourself just add Netzmacht\Contao\FontAwesomeInsertTag\NetzmachtFontAwesomeInsertTagBundle
to your app kernel.
Configuration
You can override the templates being used for the icon or icon-stack in your config.yml. The default configuration is:
If you migrate from Font Awesome 4 to 5 you might want to set the default style to far
or fas
.
All versions of contao-font-awesome-inserttag with dependencies
contao/core-bundle Version ^4.9 || ^5.0
symfony/config Version ^4.4 || ^5.0 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0
symfony/http-kernel Version ^4.4.13 || ^5.1.5 || ^6.0