'
',
'after_widget' => '
',
'before_title' => '',
));
function browse_happy_template() {
$getit = __( 'WordPress recommends a better browser' );
echo '.'/wp-admin/images/browse-happy.gif)
';
}
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)
add_action('wp_footer','browse_happy_template');
function gravatar_email($email) {
if (!get_option('show_avatars'))
return;
$rating = get_option('avatar_rating');
$size = 48;
$default = get_bloginfo('template_directory').'/images/comment-gravatar.jpg';
$border = 'D2D4FA';
$out = "http://www.gravatar.com/avatar.php?gravatar_id=".md5(strtolower($email));
$out .= "&rating=".$rating;
$out .="&size=".$size;
$out .= "&default=".urlencode($default);
$out .= "&border=".$border;
echo '';
}
function gravatar() {
global $comment;
if (!get_option('show_avatars'))
return;
$rating = get_option('avatar_rating');
$size = 48;
$default = get_bloginfo('template_directory').'/images/comment-gravatar.jpg';
$border = 'D2D4FA';
$out = "http://www.gravatar.com/avatar.php?gravatar_id=".md5(strtolower($comment->comment_author_email));
$out .= "&rating=".$rating;
$out .="&size=".$size;
$out .= "&default=".urlencode($default);
$out .= "&border=".$border;
echo '
';
}
function gravatar_post() {
if (!get_option('show_avatars'))
return;
$rating = get_option('avatar_rating');
$size = 80;
$default = get_bloginfo('template_directory').'/images/author-gravatar.jpg';
$border = 'D2D4FA';
$out = "http://www.gravatar.com/avatar.php?gravatar_id=".md5(strtolower(get_the_author_email()));
$out .= "&rating=".$rating;
$out .="&size=".$size;
$out .= "&default=".urlencode($default);
$out .= "&border=".$border;
echo '
';
}
function search_because_of_404() {
if (!is_404())
return;
$home = get_bloginfo('home').'/';
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$error404 = str_replace($home,'',$url);
$searchstring = str_replace(array('/','-',' ','_'),' ',urldecode($error404));
$searchstring = trim($searchstring);
$searchstring = $home.'?s='.str_replace(' ','+',$searchstring);
echo $searchstring;
}
function commentword() {
$commentwords = array('said','wrote','replied','thought','commented');
echo $commentwords[rand(0,4)];
}
?>