Source
CM
Currently if we want to add another social media option to our Department (agency) menu we don't have a good way to define the label, icon classes, URL as their own entities. You can add a new item here but then due to the differences in how we do labels and Font Awesome does icons we have to perform a bunch of coding gymnastics to get everything to show as we want. This is because it uses the array_key as the label and hardcodes a bunch of the icon classes, which aren't consistent across options.
We need to redefine the array of available social networks to contain fields for:
Then we need to save that with the user being able to set the URL via the admin interface on Departments.
This commit performed the hacks you see so that we could have X as an option.
Source
CM
Currently if we want to add another social media option to our Department (agency) menu we don't have a good way to define the label, icon classes, URL as their own entities. You can add a new item here but then due to the differences in how we do labels and Font Awesome does icons we have to perform a bunch of coding gymnastics to get everything to show as we want. This is because it uses the
array_keyas the label and hardcodes a bunch of the icon classes, which aren't consistent across options.We need to redefine the array of available social networks to contain fields for:
Then we need to save that with the user being able to set the URL via the admin interface on Departments.
This commit performed the hacks you see so that we could have X as an option.