Changeset 629
- Timestamp:
- 07/07/08 18:00:27 (3 months ago)
- Location:
- trunk/app/views
- Files:
-
- 3 modified
-
elements/lesson.ctp (modified) (1 diff)
-
elements/podcast.ctp (modified) (1 diff)
-
layouts/rubyx.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/lesson.ctp
r242 r629 1 <div class="temas">Lessons</div>2 1 <?php 3 2 //die(var_dump($blog[0]["Lesson"])); 3 echo $html->div('temas', __('Lessons', true)); 4 4 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 } 5 foreach ($blog["Lesson"] as $val): 6 echo $html->link($val['title'], '/lessons/view/'.$blog['User']['username'].'/'.$val['id'], array('class'=>'petit')) . '<br />'; 7 endforeach; 9 8 10 echo '<p>'. $html->link('View all Lessons', '/lessons/display/'.$blog['User']['username'], array("class"=>"petit")) . '</p>';9 echo $html->para(null, $html->link('View all Lessons', '/lessons/display/'.$blog['User']['username'], array("class"=>"petit"))); 11 10 12 11 ?> -
trunk/app/views/elements/podcast.ctp
r313 r629 1 <div class="temas">Podcasts</div>2 1 <?php 3 foreach ($blog["Podcast"] as $key => $val) 4 { 5 echo '<a class="petit" href="/podcasts/show/'.$val['user_id'].'/'. $val['id'] . '">>'. $val['title'] . '</a><br />'; 6 } 2 echo $html->div('temas', 'Podcasts'); 7 3 4 foreach ($blog["Podcast"] as $val): 5 echo $html->link('>>'. $val['title'], '/podcasts/show/'.$val['user_id'].'/'.$val['id'], array('class'=>'petit')) . '<br />'; 6 endforeach; 8 7 9 echo '<p><a class="petit" href="/podcasts/display/'.$val['user_id'].'">View all podcast</a></p>';8 echo $html->para(null, $html->link(__('View all podcast', true), '/podcasts/display/'.$val['user_id'], aa('class', 'petit'))'; 10 9 11 10 ?> -
trunk/app/views/layouts/rubyx.ctp
r617 r629 98 98 <?php 99 99 if ( $blog["Vclassroom"] != null): 100 echo $this->element('vclassrooms', $blog[ "Vclassroom"]);100 echo $this->element('vclassrooms', $blog['Vclassroom']); 101 101 endif; 102 102 … … 112 112 113 113 if ( $blog["Lesson"] != null ): 114 echo $this->element('lesson', $blog[ "Lesson"]);114 echo $this->element('lesson', $blog['Lesson']); 115 115 endif; 116 116 117 117 if ( $blog["Podcast"] != null ): 118 echo $this->element('podcast', $blog[ "Podcast"]);118 echo $this->element('podcast', $blog['Podcast']); 119 119 endif; 120 120 121 121 if ( $blog["Catfaq"] != null ): 122 echo $this->element('catfaqs', $blog[ "Catfaq"]);122 echo $this->element('catfaqs', $blog['Catfaq']); 123 123 endif; 124 124 125 125 if ( $blog["Acquaintance"] != null ): 126 echo $this->element('acquaintances', $blog["Acquaintance"]);126 echo $this->element('acquaintances', $blog['Acquaintance']); 127 127 endif; 128 128 129 /* maybe remove this later130 if ( $blog["Catforum"] != null)131 {132 echo $this->element('catforums', $blog["Catforum"]);133 }134 */135 129 136 130 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), a a('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'))); 140 134 endif; 141 135
