YOUR BLOG NAME. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. If you see a site infringing our copyright, please contact legal@BLOG_ADDRESS to alert us.
Author: Angsuman Chakraborty
Author URI: http://blog.taragana.com/
Version: 1.0
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
*/
// Change this to your email address to handle legal affairs. The default is legal@YOUR_SERVER_NAME.
$legal = '';
// Change $message to a legal blurb of your choice
$message = 'This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement.';
// You should not change below this line.
// -------------------------------------
// This creates a default email address for legal matters if it hasn't been spoecified above.
// For example for my blog - blog.taragana.com the default email address is legal@blog.taragana.com
if(!$legal) {
$legal = 'legal@' . $_SERVER['SERVER_NAME'];
}
// This is the final copyright message.
// WARNING: It is a php expression so be very very careful if you really want to change this. If you are modifying this you are on your own buddy.
$copyright = '
Copyright © ' . date("Y") . ' ' . get_bloginfo('name') . '. ' . $message . ' If you see someone deliberately infringing our copyright, please email ' . $legal . ' to alert us.';
function addCopyrightToFeed($content) {
global $copyright;
// Little attribution for our hard work. It helps others to find about this plugin.
$pluginmessage = '';
if(is_feed()) {
return $content.$copyright.$pluginmessage;
} else {
return $content;
}
}
add_filter('the_content', 'addCopyrightToFeed');
?>