Annotation of cdn/www/b2rss2.php, revision 1.1

1.1     ! cdn         1: <?php /* These first lines are the first part of a CafeLog template.
        !             2:                   In every template you do, you got to copy them before the CafeLog 'loop' */
        !             3: $blog=1; // enter your blog's ID
        !             4: header("Content-type: text/xml");
        !             5: include ("blog.header.php");
        !             6: if (!isset($rss_language)) { $rss_language = 'en'; }
        !             7: if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }
        !             8: if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }
        !             9: ?><?php echo "<?xml version=\"1.0\"?".">\n"; ?>
        !            10: <!-- generator="b2/<?php echo $b2_version ?>" -->
        !            11: <rss version="2.0" 
        !            12:        xmlns:dc="http://purl.org/dc/elements/1.1/"
        !            13:        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        !            14:        xmlns:admin="http://webns.net/mvcb/"
        !            15:        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        !            16:        xmlns:content="http://purl.org/rss/1.0/modules/content/">
        !            17: 
        !            18: <channel>
        !            19:        <title><?php bloginfo_rss("name") ?></title>
        !            20:        <link><?php bloginfo_rss("url") ?></link>
        !            21:        <description><?php bloginfo_rss("description") ?></description>
        !            22:        <dc:language><?php echo $rss_language ?></dc:language>
        !            23:        <dc:creator><?php echo $admin_email ?></dc:creator>
        !            24:        <dc:rights>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></dc:rights>
        !            25:        <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date>
        !            26:        <admin:generatorAgent rdf:resource="http://cafelog.com/?v=<?php echo $b2_version ?>"/>
        !            27:        <admin:errorReportsTo rdf:resource="mailto:<?php echo $admin_email ?>"/>
        !            28:        <sy:updatePeriod>hourly</sy:updatePeriod>
        !            29:        <sy:updateFrequency>1</sy:updateFrequency>
        !            30:        <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
        !            31: 
        !            32:        <?php $items_count = 0; while($row = mysql_fetch_object($result)) { start_b2(); ?>
        !            33:        <item rdf:about="<?php permalink_single_rss() ?>">
        !            34:                <title><?php the_title_rss() ?></title>
        !            35:                <link><?php permalink_single_rss() ?></link>
        !            36:                <dc:date><?php the_time('Y-m-d\TH:i:s'); ?></dc:date>
        !            37:                <dc:creator><?php the_author() ?> (mailto:<?php the_author_email() ?>)</dc:creator>
        !            38:                <dc:subject><?php the_category_rss() ?></dc:subject>
        !            39:                <guid isPermaLink="false"><?php echo $id; ?>@<?php bloginfo_rss("url") ?></guid>
        !            40:                <description><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></description>
        !            41:                <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
        !            42:        </item>
        !            43:        <?php } ?>
        !            44: 
        !            45: </channel>
        !            46: </rss>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>