Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Plugin for Wordpress to insert file from github into a blog post

branch: master

Merge pull request #5 from jamestomasino/master

A series of bug fixes to get the plugin working on Wordpress 3.2.1
latest commit 4957831aae
Steve Francia authored September 07, 2011
Octocat-spinner-32 GitHub_Code_Viewer.php Fixing bugs for WP 3.2.1 September 07, 2011
Octocat-spinner-32 readme.txt cleaning up the readme December 09, 2010
readme.txt
=== GitHub Code Viewer 2 ===

Contributors: spf13, mattc78
Tags: github, snippet, code
Requires at least: 3.0
Tested up to: 3.0.2
Stable tag: trunk
Author URI: http://spf13.com

GitHub Code Viewer 2 automatically  pulls a file from github and places into any post using a shortcode 

== Description ==

GitHub Code Viewer 2 automatically  pulls a file from github and places into any post using a shortcode [github_cv url='$url']
Caches locally (in db), so there isn't a performance hit.
Heavily Modified from original plugin by Matt Curry (http://www.pseudocoder.com)

== Installation ==

1. Upload `GitHub_Code_Viewer.php` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Use the shortcode [github_cv url='<URL TO FILE ON GITHUB>'] in your post.

== Changelog ==
= 2.0 =
* Rewrote as a static class as only one instance is needed. 
* Rewrote to use short codes rather than a filter. 
* Cleaned up code and organized a bit better. 
* Allowed ttl as a configurable setting. 
Something went wrong with that request. Please try again.