Skip to content

Instantly share code, notes, and snippets.

@joshrainwater
joshrainwater / gist:3abcb3f7cb397ed03703
Last active August 29, 2015 14:05
UltraCart Connector
// The app definitions get me locations for redirects, and the path to our UltraCart proxy js file.
<?php require_once( '../app/definitions.php');
session_start(); ?>
// The UltraCart connections are below. We're going to be pulling quite a bit from
// https://github.com/UltraCart/responsive_checkout
// because it's easier. But it also links into PHP files and Wordpress rather than backbone like the sample.
// Note: This will change, but can stay at the live URL for all sites once we've moved.
@joshrainwater
joshrainwater / Wordpress Interchange
Created August 18, 2014 15:56
Foundation Interchange + Wordpress Featured Images
<?php
function theme_support() {
add_theme_support('post-thumbnails');
// default thumb size
set_post_thumbnail_size(500, 320, true);
// Add thumbnail sizes for various screen sizes and locations