b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Installation / Upgrade
  3. Configuration files
  4. Other /conf files
  5. _icons.php

_icons.php

/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 'fa'.

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 'glyph'.

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

Use 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:

PHP
// Use font-awesome icons, @see get_icon()
global $b2evo_icons_type;
$b2evo_icons_type = 'fontawesome'; // alternatively : 'glyph'

Of course you also need to require_css the proper CSS provided by the font maker. For example:

PHP
// Load Font Awesome:
require_css( 'http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css' );
Created by fplanque • Last edit by fplanque on 2020-06-09 00:24 • •

No feedback yet

On this page

  • Usage in skins

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
    • New Installation
    • Upgrade
    • Configuration files
      • _basic_config.php
      • _advanced.php
      • Other /conf files
        • Dev Menu
        • _admin.php
        • _application.php
        • _basic_config.php
        • _basic_config.template.php
        • _config.php
        • _formatting.php
        • _icons.php
        • _local.php
        • _locales.php
        • _maintenance.html
        • _social.php
        • _stats.php
        • _upgrade.php
        • sample.htaccess
        • upgrade_policy.conf
      • Files related to upgrade
      • System config files
    • Advanced Setup
    • Migrating from Another System
    • Moving your b2evolution Site
    • FAQ & Troubleshooting (Installation / Upgrade)
    • Assumed User Skills
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Multiblog engine

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque