<?php
/*
Plugin Name: Add Feed Notice
Plugin URI: http://waffle.wootest.net/2006/01/04/feed-notice/
Description: Adds a notice to syndication feeds if a post refers to developments on the site. The notice clarifies that the post is better read in context. Based on <a href="http://blog.taragana.com/index.php/archive/wordpress-plugin-to-automatically-add-copyright-message-to-your-rss-atom-feeds/">Feed Copyrighter</a>. To mark a post as needing this notice, set the custom field 'sitespec' to 'YES'.
Author: Jesper
Author URI: http://waffle.wootest.net/
Version: 1.0
*/

/* This plugin is placed in the public domain. */

if (function_exists('add_filter')) {

function 
addFeedNotice($content) {
    global 
$wp_query;
    if(
is_feed() && (get_post_meta($wp_query->post->ID"sitespec"true) == "YES")) {
        return 
"<p>(Note: This post is about, or refers to, other parts of the actual ".get_bloginfo_rss('name')." web site. It's recommended that you <a href=\"".get_permalink()."\" rel=\"bookmark\">read the post in context on the site</a>.)</p>".$content;
    } else {
        return 
$content;
    }
}
add_filter('the_content''addFeedNotice');

} else {
highlight_file(__FILE__);
}
?>