Skip to content

Instantly share code, notes, and snippets.

@jazbek
jazbek / gist:3794993
Created September 27, 2012 16:34
Slide Carousel class
<?php
class Slide_Carousel {
/**
* class base for this component
*
* @var string
**/
static $id = 'slide-carousel';
@jazbek
jazbek / gist:3794987
Created September 27, 2012 16:34
Allow 'post_type' passed as an arg to get_terms (useful for taxonomies shared between post types)
/**
* terms_clauses
*
* filter the terms clauses in get_terms(), allow post_type arg
*
* @param $clauses array
* @param $taxonomy string
* @param $args array
* @return array
* @author Jessica Yazbek
@jazbek
jazbek / gist:3794979
Created September 27, 2012 16:33
Function to strip articles from slug. Slug can then be used to alphabetize post listings.
/**
* strip_articles_from_slug
*
* Remove a, an, the from post slugs on new posts, so post listings
* can be alphabetized by slug and ignore leading articles
*
* @param $postarr post being set up
* @param $data data for the database
* @return array
* @author Jessica Yazbek
@jazbek
jazbek / gist:1252967
Created September 30, 2011 07:25
gala stripe test
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title> Checkout | Gala Demo 2011</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="" />
<link rel="stylesheet" href="http://76.179.10.111/2011/wp-content/ms-themes/3/demo-gala-1/style.css">