$r){ $input = str_replace($s, $r, $input); } return $input; } function post_notification_create_email($id, $template = ''){ $blogname = get_option('blogname'); if(get_option('post_notification_hdr_nl') == 'rn') $hdr_nl = "\r\n"; else $hdr_nl = "\n"; if($template == '') $template = get_option('post_notification_template'); if(substr($template, -5) == '.html'){ $html_email = true; } else { $html_email = false; } //Get the post $post = get_post($id); $post_url = get_permalink($post->ID); $post_author = get_userdata($post->post_author); $post_author = $post_author->display_name; $post_title = $post->post_title; if(get_option('post_notification_show_content') == 'yes'){ $post_content = stripslashes($post->post_content); }else if(get_option('post_notification_show_content') == 'more'){ $post_content = stripslashes($post->post_content); list($post_content, $more_content) = split('