| 11 | | |
| 12 | | <!-- generator="Karamelo 0.2" --> |
| 13 | | <rss version="2.0" |
| 14 | | xmlns:content="http://purl.org/rss/1.0/modules/content/" |
| 15 | | xmlns:wfw="http://wellformedweb.org/CommentAPI/" |
| 16 | | xmlns:dc="http://purl.org/dc/elements/1.1/" |
| 17 | | xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" |
| 18 | | xmlns:dtvmedia="http://participatoryculture.org/RSSModules/dtv/1.0" |
| 19 | | xmlns:media="http://search.yahoo.com/mrss/" |
| 20 | | > |
| 21 | | |
| 22 | | <channel> |
| 23 | | <title><?php echo $User["User"]["username"]; ?> podcast</title> |
| 24 | | <link>>http://<?php echo $_SERVER['SERVER_NAME'] ?>/blog/<?php echo $User['User']['username'];?></link> |
| 25 | | <description><?php echo $User["User"]["tags"]; ?></description> |
| 26 | | <generator>Jedit.org</generator> |
| 27 | | <docs>http://blogs.law.harvard.edu/tech/rss</docs> |
| 28 | | <language>es-mx</language> |
| 29 | | <copyright><?php echo $User["User"]['username']; ?></copyright> |
| 30 | | <webMaster><?php echo $User["User"]["email"];?></webMaster> |
| 31 | | <pubDate><?php echo $created; ?></pubDate> |
| 32 | | <lastBuildDate><?php echo $last_episode; ?></lastBuildDate> |
| | 9 | <channel> |
| | 10 | <title><?php echo $User['User']['username']; ?> podcast</title> |
| | 11 | <description>Edublog Podcast</description> |
| | 12 | <image> |
| | 13 | <url>http://live.cakephp.org/img/itunes_logo_small.jpg</url> |
| | 14 | <title>The Show for CakePHP</title> |
| | 15 | <link>http://live.cakephp.org</link> |
| | 16 | </image> |
| 34 | | <itunes:author><?php echo $User["User"]["username"];?></itunes:author> |
| 35 | | <itunes:subtitle><?php echo $subtitle;?></itunes:subtitle> |
| 36 | | <itunes:keywords><?php echo $User["User"]["tags"];?></itunes:keywords> |
| 37 | | <itunes:category text="Freedom"> |
| 38 | | <itunes:category text="Freedom" /> |
| 39 | | </itunes:category> |
| 40 | | <itunes:owner> |
| 41 | | <itunes:name><?php echo $User["User"]["name_blog"]; ?></itunes:name> |
| 42 | | <itunes:email><?php echo $User["User"]["email"];?></itunes:email> |
| 43 | | </itunes:owner> |
| 44 | | <itunes:image href="http://<?php echo $_SERVER['SERVER_NAME'] ?>/img/avatars/<?php echo $User["User"]["avatar"]; ?>" /> |
| 45 | | <image> |
| 46 | | <url>http://<?php echo $_SERVER['SERVER_NAME'] ?>/img/avatars/<?php echo $User["User"]["name_blog"]["avatar"]; ?></url> |
| 47 | | <title><?php echo $User["User"]["name_blog"];?> podcast</title> |
| 48 | | <link>http://<?php echo $_SERVER['SERVER_NAME'] ?>/blog/<?php echo $User["User"]["username"];?></link> |
| 49 | | </image> |
| 50 | | |
| 51 | | <itunes:explicit><?php echo 'no'; ?></itunes:explicit> |
| | 18 | <managingEditor>live@cakephp.org</managingEditor> |
| | 19 | |
| | 20 | <language>en-us</language> |
| | 21 | <copyright><?php echo $User['User']['username']; ?></copyright> |
| | 22 | <itunes:owner> |
| | 23 | <itunes:email>live@cakephp.org</itunes:email> |
| | 24 | </itunes:owner> |
| | 25 | <itunes:explicit>no</itunes:explicit> |
| | 26 | <itunes:image href="http://live.cakephp.org/img/itunes_logo_big.jpg" /> |
| | 27 | <itunes:category text="Technology" /> |
| | 28 | <itunes:keywords>cakephp, cake, php, web, development, software</itunes:keywords> |
| | 29 | <link>http://live.cakephp.org/</link> |
| | 30 | |
| 54 | | foreach ($data as $v) |
| 55 | | { |
| 56 | | echo '<item>' . "\n"; |
| 57 | | echo '<title>'.$v["Podcast"]["title"].'</title>' . "\n"; |
| 58 | | echo ' <link>http://'. $_SERVER['SERVER_NAME'] .'/archivos/podcast/'.$v["Podcast"]["filename"].'</link>' . "\n"; |
| 59 | | echo ' <description>' . "\n"; |
| 60 | | echo ' <![CDATA['.$v["Podcast"]["description"].']]>'; |
| 61 | | echo ' </description>'; |
| 62 | | echo ' <author>'.$v["Podcast"]["email"].'</author>' . "\n"; |
| 63 | | echo ' <pubDate>'.$v["Podcast"]["created"].'</pubDate>' . "\n"; |
| 64 | | echo ' <category>'.$v["Podcast"]["category"].'</category>' . "\n"; |
| 65 | | echo ' <enclosure url="http://'. $v_SERVER['SERVER_NAME'] .'/archivos/podcast/'.$v["Podcast"]["filename"].'" length="'.$v["Podcast"]["length"].'" type="audio/mpeg"/>' . "\n"; |
| 66 | | echo ' <guid>http://' . $_SERVER['SERVER_NAME'] .'/archivos/podcast/'.$v["Podcast"]["filename"] . '</guid>' . "\n"; |
| 67 | | echo ' <itunes:author>' . $v["Podcast"]["username"] .'</itunes:author>' . "\n"; |
| 68 | | echo ' <itunes:duration>' . $v["Podcast"]["duration"] .'</itunes:duration>' . "\n"; |
| 69 | | echo ' <itunes:keywords>' . $v["Podcast"]["keywords"] .'</itunes:keywords>' . "\n"; |
| 70 | | echo '</item>' . "\n"; |
| 71 | | } |
| 72 | | ?> |
| | 33 | foreach($data as $v) |
| | 34 | { |
| | 35 | ?> |
| | 36 | <item> |
| | 37 | <title><?php echo $v['Podcast']['title'];?> </title> |
| | 38 | <link>http://live.cakephp.org/blog/<?php echo $User['User']['username'];?></link> |
| | 39 | <guid>http://live.cakephp.org/shows/view/7.mp3</guid> |
| | 40 | <description><![CDATA[<?php echo $v['Podcast']['description']; ?>]]</description> |
| | 41 | <author><?php echo $User['User']['username'];?></author> |
| | 42 | <pubDate><?php echo $v['Podcast']['created'];?></pubDate> |
| | 43 | <itunes:author>CakePHP Foundation</itunes:author> |
| | 44 | <itunes:summary>Jeff Loiselle, Nate Abele, Mariano Iglesias, Peter Vanhee, Antonio De Marco</itunes:summary> |
| | 45 | <itunes:keywords>cakephp, cake, php, web, development, software</itunes:keywords> |
| | 46 | <enclosure url="http://live.cakephp.org/shows/view/7.mp3" length="20020243" type="audio/mpeg" /> |
| | 47 | </item> |
| | 48 | <?php } ?> |