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: Mini Admin Bar | |
* Plugin URI: | |
* Description: Makes the admin bar a small button on the left and expands on hover. | |
* Version: 1.0 | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* License: MIT | |
*/ |
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: Allow SVG Uploads | |
* Plugin URI: http://wordpress.stackexchange.com/q/94003/19726 | |
* Description: Allows you to upload SVG files through the WordPress media uploader. | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* Version: 1.0 | |
*/ |
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: Only In Feed | |
* Description: Adds a shortcode that will make the enclosed content either only display in the RSS feed, or hide it from the feed | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* Version: 1.0 | |
*/ |
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
/** | |
* Vertical centering with Flexbox + margin fallback | |
* Lea Verou & David Storey | |
*/ | |
html, body { height: 100%; } | |
body { | |
width: 100%; /* needed for FF */ | |
margin: 0; |
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: Activate Plugin After Install | |
* Description: Adds the option to activate a plugin only on the main site to the network admin plugin install screen | |
* Plugin URI: | |
* Version: 2013.05.18 | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* Licence: MIT | |
* License URI: http://opensource.org/licenses/MIT |
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 | |
/** | |
* If the search query only returns a single post, redirect to that post. | |
* | |
* @return void | |
* @author Paulund | |
* @link http://www.paulund.co.uk/redirect-search-results-return-one-post | |
*/ | |
function redirect_single_post() { |
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: oEmbed in Comments | |
* Description: Allow oEmbeds in comment text. A fork of http://wordpress.org/plugins/oembed-in-comments/ | |
* Version: 1.2 | |
* Author: Evan Solomon, modified by Shea Bunge | |
*/ | |
class oEmbed_Comments { |
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: oEmbed in Comments | |
* Description: Allow oEmbeds in comment text. A fork of http://wordpress.org/plugins/oembed-in-comments/ | |
* Version: 1.2 | |
* Author: Evan Solomon, modified by Shea Bunge | |
*/ | |
class oEmbed_Comments { |
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
$(function(){ | |
$('a[href^="\\#"]').click(function(event){ | |
event.preventDefault(); | |
var full_url = this.href; | |
var parts = full_url.split("#"); | |
var trgt = parts[1]; | |
var target_offset = $("#"+trgt).offset(); | |
var target_top = target_offset.top; | |
$('html, body').animate({scrollTop:target_top}, 500); | |
}); |
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
javascript:location.href='http://www.explainxkcd.com/wiki/index.php?title='+window.location.pathname.replace(/^\/|\/$/g, '') |