Created
September 6, 2012 10:59
-
-
Save BDQ/3654803 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if Spraycan::Theme.find(:all, :conditions => {:applies_to => 'Product Listing Image', :name => 'Small'}).first.active? %> | |
<div class="product-image"> | |
<%= link_to medium_image(product, :itemprop => "image"), product, :itemprop => 'url' %> | |
</div> | |
<script> | |
$(document).ready(function(){ | |
jQuery('.product-image a').nailthumb({fitDirection:'center center', replaceAnimation: null, proportions: 1}); | |
}); | |
</script> | |
<% elsif Spraycan::Theme.find(:all, :conditions => {:applies_to => 'Product Listing Image', :name => 'Medium'}).first.active? %> | |
<div class="product-image"> | |
<%= link_to product_image(product, :itemprop => "image"), product, :itemprop => 'url' %> | |
</div> | |
<script> | |
$(document).ready(function(){ | |
jQuery('.product-image a').nailthumb({fitDirection:'center center', replaceAnimation: null, proportions: 1}); | |
}); | |
</script> | |
<% elsif Spraycan::Theme.find(:all, :conditions => {:applies_to => 'Product Listing Image', :name => 'Large'}).first.active? %> | |
<div class="product-image"> | |
<%= link_to large_image(product, :itemprop => "image"), product, :itemprop => 'url' %> | |
</div> | |
<script> | |
$(document).ready(function(){ | |
jQuery('.product-image a').nailthumb({fitDirection:'center center', replaceAnimation: null, proportions: 1}); | |
}); | |
</script> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment