diff --git a/app/helpers/display_helper.rb b/app/helpers/display_helper.rb index 472e474..a0514d6 100644 --- a/app/helpers/display_helper.rb +++ b/app/helpers/display_helper.rb @@ -8,6 +8,14 @@ module DisplayHelper opts end + def themed_path(file) + if File.exists?(File.join(Rails.root, 'public', theme_path, file)) + File.join(theme_path, file) + else + file + end + end + def image_link_to_product(product, opts={}) return _('No product') unless product target = product_path(product) diff --git a/app/views/catalog/index.rhtml b/app/views/catalog/index.rhtml index 3ebdba0..da59ec6 100644 --- a/app/views/catalog/index.rhtml +++ b/app/views/catalog/index.rhtml @@ -8,9 +8,12 @@ <% extra_content = @plugins.dispatch(:catalog_item_extras, product).collect { |content| instance_eval(&content) } %> <% extra_content_list = @plugins.dispatch(:catalog_list_item_extras, product).collect { |content| instance_eval(&content) } %> -
  • "> +
  • <%= ' highlighted-product' if product.highlighted? %>">