Changeset 464


Ignore:
Timestamp:
06/23/10 17:37:06 (20 months ago)
Author:
aarkerio
Message:

Update users

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/routes.php

    r402 r464  
    3030# Web services 
    3131#Router::mapResources('knets'); 
    32 ?> 
     32 
     33# ? > EOF 
  • trunk/views/layouts/rss/rss.ctp

    r463 r464  
    11<?php 
    2 # Chipotle Software (c) 2006-2010 
     2# Chipotle Software (c) 2006-2010  
    33# http://book.cakephp.org/view/1461/Creating-an-RSS-feed-with-the-RssHelper 
    44echo $this->Rss->header(); 
     5 
    56if (!isset($documentData)): 
    67    $documentData = array(); 
    78endif; 
     9 
    810if (!isset($channelData)): 
    911    $channelData = array(); 
     
    1214    $channelData['title'] = $title_for_layout; 
    1315endif; 
     16 
    1417$channel = $this->Rss->channel(array(), $channelData, $content_for_layout); 
    15 #die(debug($channel)); 
     18 
    1619echo $this->Rss->document($documentData,$channel); 
    1720 
    18 #echo  $content_for_layout; 
    19 # ? >  EOF 
     21# ? > EOF 
  • trunk/views/podcasts/rss.ctp

    r463 r464  
    22#die(debug($user)); 
    33# You should import Sanitize 
    4 App::import('Sanitize'); 
     4#App::import('Sanitize'); 
    55 
    66$this->set('documentData', array( 
     
    1010$this->set('channelData', array( 
    1111                                'title'       => __('Most Recent Posts', True), 
    12                                 'link'        => $this->Html->url('/', True), 
     12                                'link'        => $this->Html->url('/blog/'.$user['User']['username'], True), 
    1313                                'description' => __("Most recent posts.", True), 
    1414                                'language'    => 'en-us')); 
    1515foreach ($podcasts as $pod): 
    16     $postTime = strtotime($pod['Podcast']['created']); 
    1716    $postLink = array('controller' => 'podcasts', 'action' => 'view', $user['User']['username'].'/'.$pod['Podcast']['id']); 
    1817    # This is the part where we clean the body text for output as the description  
     
    2928                                    'guid'        => array('url' => $postLink, 'isPermaLink' => True), 
    3029                                    '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', 
    3233                                    'pubDate'     => $pod['Podcast']['created'])); 
    3334endforeach; 
  • trunk/views/podcasts/view.ctp

    r463 r464  
    1111echo $gags->audioPlayer($data['Podcast']['filename'], 1) .'<br />'; 
    1212echo $this->Html->link('Subscribe', '/podcasts/rss/'.$blogger['User']['username'].'.rss'); 
    13 ?> 
     13 
     14# ? > EOF 
Note: See TracChangeset for help on using the changeset viewer.