Changeset 629

Show
Ignore:
Timestamp:
07/07/08 18:00:27 (3 months ago)
Author:
aarkerio
Message:

Little fixes

Location:
trunk/app/views
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/elements/lesson.ctp

    r242 r629  
    1 <div class="temas">Lessons</div> 
    21<?php 
    32//die(var_dump($blog[0]["Lesson"])); 
     3echo $html->div('temas', __('Lessons', true)); 
    44 
    5 foreach ($blog["Lesson"] as $key => $val)  
    6 { 
    7       echo $html->link($val['title'], '/lessons/view/'.$blog["User"]["username"].'/'.$val['id'], array("class"=>"petit")) . '<br />'; 
    8 } 
     5foreach ($blog["Lesson"] as $val): 
     6      echo $html->link($val['title'], '/lessons/view/'.$blog['User']['username'].'/'.$val['id'], array('class'=>'petit')) . '<br />'; 
     7endforeach; 
    98 
    10 echo '<p>'. $html->link('View all Lessons', '/lessons/display/'.$blog['User']['username'], array("class"=>"petit")) . '</p>'; 
     9echo $html->para(null, $html->link('View all Lessons', '/lessons/display/'.$blog['User']['username'], array("class"=>"petit"))); 
    1110 
    1211?> 
  • trunk/app/views/elements/podcast.ctp

    r313 r629  
    1 <div class="temas">Podcasts</div> 
    21<?php 
    3 foreach ($blog["Podcast"] as $key => $val)  
    4 { 
    5   echo '<a class="petit" href="/podcasts/show/'.$val['user_id'].'/'. $val['id'] . '">&gt;'. $val['title'] . '</a><br />'; 
    6 } 
     2echo $html->div('temas', 'Podcasts'); 
    73 
     4foreach ($blog["Podcast"] as $val): 
     5  echo $html->link('>&gt;'. $val['title'], '/podcasts/show/'.$val['user_id'].'/'.$val['id'], array('class'=>'petit')) . '<br />'; 
     6endforeach; 
    87 
    9 echo '<p><a class="petit" href="/podcasts/display/'.$val['user_id'].'">View all podcast</a></p>'; 
     8echo $html->para(null, $html->link(__('View all podcast', true), '/podcasts/display/'.$val['user_id'], aa('class', 'petit'))'; 
    109 
    1110?> 
  • trunk/app/views/layouts/rubyx.ctp

    r617 r629  
    9898<?php  
    9999 if ( $blog["Vclassroom"] != null):  
    100      echo $this->element('vclassrooms', $blog["Vclassroom"]);   
     100     echo $this->element('vclassrooms', $blog['Vclassroom']);   
    101101 endif; 
    102102 
     
    112112     
    113113 if ( $blog["Lesson"] != null ): 
    114       echo $this->element('lesson', $blog["Lesson"]);   
     114      echo $this->element('lesson', $blog['Lesson']);   
    115115 endif;  
    116116          
    117117 if ( $blog["Podcast"] != null ):  
    118       echo $this->element('podcast', $blog["Podcast"]);   
     118      echo $this->element('podcast', $blog['Podcast']);   
    119119 endif; 
    120120          
    121121 if ( $blog["Catfaq"] != null ):  
    122       echo $this->element('catfaqs', $blog["Catfaq"]);   
     122      echo $this->element('catfaqs', $blog['Catfaq']);   
    123123 endif; 
    124124          
    125125 if ( $blog["Acquaintance"] != null ):  
    126        echo $this->element('acquaintances', $blog["Acquaintance"]);   
     126     echo $this->element('acquaintances', $blog['Acquaintance']);   
    127127 endif; 
    128128         
    129 /* maybe remove this later 
    130 if ( $blog["Catforum"] != null)  
    131 { 
    132          echo $this->element('catforums', $blog["Catforum"]);   
    133 } 
    134 */ 
    135129 
    136130 if ( $session->check('Auth.User') ):   
    137       e($html->para($html->link( 
    138                            $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')),  
    139                            '/users/login', false, false, null), aa('style', 'text-align:center;margin:35px 0 35px 0')));  
     131      e($html->para(null, $html->link( 
     132                           $html->image('static/login.png', array('alt'=>'Login', 'title'=>'Login')),  
     133                           '/users/login', false, false, null), array('style'=>'text-align:center;margin:35px 0 35px 0')));  
    140134 endif;  
    141135