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: Webkit Line Height Fixer | |
Plugin URI: https://twitter.com/lumpysimon | |
Description: Remove the annoying inline line-height styles added by Webkit | |
Version: 1.0 | |
Author: Simon Blackbourn @ Lumpy Lemon | |
Author URI: http://lumpylemon.co.uk | |
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
/* | |
=========== | |
= columns = | |
=========== | |
*/ | |
$gutter: 4%; |
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
<section class="cols"> | |
<div class="col col-3-5"> | |
<div class="cols"> | |
<div class="col col-1-3"> | |
<div class="button">one third of three fifths</div> | |
</div> | |
<div class="col col-1-3"> | |
<div class="button">one third of three fifths</div> | |
</div> | |
<div class="col col-1-3"> |
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 | |
defined( 'ABSPATH' ) or die(); | |
$ll_sitemap = new ll_sitemap; |
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 | |
get_header(); | |
if ( have_posts() ) { | |
while ( have_posts() ) { | |
the_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
/* | |
CSS Speech Bubbles | |
Usage: Apply a class of .speech-bubble and .speech-bubble-DIRECTION | |
<div class="speech-bubble speech-bubble-top">Hi there</div> | |
From: http://net.tutsplus.com/tutorials/html-css-techniques/css-refreshers-borders/ | |
*/ | |
.speech-bubble { | |
position: relative; | |
background-color: #292929; |
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
add_filter( 'pre_user_display_name', 'default_display_name' ); | |
function default_display_name( $name ) { | |
if ( isset( $_POST['display_name'] ) ) | |
return sanitize_text_field( $_POST['display_name'] ); | |
if ( isset( $_POST['first_name'] ) ) { | |
$name = sanitize_text_field( $_POST['first_name'] ); |
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
<snippet> | |
<content><![CDATA[ | |
add_${1:action}( '${2:hook}', $5array( \$this, '${3:function}' )${4:, 10, 2} );]]></content> | |
<tabTrigger>lwpadd</tabTrigger> | |
<scope>source.php</scope> | |
<description>add_action or add_filter (Lumpy WordPress PHP)</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
${1: if ( function_exists( 'register_extended_post_type' ) ) \{ | |
}${3: } register_extended_post_type( | |
${3: } '${4:name}', | |
${3: } array( | |
${3: }${16: ${5:'capability_type' => 'post', | |
${3: } }${6:'hierarchical' => false, | |
${3: } }${7:'menu_position' => ${8:99}, |
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
<snippet> | |
<content><![CDATA[ | |
defined( 'ABSPATH' ) or die(); | |
\$$1 = new $1; | |
OlderNewer