Changeset 610
- Timestamp:
- 06/16/08 23:05:09 (5 months ago)
- Location:
- trunk/app
- Files:
-
- 10 modified
-
controllers/components/edublog.php (modified) (5 diffs)
-
locale/spa/LC_MESSAGES/default.po (modified) (1 diff)
-
views/images/admin_listing.ctp (modified) (1 diff)
-
views/layouts/admin.ctp (modified) (2 diffs)
-
views/layouts/rss.ctp (modified) (1 diff)
-
views/layouts/rubyx.ctp (modified) (2 diffs)
-
views/news/rss.ctp (modified) (2 diffs)
-
views/quotes/admin_listing.ctp (modified) (1 diff)
-
views/users/entry.ctp (modified) (1 diff)
-
webroot/css/rubyx/rubyx.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/components/edublog.php
r422 r610 32 32 33 33 // 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'), 36 36 'belongsTo' => array('Group') 37 37 ) 38 ) ;39 38 ) */; 39 $this->User->unbindAll(); 40 40 // Temporal bind 41 41 $this->User->bindModel( … … 46 46 'order' => 'Podcast.created DESC', 47 47 'limit' => '10', 48 'fields' => 'id, title, length', 48 49 'foreignKey' => 'user_id', 49 50 'dependent' => true, … … 56 57 'order' => 'Lesson.created DESC', 57 58 'limit' => '10', 59 'fields' => 'id, title', 58 60 'foreignKey' => 'user_id', 59 61 'dependent' => true, … … 81 83 'finderQuery' => '' 82 84 ), 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 ),93 85 'Vclassroom' => 94 86 array('className' => 'Vclassroom', 95 87 'conditions' => array('Vclassroom.status' => 1, 'Vclassroom.user_id' => $user_id), 96 'order' => 'Vclassroom. createdDESC',97 'limit' => '1 0',88 'order' => 'Vclassroom.name DESC', 89 'limit' => '12', 98 90 'foreignKey' => 'user_id', 99 91 'dependent' => true, … … 101 93 'finderQuery' => '' 102 94 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 ) 104 108 ) 105 109 ) 106 110 ); 107 111 $this->User->Acquaintance->unbindAll(); 112 $this->User->Podcast->unbindAll(); 113 $this->User->Lesson->unbindAll(); 114 $this->User->Vclassroom->unbindAll(); 115 108 116 $conditions = array("User.id"=>$user_id, "User.active"=>1); 109 117 $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 143 143 msgstr "Imágenes" 144 144 145 msgid "Upload Image" 146 msgstr "Subir Imagen" 147 145 148 msgid "Teacher tools" 146 149 msgstr "Herramientas pedagógicas" -
trunk/app/views/images/admin_listing.ctp
r541 r610 1 1 <?php 2 2 //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 } 3 if ( $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; 9 else: 10 $return = 'set'; 11 endif; 15 12 ?> 16 13 -
trunk/app/views/layouts/admin.ctp
r582 r610 5 5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 6 6 <head> 7 <title>Karamelo : Control Panel</title>7 <title>Karamelo</title> 8 8 <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 9 9 <!--[if gte IE 5.5]> … … 30 30 <div id="header"> 31 31 <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'); ?> 34 34 </div> 35 35 <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> | 37 37 <?php 38 38 echo $html->link($session->read('Auth.User.username') . '\'s blog', '/blog/'. $session->read('Auth.User.username')) . ' | '; 39 39 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 ?> 41 42 </div> 42 43 </div><!-- header ends--> -
trunk/app/views/layouts/rss.ctp
r492 r610 1 1 <?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/"> 3 3 <?php echo $content_for_layout; ?> 4 4 </rss> -
trunk/app/views/layouts/rubyx.ctp
r574 r610 75 75 76 76 <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 ?> 77 82 78 83 <!-- RSS feeds --> 79 < pid="rss"><strong>RSS:</strong>84 <div id="rss"><strong>RSS:</strong> 80 85 <?php 81 86 e($html->link('Blog', '/entries/rss/'.$blog['User']['username']) . '/'); 82 87 e($html->link('Podcast', '/podcasts/rss/'.$blog['User']['username'])); 83 88 ?> 84 </p> 85 86 <hr class="noscreen" /> 89 </div> 87 90 </div> <!-- /strip --> 88 91 <!-- 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'));?> 90 93 <!-- /content --> 91 94 <!-- Right column --> … … 93 96 <div id="col-in"> 94 97 <?php 95 if ( $blog["Vclassroom"] != null) 96 { 98 if ( $blog["Vclassroom"] != null): 97 99 echo $this->element('vclassrooms', $blog["Vclassroom"]); 98 }100 endif; 99 101 100 102 echo $html->div('temas', $blog['User']['username'] . ' profile'); -
trunk/app/views/news/rss.ctp
r238 r610 1 <rss version="2.0">2 1 <channel> 3 <title>:: MonoNeuronaRSS::</title>2 <title>::Karamelo RSS::</title> 4 3 <link>http://<?php echo $_SERVER['SERVER_NAME'] ?></link> 5 <description> Noticias del mundo libre</description>6 <language>e s-MX</language>4 <description>College</description> 5 <language>en-US</language> 7 6 <image> 8 <title> MonoNeurona- Minuto x Minuto</title>7 <title>Karamelo - Minuto x Minuto</title> 9 8 <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> 11 10 <width>100</width> 12 11 <height>71</height> 13 12 </image> 14 13 <?php 15 //exit(print_r($data)); 16 foreach ($data as $v) { // entries 17 14 //exit(debug($data)); 15 foreach ($data as $v): 18 16 $body = substr($v["News"]['body'],0,300) . "..."; 19 17 ?> … … 23 21 <comments><?php echo $_SERVER['SERVER_NAME'] ?>/news/display/<?php echo $v["News"]["id"] ?></comments> 24 22 <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> 27 24 <category><?php echo $v["News"]['theme_id']; ?></category> 28 25 <guid><?php echo $_SERVER['SERVER_NAME'] ?>/news/display/<?php echo $v["News"]["id"] ?></guid> 29 26 </item> 30 <?php } ?> 27 <?php 28 endforeach; 29 ?> 31 30 32 31 </channel> 33 </rss> -
trunk/app/views/quotes/admin_listing.ctp
r541 r610 1 1 <?php 2 echo $html->addCrumb('Control Tools', '/admin/entries/start');2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 3 echo $html->getCrumbs(' / '); 4 echo $html->div('title_section', 'Quick News');5 4 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 7 echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>'Add new quote','title'=>'Add new quote')), '#', array("onclick"=>"hU()"), false, false)); ?> 7 8 8 9 <div id="trh" style="margin:0;padding:0;padding-left:40px;width:80%;display:none;"> 9 10 <?php echo $form->create('Quote', array('action'=>'add', 'onsubmit'=>'return chkData()')); ?> 10 11 <fieldset> 11 <legend> New quote</legend12 <legend><?php __('New quote'); ?></legend> 12 13 <?php 13 14 echo $form->input('Quote.quote', array("size" => 60, "maxlength"=>130)); -
trunk/app/views/users/entry.ctp
r541 r610 1 1 <?php 2 //exit( print_r($data));2 //exit(debug($blog)); 3 3 4 4 $discution = $data['Entry']['discution']; -
trunk/app/webroot/css/rubyx/rubyx.css
r558 r610 141 141 142 142 /* 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;} 144 144 145 145 /* Strip - RSS */
