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 | |
/** | |
* A couple of functions for caching the global post object so that contextual | |
* stuff (eg: sidebars) still works after custom queries | |
* NOT for use with query_posts(). Real WP coders always do a new WP_Query. | |
*/ | |
function sd_cache_post() { | |
global $post, $sd_cached_post; | |
$sd_cached_post = $post; | |
} |
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
/** | |
* Lucida Grande doesn't have italics, but is preferable for its small size awesomeness. | |
* Lucida Sans has lovely italics. | |
* Let's use @font-face to combine them | |
*/ | |
body { | |
font-family:'Lucida Improved','Lucida Grande','Lucida Sans','Lucida Sans Unicode',Verdana,sans-serif; | |
} | |
@font-face { | |
font-family:'Lucida Improved'; |
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
/** | |
* Soma HTML5 CSS Reset. Assumed an HTML5 shiv for IE < 9 | |
* Builds from http://meyerweb.com/eric/tools/css/reset/ | |
*/ | |
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,big,cite,code,del,em,font,img,ins,small,strong,sub,sup,tt,b,u,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;} | |
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;} | |
ol,ul{list-style:none;} | |
blockquote,q{quotes:none;} | |
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;} | |
a:focus{outline:1px dotted;} |
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 | |
/* | |
Plugin Name: Mail Killer/Logger | |
Description: A simple class to override WP's email functionality to debug/inspect what will be sent. Put in your mu-plugins directory. | |
Version: 1.0 | |
Author: Matt Wiebe | |
Author URI: http://somadesign.ca/ | |
License: A "Slug" license name e.g. GPL2 | |
*/ |
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 | |
/* | |
Plugin Name: Lessn Shortlinks | |
Description: Integrates WP's shortlink functionality with the <a href="http://lessnmore.net/">Lessn More</a> URL shortener. <em>Hasn't been tested with vanilla Lessn, but the API should be compatible.</em> (Edit the file manually to configure) | |
Version: 1.0 | |
Author: Matt Wiebe | |
Author URI: http://somadesign.ca/ | |
*/ | |
/** |
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 | |
/** | |
* Display a post count on WordPress posts | |
* Just use mw_post_number() inside the loop and you'll get a post number count | |
* @author Matt Wiebe | |
* @link http://somadesign.ca/ | |
* @license GPL v2 {@link} http://www.opensource.org/licenses/gpl-2.0.php | |
* @copyright 2011 | |
*/ |
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 | |
/** | |
* The WordPress answer to: | |
* @link paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | |
* @author Matt Wiebe | |
* @link http://somadesign.ca/ | |
* @var $min int minimum version of IE to target. | |
* @var $max int maximum version of IE to target - will receive no IE-specific classes. | |
*/ |
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 | |
add_action( 'wp_enqueue_scripts', 'piss_off_query_strings' ); | |
function piss_off_query_strings() { | |
global $wp_scripts, $wp_styles; | |
foreach( (array) $wp_scripts->registered as $handle => $obj ) { | |
$wp_scripts->registered[$handle]->ver = null; | |
} | |
foreach( (array) $wp_styles->registered as $handle => $obj ) { | |
$wp_styles->registered[$handle]->ver = null; |
OlderNewer