DNNCommunity / Dnn.CommunityForums

Open-source forums module for DNN Platform. This is a fork and continuance of the Active Forums module.
https://dnncommunity.org
Other
13 stars 21 forks source link

ENH: Change rendering during token replacements e.g.,[FORUMICONCSS] #467

Open Timo-Breumelhof opened 1 year ago

Timo-Breumelhof commented 1 year ago

Is your feature request related to a problem?

Please describe. When I use [FORUMICONCSS] renders this:

<div style="height:30px;margin-right:10px;"><i class="fa fa-folder fa-blue fa-2x"></i></div>

I think we should avoid rendering any inline styles like this as they are cumbersome to overrule / restyle and not needed.

Describe the solution you'd like

Just render <i class="fa fa-folder fa-blue fa-2x"></i> if a div is needs it can be inserted in the template

johnhenley commented 2 months ago

1) centralize token replacement 2) use a TokenResources.resx to store html snippets rather than hard-coding