Subscribe';
} else {
echo '';
}
echo $after_widget;
}
function feed_email_subscribe_widget_create($args) {
extract($args);
echo $before_widget;
echo get_option('smart_feed_email');
echo $after_widget;
}
function register_feed_redirect() {
if(get_option('smart_feed_feedburner_enabled')) {
if (!is_feed()) { return; }
else if (preg_match('/feedburner/', $_SERVER['HTTP_USER_AGENT'])) { return; }
else {
header("Location: ".get_option('smart_feed_feedburner'));
}
}
else { return; }
}
function register_feed_ad_manipulation($content) {
if(is_feed()) {
$prefix = '';
$suffix = '';
if(get_option('smart_feed_ad_top_enabled')) {
$prefix = get_option('smart_feed_ad_top');
}
if(get_option('smart_feed_ad_bottom_enabled')) {
$suffix = "".get_option('smart_feed_ad_bottom')."
";
}
return $prefix.$content.$suffix;
}
else { return $content; }
}
function register_feed_head_manipulation() {
if(get_option('smart_feed_head_enable')) {
add_action('rss_head', 'smart_add_feedimage_rss');
add_action('rss2_head', 'smart_add_feedimage_rss');
}
}
function smart_add_feedimage_rss() {
echo "
".get_bloginfo('name')."
".get_option('smart_feed_head')."
".get_bloginfo('url')."
".get_option('smart_feed_head_width')."
".get_option('smart_feed_head_height')."
get_bloginfo('description')
";
}
// action function for adding the administrative page
function smart_add_feedspage() { ?>