Difference between revisions of "FontAwesome filter"
|Line 45:||Line 45:|
This is only available for Moodle 2.5 and above.
You can download the
You can download the from ://moodle.org/plugins/view.php?plugin=
Revision as of 06:40, 16 October 2013
This is a contributed (third party) filter for Moodle written by Julian (Moodleman) Ridden and shared on Moodle.org
Font Awesome provides sites with scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS. Font Awesome is fully open source and is GPL compatible. No attribution is required when using the fonts although the project does say it is appreciated.
This filter makes it easy to add FontAwesome icons to course content in any FontAwesome enabled moodle site. Please be sure to target any questions related to this filter in the Filter's forums at moodle.org and bugs to the Moodle Tracker
The aim of this filter was to provide an easy and functional way for content creators to easily add FontAwesome icons anywhere in course content. If using the recommended method provide by FontAwesome which involves creating custom classes you will find that the text editor strips these out automatically as unrecognised/bad code. This filter provides another mechanism to add FontAwesome icons that won't be stripped out by the editor.
Adding an icon
Adding an icon to anywhere in your course that you wish is now a simple process. The hardest part is finding the icon you wish to use. To browse the full list of over 360 icons please visit [this link]. Once you have found the icon you are after you just have to surround it with a set of square brackets. e.g. [icon-retro-camera]
If you have typed in the icon name correctly you will see the icon appear once you have hit save.
If you wish to make the icon larger you can use a multiplier. e.g.:
[icon-camera-retro icon-2x] or [icon-camera-retro icon-4x]
If you wish to rotate the icon you can specify how many degrees clockwise. e.g.:
You can also flip an icon horizontally or vertically. e.g.:
[icon-camera-retro icon-flip-horizontal] or [icon-camera-retro icon-flip-vertical]
You can mute the colour to a dull grey. e.g.:
You can "pull" the icon to the left or right. If it is "pulled" to the left text will wrap to the right. e.g.:
All the settings above can be mixed and matched. For example if I was to type in:
[icon-quote-left icon-4x pull-left icon-muted] Use a few of the new styles together, and you've got easy pull quotes or a great introductory article image. Or spinning icons for loading and refreshing content. Or fun big icons in multi-line buttons. You can combine all of them in any combination to get lots of new possibilities.
This filter is only available for Moodle 2.5 and above. You can download the filter from https://moodle.org/plugins/view.php?plugin=filter_fontawesome
- FontAwesome Filter's Plugin database listing
- Download latest version
- Browse GIT
- Discussion in English in the Forum
- Demo site