Changeset 634
- Timestamp:
- 07/09/08 13:23:48 (3 months ago)
- Location:
- trunk/app
- Files:
-
- 1 added
- 8 modified
-
controllers/users_controller.php (modified) (3 diffs)
-
locale/spa/LC_MESSAGES/default.po (modified) (1 diff)
-
views/elements/acquaintances.ctp (modified) (1 diff)
-
views/layouts/portal.ctp (modified) (1 diff)
-
views/layouts/rubyx.ctp (modified) (1 diff)
-
views/users/blog.ctp (modified) (1 diff)
-
views/users/entry.ctp (modified) (1 diff)
-
views/users/portfolio.ctp (modified) (1 diff)
-
webroot/img/static/comentarios.gif (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/users_controller.php
r633 r634 66 66 public function entry($username, $entry_id) 67 67 { 68 if ($entry_id == null) 69 { 68 if ($entry_id == null): 70 69 $this->redirect('/blog/'.$username); 71 exit;72 }70 return false; 71 endif; 73 72 74 73 $this->pageTitle = $username . '\'s Blog'; … … 76 75 $user_id = $this->User->field("id", array("username"=>$username)); 77 76 78 if ($username == null || $user_id == null) 79 { 77 if ($username == null || $user_id == null): 80 78 $this->redirect("/"); 81 }79 endif; 82 80 83 81 $this->Entry = new Entry; … … 87 85 $fields = array("Entry.title", "Entry.body", "Entry.created", "Entry.user_id", "Entry.discution", "Entry.subject_id", "Entry.id", "User.username", "Subject.title", "Subject.id"); 88 86 89 if ( $entry_id != null && is_numeric( $entry_id ) ): // show only one new87 if ( $entry_id != null && is_numeric( $entry_id ) ): // show only one new 90 88 $conditions = array("Entry.user_id"=>$user_id, "Entry.id"=>$entry_id); 91 89 endif; -
trunk/app/locale/spa/LC_MESSAGES/default.po
r633 r634 76 76 msgid "Acquaintances" 77 77 msgstr "Ligas amigas" 78 79 msgid "View all lessons" 80 msgstr "Ver todas las lecciones" 81 82 msgid "Useful links" 83 msgstr "Ligas útiles" 78 84 79 85 msgid "Allow comments" -
trunk/app/views/elements/acquaintances.ctp
r445 r634 1 1 <?php 2 echo $html->div('temas', __('Useful links', true)); 2 3 3 echo $html->div('temas', 'Useful links'); 4 5 foreach ($blog["Acquaintance"] as $val) 6 { 7 echo '<a class="petit" href="'.$val['url'].'">>'. $val['name'] . '</a><br />'; 8 } 4 foreach ($blog["Acquaintance"] as $val): 5 echo $html->link('>'. $val['name'], $val['url'], aa('class', 'petit')).'<br />'; 6 endforeach; 9 7 10 8 ?> -
trunk/app/views/layouts/portal.ctp
r611 r634 122 122 123 123 echo $html->link('Karamelo Demo', 'http://www.chipotle-software.com/index.php?id=9', array("id"=>"Demo")); 124 125 echo $html->div(null, $html->image('static/beta.gif', array('alt'=>'Beta')), array('style'=>'position:absolute;top:10px;left:210px;width:80px')); 124 126 ?> 125 127 </body> -
trunk/app/views/layouts/rubyx.ctp
r629 r634 54 54 <ul class="box"> 55 55 <?php 56 $url = substr($_SERVER['argv'][0], 4, 10);57 echo ($ url == 'users/blog') ? '<li id="active">' : '<li>'; ?>58 <a href="/ users/blog/<?php echo $blog['User']['username'] ?>">eduBlog<span class="tab-l"></span><span class="tab-r"></span></a></li>56 57 echo ($this->action == 'blog' || $this->action == 'entry') ? '<li id="active">' : '<li>'; ?> 58 <a href="/blog/<?php echo $blog['User']['username'] ?>">eduBlog<span class="tab-l"></span><span class="tab-r"></span></a></li> 59 59 60 <?php echo ($ url == 'users/port') ? '<li id="active">' : '<li>'; ?>60 <?php echo ($this->action == 'portfolio') ? '<li id="active">' : '<li>'; ?> 61 61 <a href="/users/portfolio/<?php echo $blog['User']['username'] ?>">Portfolio<span class="tab-l"></span><span class="tab-r"></span></a></li> 62 62 63 <?php echo ($ url == 'users/abou') ? '<li id="active">' : '<li>'; ?>63 <?php echo ($this->action == 'aboutme') ? '<li id="active">' : '<li>'; ?> 64 64 <a href="/vclassrooms/aboutme/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li> 65 65 66 <?php echo ($ url == 'messages/c') ? '<li id="active">' : '<li>'; ?>66 <?php echo ($this->action == 'message') ? '<li id="active">' : '<li>'; ?> 67 67 <a href="/messages/message/<?php echo $blog['User']['username'] ?>">Contact<span class="tab-l"></span><span class="tab-r"></span></a></li> 68 68 -
trunk/app/views/users/blog.ctp
r633 r634 18 18 19 19 if ( $val['Entry']['discution'] == 1): //is the comments in this entry actived and is an individual entry? 20 e($html->div('plink',$html->link(__('Add comment', true).' ('.count($val['Comment']).')', '/users/entry/'.$val['User']["username"].'/'.$val['Entry']['id'])));20 e($html->div('plink', $html->image('static/comentarios.gif', array('alt'=>__('Add comment', true))).' '.$html->link(__('Add comment', true).' ('.count($val['Comment']).')', '/users/entry/'.$val['User']['username'].'/'.$val['Entry']['id']))); 21 21 endif; 22 22 endforeach; -
trunk/app/views/users/entry.ctp
r633 r634 19 19 echo $html->div(null, $html->image('static/comment.gif', array('alt'=>'Comments')) . ' Comments:', array('id'=>'comments')); 20 20 else: 21 echo '<div id="comments">' . $html->image('static/comment.gif', array("alt"=>"Comments")) .' Comments:<a style="font-size:7pt" href="#new_comment">>></a></div>';21 echo '<div id="comments">'.$html->image('static/comment.gif',array("alt"=>"Comments")) .' Comments:<a style="font-size:7pt" href="#new_comment">>></a></div>'; 22 22 endif; 23 23 -
trunk/app/views/users/portfolio.ctp
r431 r634 50 50 <div class="portfolio" id="exams" onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');"> 51 51 <?php echo $html->link($html->image('admin/tests.png', array("title"=>"Exams", "alt"=>"Exams")), '/tests/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false); ?><br /> 52 Exams52 Tests 53 53 </div> 54 54 <div class="portfolio" id="links" onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');">
