RSS Footer options

"footerstring", "label" => "Content to put in the footer", "desc" => "(HTML allowed)", "content" => '', ); $rows[] = array( "label" => 'Explanation', "content" => 'You can use %%POSTLINK%% within the content, this will be replaced by a link to the post with the title of the post as the anchor text. If you update the text above, check the preview below.' ); $this->postbox('rssfootercontent','Content of your RSS Footer',$this->form_table($rows)); $this->postbox('rssfooterpreview','Preview of your RSS Footer','
You need JavaScript enabled for the preview to work.
'); $rows = array(); $rows[] = array( "id" => "position", "label" => "Content position", "content" => '', ); $rows[] = array( "label" => 'Explanation', "content" => 'The position determines whether the content you\'ve entered above will appear below or above the post.' ); $this->postbox('rssfootersettings','Settings',$this->form_table($rows)); ?>
plugin_like(); $this->plugin_support(); $this->news(); ?>



".get_bloginfo('name').""; $options['position'] = "after"; update_option('RSSFooterOptions', $options); } elseif ($options['everset'] === true) { if ($options['position'] == "after") { $options['footerstring'] = $options['footerstring']."

%%POSTLINK%%"; } else { $options['footerstring'] = "%%POSTLINK%%

".$options['footerstring']; } $options['everset'] = 2; update_option('RSSFooterOptions', $options); } function embed_rssfooter($content) { if(is_feed()) { $options = get_option('RSSFooterOptions'); $postlink = ''.get_the_title().""; $rssfootcontent = stripslashes($options['footerstring']); $rssfootcontent = str_replace("%%POSTLINK%%",$postlink,$rssfootcontent); if ($options['position'] == "before") { if($options['postlink']) { $content = '

'.get_the_title()."

\n" . $content; } $content = "

" . $rssfootcontent . "

\n" . $content; } else { $content = $content . "

" . $rssfootcontent . "

\n"; if($options['postlink']) { $content = $content . "

".$postlink."

\n"; } } } return $content; } add_filter('the_content', 'embed_rssfooter'); add_filter('the_excerpt_rss', 'embed_rssfooter'); ?>