diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index 1f89adc..f77167b 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -5,6 +5,13 @@ class AdBannersController < ApplicationController image_link = OrbitHelper.is_mobile_view ? b.file.mobile.url : b.file.url klass = i == 0 ? "active" : "" caption = i == 0 ? '
' : "" + + if b.link_open == "new_window" + target = "_blank" + else + target = " " + end + { "image_link" => image_link, "title" => b.title, @@ -13,7 +20,8 @@ class AdBannersController < ApplicationController "width" => adbanner.width, "caption" => caption, "context" => b.context, - "link" => b.out_link || "#" + "link" => b.out_link || "#", + "target" => target } end {