Changeset 588 for trunk/app/views/news
- Timestamp:
- 06/04/08 21:38:38 (6 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/news/display.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/news/display.ctp
r587 r588 4 4 echo $html->div('title_portal', __("news_campus", true)); 5 5 6 foreach ($data as $val) 7 { 6 foreach ($data as $val): 7 8 8 echo '<div class="wrapnew">'; 9 9 10 echo $html->div('news_title', $html->link($val['News']['title'], '/news/view/'. $val['News']['id'])); 11 10 echo $html->div('news_title', $html->link($val['News']['title'], '/news/view/'. $val['News']['id'])); 12 11 echo $html->div('news_date', $val['News']['created']); 13 14 12 echo $html->div('news_body', 15 13 $html->div('img_new', $html->link( … … 27 25 echo $val['News']['body']; 28 26 29 if ($val['News']['comments'] == 1 ) // comments enabled on this new 30 { 31 echo $html->para(null, $html->link('Put your comment', '/news/view/'.$val['News']['id'])); 32 } 33 34 27 if ($val['News']['comments'] == 1 ): // comments enabled on this new 28 echo $html->para(null, $html->link(__(' 29 Put your comment', true), '/news/view/'.$val['News']['id'])); 30 endif; 35 31 ?> 36 32 <br /> … … 42 38 ?> 43 39 <br /><br /> 44 <b> Reference:</b>40 <b><?php __('Reference'); ?>:</b> 45 41 46 42 <?php echo $html->link( … … 57 53 58 54 echo '</div>'; 59 } 55 endforeach; 60 56 ?>
