FEATURE: support custom icons in themes (#7155)

* First take

* Add support for sprites in themes

Automatically register any custom icons added via themes or plugins

* Fix theme sprite caching

* Simplify test

* Update lib/svg_sprite/svg_sprite.rb

Co-Authored-By: pmusaraj <pmusaraj@gmail.com>

* Fix /svg-sprite/search request
This commit is contained in:
Penar Musaraj
2019-03-15 17:16:15 +11:00
committed by Sam
parent 32db3ac228
commit d6d4a5ba4a
7 changed files with 94 additions and 12 deletions
+1
View File
@@ -37,6 +37,7 @@ class UploadCreator
is_image = FileHelper.is_supported_image?(@filename)
is_image ||= @image_info && FileHelper.is_supported_image?("test.#{@image_info.type}")
is_image = false if @opts[:for_theme]
if is_image
extract_image_info!