]> git.quilime.com - clmpr.git/commitdiff
updated rss
authorGabriel Dunne <gdunne@quilime.com>
Thu, 5 Jan 2012 07:02:06 +0000 (23:02 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Thu, 5 Jan 2012 07:02:06 +0000 (23:02 -0800)
rss.php

diff --git a/rss.php b/rss.php
index 027ad22e3d0e104c2557e2ff79ef20f514cccbb2..4fa2b68053db195a6b25b54b553527cd9eb315ad 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -7,12 +7,20 @@
        <description></description>
        <title>Citation, Logging and Multi-Purpose aRchive</title>
 
-       <?php for($i = 0; $row = $q->fetch(); $i++ ): ?>
+       <?php for($i = 0; $row = $q->fetch(); $i++ ): 
+       if ($row['private']) continue;
+       $tags = tag_string_to_array($row['tags']);
+
+       
+       ?>
        <item>
            <title><?php echo htmlspecialchars($row['title']); ?></title>
            <link><?php echo htmlspecialchars($row['url']) ?></link>
            <description><![CDATA[<?php echo htmlspecialchars($row['description']); ?>]]></description>
            <tags><?php echo $row['tags'] ?></tags>
+           <? foreach($tags as $tag) : ?>
+           <category><?=$tag?></category>
+           <? endforeach; ?>
            <pubDate><?php echo date('r', strtotime($row['date'])); ?></pubDate>
        </item> 
 
@@ -47,4 +55,4 @@ exit;
 
 <?php endfor; ?>
 
-*/
\ No newline at end of file
+*/