fix outlink
This commit is contained in:
parent
edad3304ad
commit
f79842ee48
|
@ -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 ? '<div class="cycle-overlay"></div><div class="cycle-pager"></div>' : ""
|
||||
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue