Favourite Posts

$n"; } /** * We want to update_option before the admin page is loaded so the page * will take the changes immediately. */ add_filter('admin_head', updatePostsPerPage($ppp)); ?>array(), "strong"=>array(), "strike"=>array()); if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Primary - Index', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Primary - Post', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Secondary - Shared', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); } function PrintArray($Array, $KeepAlive = null) { echo "
";
    print_r($Array);
    echo "
"; if(!$KeepAlive) die; } /*Re-write a normal time stamp as a unix timestamp ----------------------------------------------------------------------------------------------------------------------------------*/ function UnixDate($timestamp) { $timestamp = ereg_replace('[^0-9]', '', $timestamp); //Extract the different elements that make up the date and time $year = substr($timestamp, 0, 4); $month = substr($timestamp, 4, 2); $day = substr($timestamp, 6, 2); $hour = substr($timestamp, 8, 2); $minute = substr($timestamp, 10, 2); $second = substr($timestamp, 12, 2); //Calculate the Unix time-stamp return mktime($hour, $minute, $second, $month, $day, $year); } /*Re-write a timestamp according to PHP values ----------------------------------------------------------------------------------------------------------------------------------*/ function DateFormat($old_date, $layout) { return date($layout, UnixDate($old_date)); } function Minify($Content) { //Grab the head preg_match( '||is', $Content, $Matches); $OldHead = $Matches[0]; $NewHead = $OldHead; //Check for stylesheets preg_match_all('||is', $OldHead, $Matches); $Hrefs = $Matches[2]; foreach($Hrefs as $i=>$Href) { if(strstr($Href, ".css")) { $NewHead = str_replace($Matches[0][$i], "", $NewHead); $HrefArray = explode("?", $Href); $Href = $HrefArray[0]; $CSS_Replacements[] = str_replace(get_bloginfo("url"), "", $Href); } } $MinifiedCSS = ""; //Check for javascript files preg_match_all('||is', $OldHead, $Matches); $Srcs = $Matches[2]; foreach($Srcs as $i=>$Src) { $NewHead = str_replace($Matches[0][$i], "", $NewHead); $SrcArray = explode("?", $Src); $Src = $SrcArray[0]; $JS_Replacements[] = str_replace(get_bloginfo("url"), "", $Src); } $MinifiedJS = ""; $NewHead = str_replace("\t", '', $NewHead); //remove new lines $NewHead = str_replace(array("\r\r", "\n\n"), '', $NewHead); //remove new lines $Content = str_replace($OldHead, $NewHead, $Content); $Content = str_replace("", "\n$MinifiedCSS\n$MinifiedJS\n", $Content); echo $Content; } function ActivateURLs($url, $nofollow) { if($nofollow) $rel = " rel=\"nofollow\""; return ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $url); } function shortCodePostImages($atts) { ob_start(); extract($atts); ?>
$name"; } add_shortcode('media', 'shortCodeMedia'); ?>

  • ', '');?>

If you liked these tweets, why not follow me on Twitter directly?
My screen name is @alanauthor.

If you liked this post, then...

No matching results

You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.