Fix ab_banner display
This commit is contained in:
parent
c5b95e2e0f
commit
84ad9dd724
|
@ -73,6 +73,7 @@ module ParserCommon
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
printable_ad_images.shuffle!
|
printable_ad_images.shuffle!
|
||||||
|
hide = printable_ad_images.size > 1
|
||||||
printable_ad_images.each do |ad_image| #TODO Need Reflact
|
printable_ad_images.each do |ad_image| #TODO Need Reflact
|
||||||
res << "<img src='#{ad_image.file}' "
|
res << "<img src='#{ad_image.file}' "
|
||||||
res << "alt='#{ad_image.title || ' '}' "
|
res << "alt='#{ad_image.title || ' '}' "
|
||||||
|
@ -80,7 +81,7 @@ module ParserCommon
|
||||||
res << "link_open='#{ad_image.link_open}' "
|
res << "link_open='#{ad_image.link_open}' "
|
||||||
# res << "link_url='#{(ad_image.direct_to_after_click?? ad_image.out_link : ad_banner.context) || ' '}' "
|
# res << "link_url='#{(ad_image.direct_to_after_click?? ad_image.out_link : ad_banner.context) || ' '}' "
|
||||||
res << "link_url='#{(ad_image.out_link)}' "
|
res << "link_url='#{(ad_image.out_link)}' "
|
||||||
res << "style='display:none; #{'cursor:pointer;' if !ad_image.out_link.blank?}'"
|
res << "style='#{'display:none;' if hide} #{'cursor:pointer;' if !ad_image.out_link.blank?}'"
|
||||||
res << "/>"
|
res << "/>"
|
||||||
end
|
end
|
||||||
res << "</div>"
|
res << "</div>"
|
||||||
|
|
Loading…
Reference in New Issue