From c784546704d9a76933c0929e427ef826e35a70a0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Nov 2010 14:40:55 +0300 Subject: [PATCH] generated feeds: support enclosures --- functions.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 6eafe808..601d59ec 100644 --- a/functions.php +++ b/functions.php @@ -3702,7 +3702,16 @@ print sanitize_rss($link, $line["content_preview"], false, $owner_uid); print "]]>"; - + + $enclosures = get_article_enclosures($link, $line["id"]); + + foreach ($enclosures as $e) { + $type = htmlspecialchars($e['content_type']); + $url = htmlspecialchars($e['content_url']); + $length = $e['duration']; + print ""; + } + print ""; } -- 2.39.5