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(!defined('WPINC')) // MUST have WordPress. | |
exit('Do NOT access this file directly: '.basename(__FILE__)); | |
add_action('init', 'github_events::init'); | |
class github_events // Event handler. | |
{ | |
# Configuration ############################################### |
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 | |
error_reporting(-1); | |
ini_set('display_errors', TRUE); | |
/* --- Config. section. ----------------------------------------------------------------------- */ | |
$url = 'http://yoursite.com/'; // Swap this out when testing. | |
// Install the HTML Compressor locally, and change the following path as necessary. | |
require_once $_SERVER['WEBSHARK_HOME'].'/websharks/html-compressor/html-compressor/stub.php'; |
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
# Download & install marports http://www.macports.org/install.php | |
$ sudo port selfupdate | |
$ sudo port install nginx | |
$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
$ sudo port install php5 +fastcgi fcgi | |
$ sudo mkdir /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ cd /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ mate org.macports.php-fastcgi.plist # or vim org.macports.php-fastcgi.plist |
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 | |
/* Add a checkbox to the featured image metabox */ | |
add_filter( 'admin_post_thumbnail_html', 'theme_featured_image_meta'); | |
function theme_featured_image_meta( $content ) { | |
global $post; | |
// Text for checkbox | |
$text = __( "Don't display image on post.", 'textdomain' ); |