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
<div class="page-width"> | |
</div> | |
{% schema %} | |
{ | |
"name": "Section Bundle", | |
"class": "index-section", | |
"settings": [ | |
{ | |
"type": "text", | |
"id": "bundle_title", |
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
<!-- /templates/customers/register.liquid --> | |
<h1 class="small--text-center">{{ 'customer.register.title' | t }}</h1> | |
<div class="form-register form-vertical"> | |
{% form 'create_customer' %} | |
{{ form.errors | default_errors }} | |
<label for="FirstName" class="label--hidden">{{ 'customer.register.first_name' | t }}</label> | |
<input type="text" name="customer[first_name]" id="FirstName" placeholder="{{ 'customer.register.first_name' | t }}" {% if form.first_name %}value="{{ form.first_name }}"{% endif %} autocapitalize="words" autofocus> |
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
Inspira.instagramFeed = function(){ | |
/** | |
* 1. Get access to the clients account | |
* 2. Go to https://www.instagram.com/developer/ and register a new app | |
* 3. visit the following url to generate a token which can only read basic public info | |
* https://api.instagram.com/oauth/authorize/?client_id=[CLIENT ID]&redirect_uri=[REDIRECT URI]&response_type=token&scope=basic+public_content | |
* 4. After accepting the application auth using the clients account the token will be in the url | |
* 5. Paste the token into the token variable below | |
**/ |
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
<!-- Go the following url to create snippet: https://developers.facebook.com/docs/plugins/like-button/ --> | |
<!-- Add the following snippet (this is only an example the correct one will be provided on the link above) after the body opening tag --> | |
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = 'https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.0&appId=765360350238456&autoLogAppEvents=1'; | |
fjs.parentNode.insertBefore(js, fjs); |
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
function validateEmail(email) { | |
var re = /\S+@\S+\.\S+/; | |
return re.test(email); | |
} |
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
/* in filters.js find this bit | |
if(this.container_paging){ | |
if(page_count>1){ | |
$('.pagination').show(); | |
} else{ | |
$('.pagination').hide(); | |
} | |
} | |
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
select{ | |
/* remove arrow */ | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
/* bootstrapify corners */ | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
border-radius: 4px; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |