Skip to content

Instantly share code, notes, and snippets.

@etagwerker
Last active May 24, 2016 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etagwerker/b4cf1b636cb952585d12bf3f14c3413f to your computer and use it in GitHub Desktop.
Save etagwerker/b4cf1b636cb952585d12bf3f14c3413f to your computer and use it in GitHub Desktop.
producto-agotado.liquid
<!-- dentro de show.liquid -->
<div id="main-image">
<!-- cloud-zoom -->
<div id="wrap" style="top:0px;z-index:9999;position:relative;">
<a href="{{ product.featured_image | image_size: 'original' }}" class="cloud-zoom" id="zoom1" rel="adjustX:19, adjustY:0, softFocus:false, position:'right', showTitle:false" style="position: relative; display: block; ">
<img src="{{ product.featured_image | image_size: 'large' }}" alt="{{ product.featured_image.alt }}" align="left" title="{{ product.featured_image.alt | capitalize }}" style="display: block; " />
</a>
<div class="mousetrap" style="background-image:url(&quot;.&quot;);z-index:999;position:absolute;left:0px;top:0px;">
</div>
</div>
<!-- end cloud-zoom -->
{% unless product.has_stock? %}
<span class="agotado">Producto agotado!</span>
{% endunless %}
</div><!-- end #main-image -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment