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
/** | |
* @extends \WC_Email | |
*/ | |
class WC_Custom_Order_Email extends WC_Email { | |
/** | |
* Set email defaults | |
*/ | |
public function __construct() { |
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
/** | |
* Capitalises the first letter of term title for display. | |
*/ | |
function capitalise_term_titles( $term_obj ) { | |
$term_obj->name = ucfirst($term_obj->name); | |
return $term_obj; | |
} | |
add_filter( 'get_term', 'capitalise_term_titles' ); |
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: Disable plugins when doing local dev | |
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
Version: 0.1 | |
License: GPL version 2 or any later version | |
Author: Mark Jaquith | |
Author URI: http://coveredwebservices.com/ | |
*/ |
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
// Compensate for the Bootstrap fixed top navigation bar. | |
// | |
// No styleguide reference. | |
body { | |
padding-top: @navbar-height; | |
} | |
// Offset fixed top navigation bar if WordPress admin bar is | |
// visible. |
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
/*! | |
{ | |
"name": "CSS text-stroke", | |
"property": "text-stroke", | |
"caniuse": "css-text-stroke", | |
"tags": ["css"], | |
"knownBugs": ["None"] | |
} | |
!*/ | |
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
h1,h2,h3,h4,h5,h6,em,.sok_font{font-family:"switchedonkidsnormal",Arial;text-transform:none;letter-spacing:0px;font-weight:normal;line-height:1.2;color:#fff; -webkit-text-fill-color:#fff;-webkit-text-stroke:1px #000;text-fill-color:#fff;text-stroke:1px #000} |
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 | |
/** Outputs a list of linked article headlines from a Wordpress recent posts RSS feed. */ | |
$simplepie_path = "includes/simplepie/"; // path to SimplePie RSS library | |
$feed_url = 'http://yourblog.com/feed/'; // url of your blog's RSS feed | |
$cache_location = $_SERVER['DOCUMENT_ROOT'] . '/includes/simplepie-cache'; // set cache directory (make sure that the directory exists and that this script can write to it) | |
$max_items = 3; // max feed items to show | |
$first_item = 0; // feed item to start from | |
require_once($simplepie_path.'autoloader.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
# Create a new Beeminder datapoint if current system time is within a | |
# given window. | |
# | |
# Possible use case: if you're on OS X, you can trigger this script with | |
# the free ControlPlane app. This means you can automatically Beemind | |
# yourself to a given location before a given time. | |
# | |
# Originally made by @peterhartree in order to Beemind his way to the | |
# office bright and early. Check up on him at | |
# https://www.beeminder.com/peterhartree/goals/rcu :P |
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
{ | |
"appName": { | |
"message": "Inbox When Ready für Gmail™", | |
"description": "The name of the application, displayed in the web store." | |
}, | |
"appDesc": { | |
"message": "Schützen Sie Ihren Fokus... verstecken Sie Ihre Google Mail-Posteingang.", | |
"description": "The short description of the application, displayed in the web store." | |
}, | |
"hideInbox": { |
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
{ | |
"appName": { | |
"message": "Inbox When Ready for Gmail™", | |
"description": "The name of the application, displayed in the web store." | |
}, | |
"appDesc": { | |
"message": "Protect your focus... improve your inbox workflow.", | |
"description": "The short description of the application, displayed in the web store." | |
}, | |
"hideInbox": { |
OlderNewer