Skip to content

Instantly share code, notes, and snippets.

@vgrish
Created September 6, 2016 08:48
Show Gist options
  • Save vgrish/e5c7e541b33eefc4b7c0cb68ec389096 to your computer and use it in GitHub Desktop.
Save vgrish/e5c7e541b33eefc4b7c0cb68ec389096 to your computer and use it in GitHub Desktop.
<div id="msGallery" class="msoptionsprice-gallery">
{if $files?}
<div class="fotorama"
data-nav="thumbs"
data-thumbheight="45"
data-allowfullscreen="true"
data-swipe="true"
data-autoplay="16000">
{foreach $files as $file}
<a href="{$file['url']}" target="_blank" data-rid="{$file['product_id']}" data-iid="{$file['id']}">
<img src="{$file['120x90']}" alt="" title="">
</a>
{/foreach}
</div>
{else}
<img src="{('assets_url' | option) ~ 'components/minishop2/img/web/ms2_medium.png'}"
srcset="{('assets_url' | option) ~ 'components/minishop2/img/web/ms2_medium@2x.png'} 2x"
alt="" title=""/>
{/if}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment