Changeset 446

Show
Ignore:
Timestamp:
05/02/08 15:04:53 (7 months ago)
Author:
aarkerio
Message:

New hobbit edublog style

Location:
trunk/app
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/sql/postgresql/podcasts.sql

    r436 r446  
    44"title" varchar(50) NOT NULL DEFAULT '',  
    55"description" varchar(255) NOT NULL DEFAULT '',  
     6"keywords" varchar(100) NOT NULL,  
    67"created" timestamp(0) with time zone DEFAULT now() NOT NULL,  
    78"length" varchar(10) NOT NULL DEFAULT 0, 
  • trunk/app/config/sql/postgresql/users.sql

    r436 r446  
    1616    "avatar" varchar(100) DEFAULT 'default-avatar.jpg' NOT NULL, 
    1717    "quote" varchar(150), 
     18    "tags" varchar(150), 
    1819    "name_blog" varchar(150), 
    1920    "newsletter" smallint NOT NULL DEFAULT 0, --the user is subscribed to portal newsletter 
  • trunk/app/controllers/podcasts_controller.php

    r433 r446  
    8383     
    8484    $this->Podcast->User->unbindModel(array('hasMany'=>array('Entry', 'Lesson', 'Category', 'Vclassroom', 'Faq', 'Acquaintance'))); 
    85  
     85     
     86    $User = $this->Podcast->User->find(array('username'=>$username), array('id', 'username', 'email', 'name_blog', 'avatar')); 
     87     
    8688    $conditions = array("status"=>1, "user_id"=>$User['User']['id']); 
    8789     
    88     $fields     = array("Podcast.id", "Podcast.title", "Podcast.description", "Podcast.created", "Podcast.duration", "Podcast.title", "Podcast.description"); 
     90    $fields     = array("Podcast.id", "Podcast.title", "Podcast.description", "Podcast.keywords", "Podcast.created", "Podcast.duration", "Podcast.title", "Podcast.description", "Podcast.subject_id", "Subject.title"); 
    8991     
    9092    $order = "Podcast.created DESC"; 
    9193 
    9294    $limit = 12; 
    93      
     95    $this->set('User', $User); 
    9496    $this->set('data', $this->Podcast->findAll($conditions, $fields, $order, $limit)); 
    9597 } 
  • trunk/app/views/layouts/portal.ctp

    r442 r446  
    8888            </li> 
    8989        </ul> 
     90<?php  
     91  $tmp  = $html->para(null,$html->link($html->image('static/valid_xhtml10_80x15_22.png'), 'http://www.w3.org/TR/xhtml1/', null, null, false)); 
     92  $tmp .= $html->para(null,$html->link($html->image('static/ooorg-80.png'), 'http://www.openoffice.org', null, null, false));   
     93  $tmp .= $html->para(null,$html->link($html->image('static/jedit.png'), 'http://www.jedit.org', null, null, false));   
     94  $tmp .= $html->para(null,$html->link($html->image('cake.power.png'), 'http://www.cakephp.org', null, null, false));   
     95  echo $html->div(null, $tmp, array('style'=>'margin-top:60px;text-align:center;')); 
     96?> 
    9097    </div> 
    9198    <!-- end sidebar --> 
    9299    <div style="clear: both;">&nbsp;</div> 
     100 
    93101</div> 
    94102<!-- end page --> 
  • trunk/app/views/layouts/rss.ctp

    r313 r446  
    1 <?php header("Content-type: text/xml"); echo '<?xml version="1.0" encoding="UTF-8" ?>';  echo $content_for_layout; ?> 
     1<?php echo '<?xml version="1.0" encoding="UTF-8" ?>'."\n"; ?> 
     2<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> 
     3  <?php echo $content_for_layout; ?> 
     4</rss> 
  • trunk/app/views/podcasts/rss.ctp

    r321 r446  
    11<?php 
    2 //die(debug($data)); 
     2// die(debug($data)); 
    33/** 
    44*  2002-2008 - MonoNeuorna.org 
     
    66*  GPLv3  
    77**/ 
    8  
    9 //exit(print_r( $data )); 
    108?> 
    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>          
    3317    
    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    
    5231<?php 
    5332// Podcasts episodies 
    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 ?> 
     33foreach($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 } ?> 
    7349 </channel> 
    74 </rss> 
  • trunk/app/views/vclassrooms/participation.ctp

    r445 r446  
    11<?php 
    2 echo $html->div(null, 'It\'s advisable to have your participation recorded on your own computer. Before you write here, write and save your participation using a simple text editor like Wordpad or Gedit. After you have done this, copy it and paste it here. Your participation should be plain text, without any format, tables or images.'); 
     2echo $html->div('hint', 'It\'s advisable to have your participation recorded on your own computer. Before you write here, write and save your participation using a simple text editor like Wordpad or Gedit. After you have done this, copy it and paste it here. Your participation should be plain text, without any format, tables or images.'); 
    33  
    44echo $form->create('Participation', array('action'=>'add', 'onsubmit'=>'return validateForm()'));  
  • trunk/app/webroot/css/rubyx/rubyx.css

    r326 r446  
    256256    text-align:center; 
    257257} 
     258 
     259.hint{font-size:7pt; padding:3px;margin:2px;border:1px dotted gray;}