This file contains hidden or 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
<link rel="icon" type="image/x-icon" href="<?php bloginfo('template_url'); ?>/im/favicon.png"/> | |
<!--[if IE]><link rel="shortcut icon" href="path/to/favicon.ico"><![endif]--> |
This file contains hidden or 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 | |
/** | |
* Auto Deployment Script for GitHub and Apache. | |
* | |
* | |
* @since deploy 0.1 | |
*/ | |
$auth = md5('SECRET_PHRASE'); // set a private hash to validate against | |
if ( empty($_REQUEST['auth']) || $_REQUEST['auth'] != $auth) exit; |
This file contains hidden or 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 | |
/** | |
* Custom class for WP_Membership routines. | |
* | |
* | |
* @package WP_Membership | |
* @since WP_Membership 0.1 | |
*/ | |
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"])) |
This file contains hidden or 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 | |
/** | |
* WP_Theme_Rewrites Class for WordPress. | |
* | |
*/ | |
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"])) | |
exit("Do not access this file directly."); | |
class WP_Theme_Rewrites { |
This file contains hidden or 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(!class_exists('WP_List_Table')) require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); | |
/** | |
* Extended class for displaying a list of items in an HTML table. | |
* | |
* @usage | |
* // be sure to modify the display_rows function to customize the output of the rows | |
* $args = array( |
This file contains hidden or 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 ( class_exists('EM_Gateway') ) : | |
class BraintreeGateway extends EM_Gateway { | |
var $gateway = 'braintree'; | |
var $title = 'BrainTree'; | |
var $status = 4; | |
var $status_txt = 'Processing (BrainTree)'; | |
var $button_enabled = false; | |
var $supports_multiple_bookings = true; |
This file contains hidden or 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('EM_TAXONOMY_CATEGORY') ) { | |
define('EM_TAXONOMY_SPEAKER','event-speakers'); | |
define('EM_TAXONOMY_SPEAKER_SLUG', 'event/speakers'); | |
function parse_event_cat_query( ){ | |
global $wp_query, $post; | |
if( is_tax(EM_TAXONOMY_SPEAKER)||is_tax(EM_TAXONOMY_CATEGORY) ){ | |
unset($wp_query->query_vars['meta_query']); |
This file contains hidden or 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
class WP_Admin_Pages { | |
var $reset_roles = false, | |
$page_name = "member_approvals", | |
$board_votes = "board_votes"; | |
function __construct() { | |
if ( ! function_exists( 'admin_url' ) ) return false; | |
if ( is_admin() ) { | |
add_action( 'init', array(&$this, 'rolescheck')); | |
add_action( 'admin_menu', array(&$this, 'add_admin_page')); |
This file contains hidden or 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
/** | |
* | |
* Filter the post thumbnail html adding a javascript onload attribute. | |
* | |
* @param html(string) | |
* @return string | |
*/ | |
function filter_thumbnail_html($html, $attr = false) { | |
if (empty($html)) return $html; |
This file contains hidden or 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
// ==UserScript== | |
// @name Hide Gmail Ads | |
// @namespace http://userscripts.org/users/540155 | |
// @description Remove ad column from DOM in gmail and kill the remaining margin-right css property. | |
// @match https://mail.google.com/ | |
// @include https://mail.google.com/* | |
// @include https://mail.google.com | |
// @grant GM_addStyle | |
// @version 0.1 | |
// @copyright 2014+, You |
OlderNewer