Changeset 610

Show
Ignore:
Timestamp:
06/16/08 23:05:09 (5 months ago)
Author:
aarkerio
Message:

RSS

Location:
trunk/app
Files:
10 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/components/edublog.php

    r422 r610  
    3232   
    3333 // Unbind on fly 
    34  $this->User->unbindModel(array( 
    35                           'hasMany'   => array('Vinculum', 'Category', 'Entry', 'Faq', 'Vclassroom', 'Podcast', 'Lesson'), 
     34 /* $this->User->unbindModel(array( 
     35                          'hasMany'   => array('Vinculum', 'Category', 'Entry', 'Faq', 'Vclassroom', 'Podcast', 'Lesson', 'Confirm'), 
    3636                          'belongsTo' => array('Group') 
    3737                           ) 
    38                           ); 
    39    
     38                          ) */; 
     39 $this->User->unbindAll(); 
    4040 // Temporal bind 
    4141 $this->User->bindModel( 
     
    4646                                'order'         => 'Podcast.created DESC', 
    4747                                'limit'         => '10', 
     48                                'fields'        => 'id, title, length', 
    4849                                'foreignKey'    => 'user_id', 
    4950                                'dependent'     => true, 
     
    5657                                 'order'         => 'Lesson.created DESC', 
    5758                                 'limit'         => '10', 
     59                                 'fields'         => 'id, title', 
    5860                                 'foreignKey'    => 'user_id', 
    5961                                 'dependent'     => true, 
     
    8183                                 'finderQuery'   => '' 
    8284                                 ), 
    83                         'Catforum' => 
    84                            array('className'     => 'Catforum', 
    85                                  'conditions'    => array('Catforum.status' => 1, 'Catforum.user_id' => $user_id), 
    86                                  'order'         => 'Catforum.created DESC', 
    87                                  'limit'         => '10', 
    88                                  'foreignKey'    => 'user_id', 
    89                                  'dependent'     => true, 
    90                                  'exclusive'     => false, 
    91                                  'finderQuery'   => '' 
    92                                  ), 
    9385                         'Vclassroom' => 
    9486                           array('className'     => 'Vclassroom', 
    9587                                 'conditions'    => array('Vclassroom.status' => 1, 'Vclassroom.user_id' => $user_id), 
    96                                  'order'         => 'Vclassroom.created DESC', 
    97                                  'limit'         => '10', 
     88                                 'order'         => 'Vclassroom.name DESC', 
     89                                 'limit'         => '12', 
    9890                                 'foreignKey'    => 'user_id', 
    9991                                 'dependent'     => true, 
     
    10193                                 'finderQuery'   => '' 
    10294 
    103                            ) 
     95                                 ), 
     96                         'Quote' => 
     97                           array('className'     => 'Quote', 
     98                                 'conditions'    => array('Quote.user_id' => $user_id), 
     99                                 'order'         => 'random()', 
     100                                 'limit'         => '1', 
     101                                 'fields'        => 'quote, author',    
     102                                 'foreignKey'    => 'user_id', 
     103                                 'dependent'     => true, 
     104                                 'exclusive'     => false, 
     105                                 'finderQuery'   => '' 
     106 
     107                                 ) 
    104108                        ) 
    105109                    ) 
    106110                 ); 
    107    
     111  $this->User->Acquaintance->unbindAll(); 
     112  $this->User->Podcast->unbindAll(); 
     113  $this->User->Lesson->unbindAll(); 
     114  $this->User->Vclassroom->unbindAll(); 
     115 
    108116  $conditions = array("User.id"=>$user_id, "User.active"=>1); 
    109117  $fields     = array("User.id", "User.created", "User.name_blog", "User.quote", "User.cv", "User.avatar", "User.username"); 
  • trunk/app/locale/spa/LC_MESSAGES/default.po

    r606 r610  
    143143msgstr "Imágenes" 
    144144 
     145msgid  "Upload Image" 
     146msgstr "Subir Imagen" 
     147 
    145148msgid  "Teacher tools" 
    146149msgstr "Herramientas pedagógicas" 
  • trunk/app/views/images/admin_listing.ctp

    r541 r610  
    11<?php  
    22//popup or full window ? 
    3 if ( $set == null ) 
    4  {  
    5    echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    6    echo $html->addCrumb('Images', '#');  
    7    echo $html->getCrumbs(' / '); 
    8    echo $html->div('title_section', 'Images'); 
    9    $return = null; 
    10  }  
    11  else 
    12  { 
    13    $return = 'set'; 
    14  } 
     3if ( $set == null ): 
     4    echo $html->addCrumb('Control Panel', '/admin/entries/start');  
     5    echo $html->addCrumb(__('Images', true), '#');  
     6    echo $html->getCrumbs(' / '); 
     7    echo $html->div('title_section', __('Images', true)); 
     8    $return = null; 
     9else: 
     10    $return = 'set'; 
     11 endif; 
    1512?> 
    1613 
  • trunk/app/views/layouts/admin.ctp

    r582 r610  
    55<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    66 <head> 
    7   <title>Karamelo: Control Panel</title> 
     7  <title>Karamelo</title> 
    88<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
    99<!--[if gte IE 5.5]> 
     
    3030<div id="header"> 
    3131<div style="width:300px;float:left;margin-right:15px;"> 
    32 <h1><?php echo $html->link('Karamelo: Control Panel', '/admin/entries/start'); ?></h1>  
    33 <?php echo $html->para(null, 'e-Learning platform'); ?> 
     32<h1><?php echo $html->link('Karamelo', '/admin/entries/start'); ?></h1>  
     33<?php echo $html->para(null, 'Web 2.0 eLearning platform'); ?> 
    3434</div> 
    3535<div style="width:700px;float:left;">  
    36 Logged in as <strong><?php echo $session->read('Auth.User.username'); ?></strong> | 
     36<?php __('Logged in'); ?> <strong><?php echo $session->read('Auth.User.username'); ?></strong> | 
    3737<?php   
    3838  echo $html->link($session->read('Auth.User.username') . '\'s blog',  '/blog/'. $session->read('Auth.User.username')) . ' | ';  
    3939  echo $html->link($_SERVER['HTTP_HOST'], '/').' | '; 
    40   echo $html->link('My Account', '/admin/users/edit') .' | '. $html->link('Logout', '/users/logout'); ?> 
     40  echo $html->link(__('My profile', true), '/admin/users/edit') .' | '. $html->link(__('Logout', true), '/users/logout');  
     41?> 
    4142</div> 
    4243</div><!-- header ends--> 
  • trunk/app/views/layouts/rss.ctp

    r492 r610  
    11<?php echo '<?xml version="1.0" encoding="UTF-8" ?>'."\n"; ?> 
    2 <rss version="2.0"> 
     2<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> 
    33  <?php echo $content_for_layout; ?> 
    44</rss> 
  • trunk/app/views/layouts/rubyx.ctp

    r574 r610  
    7575          
    7676<div id="strip" class="box noprint">  
     77<?php  
     78 if ( isset($blog['Quote'][0]['quote']) ): 
     79    e($html->div(null, '<i>'.$blog['Quote'][0]['quote'] . '</i><br /><b>'. $blog['Quote'][0]['author'].'</b>',aa('id', 'breadcrumbs'))); 
     80 endif; 
     81?>  
    7782      
    7883<!-- RSS feeds -->  
    79 <p id="rss"><strong>RSS:</strong>  
     84<div id="rss"><strong>RSS:</strong>  
    8085<?php 
    8186 e($html->link('Blog', '/entries/rss/'.$blog['User']['username']) . '/');  
    8287 e($html->link('Podcast', '/podcasts/rss/'.$blog['User']['username'])); 
    8388?> 
    84 </p>  
    85  
    86 <hr class="noscreen" /> 
     89</div>  
    8790</div> <!-- /strip --> 
    8891 <!-- Content -->  
    89         <?php echo $html->div(null, $content_for_layout, aa('id', 'content')); ?>  
     92  <?php    echo $html->div(null, $content_for_layout, aa('id', 'content'));?>  
    9093<!-- /content -->  
    9194<!-- Right column -->  
     
    9396<div id="col-in">  
    9497<?php  
    95  if ( $blog["Vclassroom"] != null)  
    96  {  
     98 if ( $blog["Vclassroom"] != null):  
    9799     echo $this->element('vclassrooms', $blog["Vclassroom"]);   
    98  } 
     100 endif; 
    99101 
    100102 echo $html->div('temas', $blog['User']['username'] . ' profile');  
  • trunk/app/views/news/rss.ctp

    r238 r610  
    1 <rss version="2.0"> 
    21<channel> 
    3 <title>::MonoNeurona RSS::</title> 
     2<title>::Karamelo RSS::</title> 
    43   <link>http://<?php echo $_SERVER['SERVER_NAME'] ?></link> 
    5    <description>Noticias del mundo libre</description> 
    6    <language>es-MX</language> 
     4   <description>College</description> 
     5   <language>en-US</language> 
    76   <image>  
    8       <title>MonoNeurona - Minuto x Minuto</title> 
     7      <title>Karamelo - Minuto x Minuto</title> 
    98      <url>http://www.mononeurona.org/img/static/mn-small.png</url> 
    10       <link>http://www.monneurona.org</link> 
     9      <link>http://<?php echo $_SERVER['SERVER_NAME'] ?></link> 
    1110          <width>100</width> 
    1211          <height>71</height> 
    1312   </image> 
    1413<?php  
    15 //exit(print_r($data)); 
    16 foreach ($data as $v) {  // entries  
    17      
     14//exit(debug($data)); 
     15foreach ($data as $v):     
    1816    $body   = substr($v["News"]['body'],0,300) . "..."; 
    1917?> 
     
    2321        <comments><?php echo $_SERVER['SERVER_NAME'] ?>/news/display/<?php echo $v["News"]["id"] ?></comments> 
    2422        <description><![CDATA[<?php echo $body; ?>]]></description> 
    25              <pubdate><?php  echo $v["News"]["created"] ?></pubdate> 
    26          <creator><?php  echo $v["News"]["created"] ?></creator> 
     23             <dc:date><?php  echo $v["News"]["created"] ?></dc:date> 
    2724             <category><?php echo $v["News"]['theme_id']; ?></category> 
    2825        <guid><?php echo $_SERVER['SERVER_NAME'] ?>/news/display/<?php echo $v["News"]["id"] ?></guid> 
    2926    </item> 
    30 <?php } ?>  
     27<?php  
     28endforeach;  
     29?>  
    3130 
    3231</channel> 
    33 </rss> 
  • trunk/app/views/quotes/admin_listing.ctp

    r541 r610  
    11<?php  
    2   echo $html->addCrumb('Control Tools', '/admin/entries/start');  
     2  echo $html->addCrumb('Control Panel', '/admin/entries/start');  
    33  echo $html->getCrumbs(' / ');  
    4   echo $html->div('title_section', 'Quick News'); 
    54 
    6 echo $html->para(null, $html->link($html->image('actions/new.png', array("alt"=>"Add new", "title"=>"Add new")), '#', array("onclick"=>"hU()"), false, false)); ?> 
     5  echo $html->div('title_section', __('Quotes', true)); 
     6 
     7echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>'Add new quote','title'=>'Add new quote')), '#', array("onclick"=>"hU()"), false, false)); ?> 
    78 
    89<div id="trh" style="margin:0;padding:0;padding-left:40px;width:80%;display:none;"> 
    910<?php echo $form->create('Quote', array('action'=>'add', 'onsubmit'=>'return chkData()')); ?> 
    1011 <fieldset> 
    11  <legend>New quote</legend 
     12 <legend><?php __('New quote'); ?></legend> 
    1213   <?php  
    1314   echo $form->input('Quote.quote', array("size" => 60, "maxlength"=>130)); 
  • trunk/app/views/users/entry.ctp

    r541 r610  
    11<?php 
    2 //exit(print_r($data)); 
     2//exit(debug($blog)); 
    33     
    44    $discution =  $data['Entry']['discution']; 
  • trunk/app/webroot/css/rubyx/rubyx.css

    r558 r610  
    141141 
    142142    /* Strip - breadcrumbs */ 
    143     #strip #breadcrumbs {width:520px; margin:0; padding:0;} 
     143    #strip #breadcrumbs {width:420px; margin:0; padding:0;font-size:8pt;font-family:Georgia;float:left;color:black;} 
    144144     
    145145    /* Strip - RSS */