Changeset 464
- Timestamp:
- 06/23/10 17:37:06 (20 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
config/routes.php (modified) (1 diff)
-
views/layouts/rss/rss.ctp (modified) (2 diffs)
-
views/podcasts/rss.ctp (modified) (3 diffs)
-
views/podcasts/view.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config/routes.php
r402 r464 30 30 # Web services 31 31 #Router::mapResources('knets'); 32 ?> 32 33 # ? > EOF -
trunk/views/layouts/rss/rss.ctp
r463 r464 1 1 <?php 2 # Chipotle Software (c) 2006-2010 2 # Chipotle Software (c) 2006-2010 3 3 # http://book.cakephp.org/view/1461/Creating-an-RSS-feed-with-the-RssHelper 4 4 echo $this->Rss->header(); 5 5 6 if (!isset($documentData)): 6 7 $documentData = array(); 7 8 endif; 9 8 10 if (!isset($channelData)): 9 11 $channelData = array(); … … 12 14 $channelData['title'] = $title_for_layout; 13 15 endif; 16 14 17 $channel = $this->Rss->channel(array(), $channelData, $content_for_layout); 15 #die(debug($channel)); 18 16 19 echo $this->Rss->document($documentData,$channel); 17 20 18 #echo $content_for_layout; 19 # ? > EOF 21 # ? > EOF -
trunk/views/podcasts/rss.ctp
r463 r464 2 2 #die(debug($user)); 3 3 # You should import Sanitize 4 App::import('Sanitize');4 #App::import('Sanitize'); 5 5 6 6 $this->set('documentData', array( … … 10 10 $this->set('channelData', array( 11 11 'title' => __('Most Recent Posts', True), 12 'link' => $this->Html->url('/ ', True),12 'link' => $this->Html->url('/blog/'.$user['User']['username'], True), 13 13 'description' => __("Most recent posts.", True), 14 14 'language' => 'en-us')); 15 15 foreach ($podcasts as $pod): 16 $postTime = strtotime($pod['Podcast']['created']);17 16 $postLink = array('controller' => 'podcasts', 'action' => 'view', $user['User']['username'].'/'.$pod['Podcast']['id']); 18 17 # This is the part where we clean the body text for output as the description … … 29 28 'guid' => array('url' => $postLink, 'isPermaLink' => True), 30 29 'description' => $bodyText, 31 'dc:creator' => $user['User']['username'], 30 'enclosure' => array('url'=>'/files/podcasts/'.$pod['Podcast']['filename']), 31 'creator' => $user['User']['username'], 32 'category' => 'Audio', 32 33 'pubDate' => $pod['Podcast']['created'])); 33 34 endforeach; -
trunk/views/podcasts/view.ctp
r463 r464 11 11 echo $gags->audioPlayer($data['Podcast']['filename'], 1) .'<br />'; 12 12 echo $this->Html->link('Subscribe', '/podcasts/rss/'.$blogger['User']['username'].'.rss'); 13 ?> 13 14 # ? > EOF
Note: See TracChangeset
for help on using the changeset viewer.
