Skip to content

Instantly share code, notes, and snippets.

<?php
/*
Plugin Name: Debug Countdown Timer
Plugin URI: http://www.andrewferguson.net/wordpress-plugins/countdown-timer/
Description: Debug things when they go wrong
Version: 0.1
Author: Andrew Ferguson
Author URI: http://www.andrewferguson.net
Debug Countdown Timer - Debug things when they go wrong
@fergbrain
fergbrain / deploy.sh
Created October 15, 2012 06:13 — forked from BFTrick/deploy.sh
WordPress Plugin Deploy Script
#! /bin/bash
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.
# main config
PLUGINSLUG="______your-plugin-name______"
CURRENTDIR=`pwd`
MAINFILE="______your-plugin-name______.php" # this should be the name of your main php file in the wordpress plugin
# git config
@fergbrain
fergbrain / default.php
Created April 6, 2012 05:47
Display alternate thumbnail
<?php
include(CFCT_PATH.'header/featured/init.php');
if($image === ''){
global $post;
if(get_post_meta($post->ID, 'wp_thumbnail', TRUE)){
$class[] = 'has-featured-img';
$class = implode(' ', $class);