Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/refinerycms-theming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def image_tag(source, options={})
# inject /theme/ into the image tag src if this is themed.
tag.gsub!(/src=[\"|\']/) { |m| "#{m}/theme/" }.gsub!("//", "/") if theme
tag.gsub(/theme=(.+?)\ /, '') # we need to remove any addition of theme='false' etc.
tag.html_safe
end

def javascript_include_tag(*sources)
Expand All @@ -56,6 +57,7 @@ def javascript_include_tag(*sources)
# inject /theme/ into the javascript include tag src if this is themed.
tag.gsub!(/\/javascripts\//, "/theme/javascripts/") if theme
tag.gsub(/theme=(.+?)\ /, '') # we need to remove any addition of theme='false' etc.
tag.html_safe
end

def stylesheet_link_tag(*sources)
Expand All @@ -64,6 +66,7 @@ def stylesheet_link_tag(*sources)
# inject /theme/ into the stylesheet link tag href if this is themed.
tag.gsub!(/\/stylesheets\//, "/theme/stylesheets/") if theme
tag.gsub(/theme=(.+?)\ /, '') # we need to remove any addition of theme='false' etc.
tag.html_safe
end

def image_submit_tag(source, options = {})
Expand All @@ -73,6 +76,7 @@ def image_submit_tag(source, options = {})
# inject /theme/ into the image tag src if this is themed.
tag.gsub!(/src=[\"|\']/) { |m| "#{m}/theme/" }.gsub!("//", "/") if theme
tag.gsub(/theme=(.+?)\ /, '') # we need to remove any addition of theme='false' etc.
tag.html_safe
end
end
end
Expand Down