diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index 6b6123c..e7ebcb3 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -18,9 +18,11 @@ 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) + images << { "image_link" => image_link, - "title" => b.title, + "title" => title, "class" => klass, "height" => adbanner.height, "width" => adbanner.width, @@ -47,12 +49,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) caption = i == 0 ? '
' : "" klass = i == 0 ? "active" : "" if ad_b.exchange_item == "1" - image_html = "
#{ad_b.title}
" + image_html = "
#{title}
" else ad_b.exchange_item == "2" - image_html = "
#{ad_b.title}
#{ad_b.title}
" + image_html = "
#{title}
#{title}
" end images << { "html" => image_html