This file contains 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
<script type="text/javascript"> | |
window.addEventListener('DOMContentLoaded', function() { | |
(function ($) { | |
var $instagramSection = $('.instagram-collection'); | |
var loadImages = function($container, data, imageCount){ | |
for (var i = 0; i < imageCount; i++) { | |
var images = data.data[i].images, | |
// Thumbnail | |
thumbnail = images.thumbnail.url, | |
thumbnailWidth = images.thumbnail.width, |
This file contains 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
<div class="grid"> | |
<div class="grid__item one-half medium-down--one-whole"> | |
<p>One Half<br> | |
One Whole (medium down)</p> | |
</div> | |
<div class="grid__item one-half medium-down--one-whole"> | |
<p>One Half<br> | |
One Whole (medium down)</p> | |
</div> | |
<div class="grid__item one-quarter large--one-half medium-down--one-whole"> |
This file contains 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
<script> | |
// (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: [email protected] | |
// See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus | |
// Modified by Jonathan Moore (Style Hatch) https://github.com/jonathanmoore | |
/* | |
Updated to work with sectioned themes | |
- Added required methods from the deprecated options_selection.js | |
- Triggers an initial variant change | |
- Hides sold out variants with only one option |
This file contains 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
$(document).ready(function() { | |
thumbnails = $('img[src*="/products/"]').not(':first'); | |
if (thumbnails.length) { | |
thumbnails.bind('click', function() { | |
var arrImage = $(this).attr('src').split('?')[0].split('.'); | |
var strExtention = arrImage.pop(); | |
var strRemaining = arrImage.pop().replace(/_[a-zA-Z0-9@]+$/,''); | |
var strNewImage = arrImage.join('.')+"."+strRemaining+"."+strExtention; | |
if (typeof variantImages[strNewImage] !== 'undefined') { | |
productOptions.forEach(function (value, i) { |
This file contains 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
<!-- /templates/page.liquid --> | |
<section class="page page-top"> | |
<div class="wrapper"> | |
<header class="content-util"> | |
{% include 'breadcrumb' %} | |
{% include 'social-icons' %} | |
</header> | |
<header class="page-header"> | |
<h1>{{ page.title }}</h1> | |
</header> |
This file contains 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 template contains 'product' %} | |
{% assign size_options = 'size,taille' | split: ',' %} | |
{% assign size_chart_text_link = 'Size chart' %} | |
{% assign has_size = false %} | |
{% assign size_index = 0 %} | |
{% for option in product.options %} | |
{% assign downcased_option = option | downcase %} | |
{% if has_size == false and size_options contains downcased_option %} | |
{% assign has_size = true %} | |
{% assign size_index = forloop.index0 %} |
This file contains 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
/*============================================================================ | |
District Theme v1.0.0 | |
Copyright 2015 Style Hatch Inc. | |
Author Jonathan Moore @moore | |
Some things to know about this file: | |
- Sass is compiled on Shopify's server so you don't need to convert it to CSS yourself | |
- The output CSS is compressed and comments are removed | |
- You cannot use @imports in this file | |
* Use grunt or gulp tasks to enable @imports - https://github.com/Shopify/shopify-css-import |
This file contains 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
gulp.task 'deploy', shell.task [ | |
'git checkout master' | |
'git branch -D dist' | |
'git stash' | |
'git checkout -b dist' | |
'rm .gitignore' | |
'git add .gitignore --all' | |
'gulp build', | |
'git add public' | |
'git commit -m "build for release"' |