Shoelace for M3.4 with FontAwesome 5

Shoelace for M3.4 with FontAwesome 5

by Gareth J Barnard -
Number of replies: 4
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello,

I've released the Shoelace theme version 3.4.0.2 for Moodle 3.4 with FontAwesome 5: https://moodle.org/plugins/pluginversion.php?id=16031.

It contains the 'free' version, so all current 929 icons: https://fontawesome.com/icons?d=gallery&m=free. The theme is 'beta' and I noticed that theme switching via the URL does not work completely and you need to do a 'Purge all caches' but should be fine after that / set as the main theme.  I suspect down to the core icon system code.

All being well I intend to add the same to Essential, but that will take a little time as I'll need to write an update script to convert the icons in the settings from FA4 to 5.  But as this proves this can be done then really core Moodle should update too.

Screen shot:

Font Awesome 5 on Shoelace

Gareth

Average of ratings: -
In reply to Gareth J Barnard

Re: Shoelace for M3.4 with FontAwesome 5

by Bas Brands -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers

Great stuff,

What were the steps you took to update to FA5 ? And did you have much trouble working with the FA JavaScript?

Would you like to contribute your work to the BS4 boost theme?

In reply to Bas Brands

Re: Shoelace for M3.4 with FontAwesome 5

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Thanks Bas.

Ah, there is no FA JS used.  But I did need to override one bit of core JS to use a different template.  Steps involved implementing a new icon system with conversion method to convert existing FS4 icon classes to 5 and with the ATTO icons.

And can do smile.  But please have a test and be happy first.

In reply to Gareth J Barnard

Re: Shoelace for M3.4 with FontAwesome 5

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, I've figured out the cache issue and it is to do with my code.  I'll do another release soon, after any feedback you have.