Zoe Rooney zoerooney
-
Zoe Rooney Web Development
- Philadelphia, PA
- http://zoerooney.com
View feed-example.html
<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() { |
View jquery.js
<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 |
View tweet-quicktag.php
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; |
View page-gallery.php
<?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'; | |
View page-directory.liquid
<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' %} |
View instagram.php
<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; |
View page-shopify.php
<?php | |
/** | |
* Template Name: Shopify Collection Demo | |
* | |
*/ | |
get_header(); ?> | |
<div id="primary" class="full-width"> |
View markup.html
<div id="instafeed"></div> | |
<script> | |
var feed = new Instafeed({ | |
clientId: 'XXXXXXXXXXXXXXXXXX', | |
accessToken: 'abcdefghijklmnop', | |
get: 'user', | |
userId: 12345678, | |
limit: 5, | |
after: function() { | |
external(); |
View header-for-most-emails.html
<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