diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index e7ebcb3..648f36c 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -18,12 +18,13 @@ class AdBannersController < ApplicationController image_link = OrbitHelper.is_mobile_view ? b.file.mobile.url : b.file.url klass = i == 0 ? "active" : "" caption = i == 0 ? '
' : "" - title = (b.title.nil? || b.title == "" ? "ad-banner image" : b.title) + alt_text = (b.title.nil? || b.title == "" ? "ad-banner image" : b.title) images << { "image_link" => image_link, - "title" => title, + "title" => b.title, "class" => klass, + "alt_text" => alt_text, "height" => adbanner.height, "width" => adbanner.width, "caption" => caption, @@ -49,13 +50,13 @@ class AdBannersController < ApplicationController adbanner.ad_images.can_display.each_with_index do |ad_b,i| if ad_b.language_enabled.include?(I18n.locale.to_s) image_link = OrbitHelper.is_mobile_view ? ad_b.file.mobile.url : ad_b.file.url - title = (ad_b.title.nil? || ad_b.title == "" ? "ad-banner image" : ad_b.title) + alt_text = (ad_b.title.nil? || ad_b.title == "" ? "ad-banner image" : ad_b.title) caption = i == 0 ? '' : "" klass = i == 0 ? "active" : "" if ad_b.exchange_item == "1" - image_html = " " + image_html = " " else ad_b.exchange_item == "2" - image_html = " " + image_html = " " end images << { "html" => image_html