Show
Ignore:
Timestamp:
06/10/06 00:43:40 (2 years ago)
Author:
sdcosta
Message:

Export enclosures back into gregarius' rss feeds. #413

This is not standards compliant since length and mime type are required and we do not store that.
http://blogs.law.harvard.edu/tech/rss#ltenclosuregtSubelementOfLtitemgt

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/themes/default/rss/item.php

    r1302 r1488  
    44        <pubDate><?php echo rss_item_date_with_format('r'); ?></pubDate> 
    55        <guid><?php echo rss_item_url(); ?></guid> 
     6        <?php if (rss_item_has_enclosure()) { ?> 
     7        <enclosure url="<?php echo rss_item_enclosure(); ?>" length="" type="" /> 
     8        <?php } ?> 
    69        <content:encoded><![CDATA[  <?php echo rss_item_content(); ?> ]]></content:encoded> 
    710</item>