fix for alt
This commit is contained in:
parent
09bec1f9be
commit
921c8addd4
|
@ -5,7 +5,7 @@ class AdBannersController < ApplicationController
|
||||||
image_link = OrbitHelper.is_mobile_view ? b.file.mobile.url : b.file.url
|
image_link = OrbitHelper.is_mobile_view ? b.file.mobile.url : b.file.url
|
||||||
klass = i == 0 ? "active" : ""
|
klass = i == 0 ? "active" : ""
|
||||||
caption = i == 0 ? '<div class="cycle-overlay"></div><div class="cycle-pager"></div>' : ""
|
caption = i == 0 ? '<div class="cycle-overlay"></div><div class="cycle-pager"></div>' : ""
|
||||||
|
title = (b.title.nil? || b.title == "" ? "ad-banner image" : b.title)
|
||||||
if b.link_open == "new_window"
|
if b.link_open == "new_window"
|
||||||
target = "_blank"
|
target = "_blank"
|
||||||
else
|
else
|
||||||
|
@ -15,7 +15,7 @@ class AdBannersController < ApplicationController
|
||||||
{
|
{
|
||||||
"image_link" => image_link,
|
"image_link" => image_link,
|
||||||
"image_alt" => "ad banner image",
|
"image_alt" => "ad banner image",
|
||||||
"title" => b.title,
|
"title" => title,
|
||||||
"class" => klass,
|
"class" => klass,
|
||||||
"height" => adbanner.height,
|
"height" => adbanner.height,
|
||||||
"width" => adbanner.width,
|
"width" => adbanner.width,
|
||||||
|
|
Loading…
Reference in New Issue