Changeset 375
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2rdf.php
r352 r375 52 52 xmlns:content="http://purl.org/rss/1.0/modules/content/" 53 53 > 54 55 54 <channel rdf:about="<?php bloginfo_rss("url") ?>"> 56 57 55 <title><?php bloginfo_rss('name') ?></title> 58 56 <link><?php bloginfo_rss('url') ?></link> … … 66 64 <sy:updateFrequency>1</sy:updateFrequency> 67 65 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 68 69 66 <items> 70 67 <rdf:Seq> 71 <?php $items_count = 0; foreach ($posts as $post) { start_b2(); ?>68 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_b2(); ?> 72 69 <rdf:li rdf:resource="<?php permalink_single_rss() ?>"/> 73 <?php $b2_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } ?>70 <?php $b2_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?> 74 71 </rdf:Seq> 75 72 </items> 76 73 </channel> 77 78 <?php foreach ($posts as $post) { start_b2(); ?> 74 <?php if ($posts) { foreach ($posts as $post) { start_b2(); ?> 79 75 <item rdf:about="<?php permalink_single_rss() ?>"> 80 76 <title><?php the_title_rss() ?></title> … … 95 91 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 96 92 </item> 97 <?php } ?> 98 93 <?php } } ?> 99 94 </rdf:RDF> -
trunk/b2rss.php
r352 r375 56 56 <language><?php echo $rss_language ?></language> 57 57 58 <?php $items_count = 0; foreach ($posts as $post) { start_b2(); ?>58 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_b2(); ?> 59 59 <item> 60 60 <title><?php the_title_rss() ?></title> … … 75 75 <link><?php permalink_single_rss() ?></link> 76 76 </item> 77 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } ?>77 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?> 78 78 </channel> 79 79 </rss> -
trunk/b2rss2.php
r352 r375 67 67 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 68 68 69 <?php $items_count = 0; foreach ($posts as $post) { start_b2(); ?>69 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_b2(); ?> 70 70 <item rdf:about="<?php permalink_single_rss() ?>"> 71 71 <title><?php the_title_rss() ?></title> … … 87 87 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 88 88 </item> 89 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } ?>89 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?> 90 90 </channel> 91 91 </rss>
Note: See TracChangeset
for help on using the changeset viewer.