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

Little fixes

Location:
trunk/app/views/elements
Files:
2 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?>