This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-04-09 04:44:08 +00:00
|
|
|
|
<% if ad_banner -%>
|
|
|
|
|
<%= link_to 'Preview',"#slideshow-#{ad_banner.title.dehumanize}",:class=>"btn btn-primary btn-large",:data=>{:toggle=>'modal'} %>
|
|
|
|
|
|
2012-04-13 08:46:16 +00:00
|
|
|
|
<div class="modal hide fade in banner-preview" id='slideshow-<%=ad_banner.title.dehumanize%>'>
|
2012-04-09 04:44:08 +00:00
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<a class="close" data-dismiss="modal">×</a>
|
|
|
|
|
<h3>Modal header</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<p class="ad_banner_slideshow">
|
|
|
|
|
<% preview_block_ad_images_helper(ad_banner).each do |ad_image| -%>
|
|
|
|
|
<%= image_tag ad_image.file,:alt => (ad_image.title[locale] || ' '),:time_to_next => ad_banner.transition_sec,:link_open=> ad_image.link_open, :link_url =>((ad_image.out_link || ad_banner.context || ' ')) %>
|
|
|
|
|
<% end -%>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<a href="#" class="btn" data-dismiss="modal">Close</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
|
<script type='text/javascript' src='/static/kernel.js'></script>
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
$('#slideshow-<%=ad_banner.title.dehumanize%>').on('show', function () {
|
2012-04-17 07:21:43 +00:00
|
|
|
|
$('#slideshow-<%=ad_banner.title.dehumanize%>').find(".ad_banner_slideshow").cycle({delay: -1000, fx: '<%= ad_banner.ad_fx.nil?? 'fade': ad_banner.ad_fx %>', timeoutFn: getTimeout });
|
2012-04-09 04:44:08 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|