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 id="pinfeed"></div> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<!-- ref: https://developers.google.com/feed/v1/devguide --> | |
<script type="text/javascript"> | |
google.load('feeds', '1'); | |
function initialize() { |
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> | |
jQuery.ajax({ | |
type: 'GET', | |
url: 'http://mysite.myshopify.com/cart.json', | |
dataType: 'jsonp', | |
success: function(data) { | |
var item_count = data['item_count']; | |
var total_price = data['total_price']/100; | |
//If there are items in cart |
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
function add_tweet_quicktag(){ ?> | |
<script> | |
// create a new quicktag button labeled "tweet" | |
QTags.addButton( 'quicktweet', 'tweet', selection_callback ); | |
// on click, it triggers this callback: | |
function selection_callback(e, c, ed) { | |
// we want to grab the selected text and we're going to get a URL as well | |
var selection, postURL, t = this; |
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
<?php | |
// Check the gallery field (created with ACF PRO) for images | |
$images = get_field('images'); | |
if( $images ) : | |
// If it does have images: | |
// Create variable for download file | |
// This uses a /downloads/ directory and the page title as the file name | |
$destination = 'downloads/' . sanitize_title( get_the_title() ) . '.zip'; | |
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
<header class="page-title"> | |
<h1>{{ page.title }}</h1> | |
</header> | |
<section id="content"> | |
<div class="search-area"> | |
<div class="left">{{ page.content }}</div> | |
<div class="right"><form><i class="icon-search"></i><input type="text" id="peddler-search" placeholder="type your city, state or postal code"></form></div> | |
</div> | |
<div class="locations"> | |
{% assign sorted_articles = blogs.peddlers.articles | sort: 'title' %} |
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 id="instagram" class="widget"> | |
<?php | |
// Set variables | |
$image_number = 2; | |
$image_size = 'low_resolution'; //options: low_resolution (306), thumbnail (150), standard_resolution (612) | |
// Create the API URL for the user data | |
$user_access_token = '123456.xxxxxxxx.zzzzzzzzzzzzzzzzzzzzzzz'; | |
$user_data_url = 'https://api.instagram.com/v1/users/self/?access_token=' . $user_access_token; |
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
<?php | |
/** | |
* Template Name: Shopify Collection Demo | |
* | |
*/ | |
get_header(); ?> | |
<div id="primary" class="full-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 id="instafeed"></div> | |
<script> | |
var feed = new Instafeed({ | |
clientId: 'XXXXXXXXXXXXXXXXXX', | |
accessToken: 'abcdefghijklmnop', | |
get: 'user', | |
userId: 12345678, | |
limit: 5, | |
after: function() { | |
external(); |
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 style="width: 100%; margin: 0 auto; text-align: center; background: #ffffff;"> | |
<a href="{{ shop.url }}"><img src="{{ 'logo.png' | asset_url }}" alt="{{ shop_name }}" width="WIDTH" height="HEIGHT" style="margin: 0 auto;" /></a> | |
<br/><br/> | |
</div> |
NewerOlder