/cong/_icons.php defines the generic icons that are made available to the whole application (including all skins and plugins).
In recent versions of b2evolution the icons refer to a glyph in an icon font. The preferred icon font is Font Awesome. The correct icon name ro use in that font is defined by
Alternatively we have also defined icons in the Glyph Icons font used by bootstrap. The correct icon name to use in that font is defined by
In previous versions, and as a fallback for old skins, the icons are also available as graphics in a sprite image. So each icon is also defined by it’s x-y coordinates on the sprite and its size in pixels.
An alt text can also be defined for each icon.
Usage in skins
get_icon() to obtain HTML code for displaying an icon.
If you want to use an icon font, you need to tell b2evolution (for example in
Skin::display_init()) like this:
Of course you also need to
require_css the proper CSS provided by the font maker. For example:
Created by • Last edit by on 2015 Sep 21
No feedback yet
Form is loading...