mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
Support for an HTML builder that can create dynamic HTML
This commit is contained in:
@ -316,6 +316,11 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
def build_plugin_html(name)
|
||||
return "" unless allow_plugins?
|
||||
DiscoursePluginRegistry.build_html(name) || ""
|
||||
end
|
||||
|
||||
def theme_lookup(name)
|
||||
lookup = Theme.lookup_field(theme_key, mobile_view? ? :mobile : :desktop, name)
|
||||
lookup.html_safe if lookup
|
||||
|
Reference in New Issue
Block a user