Skip to content

Instantly share code, notes, and snippets.

@seedcms
Last active December 5, 2017 18:08
Show Gist options
  • Save seedcms/6e91d338e458ebb7147f6a45f28b892c to your computer and use it in GitHub Desktop.
Save seedcms/6e91d338e458ebb7147f6a45f28b892c to your computer and use it in GitHub Desktop.
lookbooks app snippet v3
{% if product.id %}
{% assign product_id = product.id %}
{% else %}
{% assign product_id = 0 %}
{% endif %}
{% if page.id %}
{% assign page_id = page.id %}
{% else %}
{% assign page_id = 0 %}
{% endif %}
{% if collection.id %}
{% assign collection_id = collection.id %}
{% else %}
{% assign collection_id = 0 %}
{% endif %}
{% if article.id %}
{% assign article_id = article.id %}
{% else %}
{% assign article_id = 0 %}
{% endif %}
<link href='//pressify.s3.amazonaws.com/assets/fancybox/source/jquery.fancybox.css' rel='stylesheet' type='text/css'>
<link href='//pressify.s3.amazonaws.com/assets/bxslider/jquery.bxslider.css' rel='stylesheet' type='text/css'>
<script defer src="//lookbooks-herokuapp-com.global.ssl.fastly.net/lookbook_js_001.js?v=0027"></script>
<div class="lookbook_details" data-product-id="{{product_id}}" data-page-id="{{page_id}}" data-collection-id="{{collection_id}}" data-article-id="{{article_id}}" data-shop-url="{{shop.permanent_domain}}"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment