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 | |
| /*wordpress comment spammer*/ | |
| function in_comment_post_like($string, $array) { | |
| foreach($array as $ref) { if(strstr($string, $ref)) { return true; } } | |
| return false; | |
| } | |
| function drop_bad_comments() { | |
| if (!empty($_POST['comment'])) { | |
| $post_comment_content = $_POST['comment']; | |
| $lower_case_comment = strtolower($_POST['comment']); |
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
| /* Times New Roman-based stack */ | |
| font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; | |
| /* Modern Georgia-based serif stack */ | |
| font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; | |
| /* Traditional Garamond-based serif stack */ | |
| font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif; | |
| /* Helvetica/Arial-based sans serif stack */ |
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
| function wptuts_columns_sc( $atts, $content = null, $tag ) { | |
| extract( shortcode_atts( array( | |
| // extra classes | |
| 'class' => '' | |
| ), $atts ) ); | |
| if ( $class != '' ) | |
| $class = ' ' . $class; | |
| $last = ''; | |
| // check the shortcode tag to add a "last" class | |
| if ( strpos( $tag, '_last' ) !== false ) |
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
| /* | |
| * Plugin Name: ${1: name} | |
| * Plugin URI: ${1: name} | |
| * Description: ${1: name} | |
| * Version: ${1: name} | |
| * Author: ${1: name} | |
| * Author URI: ${1: name} | |
| * License: GPL2 | |
| Copyright ${1: neme} Paul Underwood |
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 | |
| //Google Docs Viewer | |
| function pdflink($attr, $content) { | |
| if ($attr['href']) { | |
| return '<a class="pdf" href="http://docs.google.com/viewer?url=' . $attr['href'] . '">'.$content.'</a>'; | |
| } else { | |
| $src = str_replace("=", "", $attr[0]); | |
| return '<a class="pdf" href="http://docs.google.com/viewer?url=' . $src . '">'.$content.'</a>'; | |
| } |
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 | |
| // 1 | |
| function hex2rgb( $colour ) { | |
| if ( $colour[0] == '#' ) { | |
| $colour = substr( $colour, 1 ); | |
| } | |
| if ( strlen( $colour ) == 6 ) { | |
| list( $r, $g, $b ) = array( $colour[0] . $colour[1], $colour[2] . $colour[3], $colour[4] . $colour[5] ); | |
| } elseif ( strlen( $colour ) == 3 ) { | |
| list( $r, $g, $b ) = array( $colour[0] . $colour[0], $colour[1] . $colour[1], $colour[2] . $colour[2] ); |
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
| .text-shadow { | |
| text-shadow: 2px 2px 4px #666; | |
| } | |
| .box-shadow{ | |
| box-shadow: 0px 3px 3px rgba(0,0,0,0.2); | |
| -moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); | |
| -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); | |
| } | |
| .round{ | |
| -moz-border-radius: 10px; |
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
| #content .entry-content .ngg-albumoverview{ | |
| display:inline; | |
| float:left | |
| } | |
| .ngg-albumoverview{} | |
| .ngg-album-compact{} | |
| .ngg-album-compactbox{} | |
| http://snippets.webaware.com.au/howto/creating-a-custom-gallery-template-for-nextgen-gallery/ |
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
| function wptuts_columns_sc( $atts, $content = null, $tag ) { | |
| extract( shortcode_atts( array( | |
| // extra classes | |
| 'class' => '' | |
| ), $atts ) ); | |
| if ( $class != '' ) | |
| $class = ' ' . $class; | |
| $last = ''; | |
| // check the shortcode tag to add a "last" class | |
| if ( strpos( $tag, '_last' ) !== false ) |
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
| http://www.youtube.com/user/iPriceProductions?feature=watch | |
| http://www.worldofwebcraft.com/topic.php?id=5160 | |
| http://net.tutsplus.com/articles/general/9-ways-to-instantly-code-faster/ | |
| http://www.worldofwebcraft.com/topic.php?id=5160 |