From 4ee3e0d1167202d78fd5d9dabfbd425f8f04704d Mon Sep 17 00:00:00 2001 From: Mike Little Date: Tue, 6 May 2003 22:16:07 +0000 Subject: [PATCH] Added rss_use_excerpt flag git-svn-id: https://develop.svn.wordpress.org/trunk@18 602fd350-edb4-49c9-b593-d223f7449a82 --- b2config.php | 5 +++-- b2rdf.php | 9 +++++++++ b2rss.php | 43 ++++++++++++++++++++++++++----------------- b2rss2.php | 9 +++++++++ 4 files changed, 47 insertions(+), 19 deletions(-) diff --git a/b2config.php b/b2config.php index 15ad079376..462aa4ac4c 100644 --- a/b2config.php +++ b/b2config.php @@ -154,7 +154,8 @@ $rss_encoded_html = 0; # length (in words) of excerpts in the RSS feed? 0=unlimited # note: in b2rss.php, this will be set to 0 if you use encoded HTML $rss_excerpt_length = 50; - +#use the excerpt field for rss feed. +$rss_use_excerpt = 1; // ** Weblogs.com ping ** @@ -349,4 +350,4 @@ $passsql = $dbpassword; $path = $pathserver; $base = $dbname; -?> \ No newline at end of file +?> diff --git a/b2rdf.php b/b2rdf.php index dad5731f2c..2235612e20 100644 --- a/b2rdf.php +++ b/b2rdf.php @@ -45,7 +45,16 @@ if (!isset($rss_language)) { $rss_language = 'en'; } (mailto:) + + + + ]]> diff --git a/b2rss.php b/b2rss.php index e1670ee1d5..b8f6d9b6c6 100644 --- a/b2rss.php +++ b/b2rss.php @@ -9,26 +9,35 @@ if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_leng ?>\n"; ?> - - <?php bloginfo_rss("name") ?> - - - GMT - http://backend.userland.com/rss092 - - - + + <?php bloginfo_rss("name") ?> + + + GMT + http://backend.userland.com/rss092 + + + - - <?php the_title_rss() ?> + <?php the_title_rss() ?> +"; the_category_unicode(); echo ""; ?> - - - +// echo ""; the_category_unicode(); echo ""; +if ($rss_use_excerpt) { +?> + + + + + + - - + \ No newline at end of file diff --git a/b2rss2.php b/b2rss2.php index 1ad19c888c..ee459af410 100644 --- a/b2rss2.php +++ b/b2rss2.php @@ -37,7 +37,16 @@ if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_leng (mailto:) @ + + + + ]]>