]> git.mjollnir.org Git - s9y.git/commitdiff
support ATOM hooks
authorgarvinhicking <garvinhicking>
Sun, 21 Aug 2005 00:34:37 +0000 (00:34 +0000)
committergarvinhicking <garvinhicking>
Sun, 21 Aug 2005 00:34:37 +0000 (00:34 +0000)
include/functions_entries.inc.php

index 14e059efb802cebea3941694260fbb077fbc3cf4..23c87ddb7033221df1cf4e5c3c1c468546c470ab 100644 (file)
@@ -815,6 +815,11 @@ function serendipity_printEntries_rss($entries, $version, $comments = false, $fu
 ?>
         </div>
     </content>
+<?php
+                    $entry['display_dat'] = '';
+                    serendipity_plugin_api::hook_event('frontend_display:atom-0.3:per_entry', $entry);
+                    echo $entry['display_dat'];
+?>
 </entry>
 <?php
             } elseif ($version == 'atom1.0') {
@@ -845,7 +850,6 @@ function serendipity_printEntries_rss($entries, $version, $comments = false, $fu
 <?php
                     }
 ?>
-
     <id><?php echo $guid; ?></id>
     <title type="html"><?php echo serendipity_utf8_encode(htmlspecialchars($entry['title'])); ?></title>
     <content type="xhtml" xml:base="<?php echo $serendipity['baseURL']; ?>">
@@ -855,6 +859,11 @@ function serendipity_printEntries_rss($entries, $version, $comments = false, $fu
 ?>
         </div>
     </content>
+<?php
+                    $entry['display_dat'] = '';
+                    serendipity_plugin_api::hook_event('frontend_display:atom-1.0:per_entry', $entry);
+                    echo $entry['display_dat'];
+?>
 </entry>
 <?php