Skip to content

Glyphs plugin for e107

Jimako edited this page Dec 17, 2024 · 2 revisions

How to use it

Just install and activate needed icons packs

image

Where are they loaded

in admin area in any glyphs picker (exactly like theme preferences) - this is managed by core

in user area (frontend) in e_header.php

Examples of using

  1. When changing theme and your content uses icons from old theme. Example: Landing Zero theme uses Ionicons, if you want to use Bootstrap 5 theme, you need to change your used icons

  2. When building theme - it is not easy to set icons in theme glyphs. Now just copy glyphs settings from glyphs.xml file for needed pack, copy needed folders and theme'glyphs work without this plugin.

Simplicity

If you need different icons, it is easy to create your own plugin with your own icons. Or you can add them to this plugin. For now, I just checked all theme.xml files for using glyphicons tags.

How it works?

glyphs.xml structure is the same as for theme.xml

After saving preferences core prefs for glyphs is changed. The trick is using full path to glyphs files (the reason why it works)

When you change theme, you need to save them again.

How to check it

image

When you click on Check:

  • Actual Site preferences: value of 'sitetheme_glyphicons' pref
  • Actual supported packs by plugin: value of plugin preference 'packs' (checked on)
  • Available packs: all packs from glyphs.xml
Clone this wiki locally