diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-content/plugins/feedburner-plugin/fdfeedburner.php --- a/web/wp-content/plugins/feedburner-plugin/fdfeedburner.php Thu Sep 16 15:45:36 2010 +0000 +++ b/web/wp-content/plugins/feedburner-plugin/fdfeedburner.php Mon Nov 19 18:26:13 2012 +0100 @@ -1,234 +1,245 @@ - - -
-

"; - _e('Configuration updated.'); - echo "

"; -} -?> -

-
-

How does this work?

-

-

Feedburner.com and burn your feed. Enter the URL Feedburner created for you. You may optionally redirect your comments feed using the same procedure. To disable redirection, disable the plugin or erase the URLs.'); - ?>

-

-

-
-
-

-

- -

-

- -

Advanced Options

-

- /> - -

-

- /> - -

-

- /> - -

- -

-
- -query_vars['category_name'] != null) { - $cat = $wp->query_vars['category_name']; - } - if ($wp->query_vars['cat'] != null) { - if ($wp_db_version >= 6124) { - // 6124 = WP 2.3 - $cat = $wpdb->get_var("SELECT slug FROM $wpdb->terms WHERE term_id = '".$wp->query_vars['cat']."' LIMIT 1"); - } else { - $cat = $wpdb->get_var("SELECT category_nicename FROM $wpdb->categories WHERE cat_ID = '".$wp->query_vars['cat']."' LIMIT 1"); - } - } - if ($options['feedburner_append_cats'] == 1 && $cat) { - $feed_url .= '_'.$cat; - } - - // Get tag - $tag = null; - if ($wp->query_vars['tag'] != null) { - $tag = $wp->query_vars['tag']; - } - if ($options['feedburner_append_cats'] == 1 && $tag) { - $feed_url .= '_'.$tag; - } - - // Get search terms - $search = null; - if ($wp->query_vars['s'] != null) { - $search = $wp->query_vars['s']; - } - - // Redirect comment feed - if ($feed == 'comments-rss2' || is_single() || $withcomments) { - if ($comment_url != null) { - header("Location: ".$comment_url); - die; - } - } else { - // Other feeds - switch($feed) { - case 'feed': - case 'rdf': - case 'rss': - case 'rss2': - case 'atom': - if (($cat || $tag) && $options['feedburner_no_cats'] == 1) { - // If this is a category/tag feed and redirect is disabled, do nothing - } else if ($search && $options['feedburner_no_search'] == 1) { - // If this is a search result feed and redirect is disabled, do nothing - } else { - if ($feed_url != null) { - // Redirect the feed - header("Location: ".$feed_url); - die; - } - } - } - } -} - -/* -================================================== -Add action hooks -================================================== -*/ -add_action('template_redirect', 'feedburner_redirect'); -?> + + +
+

"; + _e('Configuration updated.', FDFEEDBURNER_TEXTDOMAIN); + echo "

"; +} +?> +

+
+

+

+

Feedburner.com and burn your feed. Enter the URL Feedburner created for you. You may optionally redirect your comments feed using the same procedure. To disable redirection, disable the plugin or erase the URLs.', FDFEEDBURNER_TEXTDOMAIN);?>

+

+
+
+

+

+ +

+

+ +

+

+ /> + +

+

+ /> + +

+

+ /> + +

+ +

+
+ +query_vars['category_name'] != null) { + $cat = $wp->query_vars['category_name']; + } + if ($wp->query_vars['cat'] != null) { + if ($wp_db_version >= 6124) { + // 6124 = WP 2.3 + $cat = $wpdb->get_var("SELECT slug FROM $wpdb->terms WHERE term_id = '".$wp->query_vars['cat']."' LIMIT 1"); + } else { + $cat = $wpdb->get_var("SELECT category_nicename FROM $wpdb->categories WHERE cat_ID = '".$wp->query_vars['cat']."' LIMIT 1"); + } + } + if ($options['feedburner_append_cats'] == 1 && $cat) { + $feed_url .= '_'.$cat; + } + + // Get tag + $tag = null; + if ($wp->query_vars['tag'] != null) { + $tag = $wp->query_vars['tag']; + } + if ($options['feedburner_append_cats'] == 1 && $tag) { + $feed_url .= '_'.$tag; + } + + // Get search terms + $search = null; + if ($wp->query_vars['s'] != null) { + $search = $wp->query_vars['s']; + } + + // Redirect comment feed + if ($feed == 'comments-rss2' || is_single() || $withcomments) { + if ($comment_url != null) { + header("Location: ".$comment_url); + die; + } + } else { + // Other feeds + switch($feed) { + case 'feed': + case 'rdf': + case 'rss': + case 'rss2': + case 'atom': + if (($cat || $tag) && $options['feedburner_no_cats'] == 1) { + // If this is a category/tag feed and redirect is disabled, do nothing + } else if ($search && $options['feedburner_no_search'] == 1) { + // If this is a search result feed and redirect is disabled, do nothing + } else { + if ($feed_url != null) { + // Redirect the feed + header("Location: ".$feed_url); + die; + } + } + } + } +} + +/* +================================================== +Add action hooks +================================================== +*/ +add_action('template_redirect', 'feedburner_redirect'); +?> \ No newline at end of file