Instantly share code, notes, and snippets.
Web Developer and Digital Generalist. I work at @AMP_Agency as the Director of Creative Technology.
-
AMP Agency
- Boston, MA
- http://www.jonbishop.com
jonbish
/ gist-sidebar-widget
Created
May 24, 2012 03:48
— forked from norcross/gist-sidebar-widget
Public Gist Sidebar Widget
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 | |
/* | |
Plugin Name: GitHub Gists Sidebar Widget | |
Plugin URI: http://andrewnorcross.com/plugins | |
Description: A sidebar widget to display your public gists from GitHub. | |
Version: 1.0 | |
Author: norcross | |
Author URI: http://andrewnorcross.com | |
*/ | |
/* Copyright 2012 Andrew Norcross |
jonbish
/ test-head-footer.php
Created
June 16, 2012 20:08
— forked from sivel/test-head-footer.php
WordPress Plugin to test for the existence and functionality of wp_head and wp_footer in the active theme
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 | |
/* | |
Plugin Name: Test Head Footer | |
Plugin URI: http://gist.github.com/378450 | |
Description: Tests for the existence and functionality of wp_head and wp_footer in the active theme | |
Author: Matt Martz | |
Author URI: http://sivel.net/ | |
Version: 1.0 | |
Copyright (c) 2010 Matt Martz (http://sivel.net/) |
jonbish
/ get-social-counts.php
Created
June 19, 2012 15:44
— forked from kopiro/get-social-counts.php
Get social counts from Facebook, Twitter, GPlus
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 | |
/* Return object of shared counts */ | |
function get_social_count( $link ) { | |
$r = (object)array(); | |
$r->facebook = get_social_count_facebook($link); | |
$r->twitter = get_social_count_twitter($link); | |
$r->gplus = get_social_count_gplus($link); | |
return $r; | |
} |