Better support for 3rd party blocktype icons in Mahara 15.10+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Aaron Wells | ||
15.10 |
Fix Released
|
High
|
Aaron Wells |
Bug Description
As discussed in the Mahara dev meeting. With the new bootstrap themes, Mahara core blocktypes now use fontawesome for their icons. Consequently the template that displays each block in the block picker, is no longer using the old thumb.png or get_icon() mtehods to get the block's icon and display it. Instead, it just has a <span> with a class "icon-{
https:/
These are then mapped to fontawesome classes here:
https:/
It would make sense for us to support the old methods, and we could make the system do this automatically, with some logic in blocktypelist.tpl and/or in htdocs/
Changed in mahara: | |
status: | New → In Progress |
description: | updated |
no longer affects: | mahara/16.04 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
The workaround only works if page already conains a block of that type. If the block is not present (e.g. when creating empty/blank page) the icon will still not be visible.