Changeset 537 for trunk/app/views/news/view.ctp
- Timestamp:
- 05/20/08 20:43:23 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/news/view.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/news/view.ctp
r497 r537 1 1 <?php 2 // die(debug($data)); 2 3 echo $html->div('titnew', $data['News']['title']); 3 4 … … 8 9 <?php 9 10 10 echo $html->div('img_new', $html->link(11 echo $html->div('img_new', $html->link( 11 12 $html->image('themes/'.$data['Theme']['img'], 12 13 array("alt"=>$data['Theme']['theme'], "title"=>$data['Theme']['theme'], "class"=>"themes")), … … 14 15 null, null, false)); 15 16 16 echo $data['News']['body'];17 echo $data['News']['body']; 17 18 ?> 18 19 … … 43 44 foreach($data['Discussion'] as $v) 44 45 { 45 $bg = ($i%2==0) ? "#e2e2e2" : "#fff"; 46 47 echo '<div class="comentnew" style="background-color:'.$bg.'">'; 48 echo $time->timeAgoInWords($v['created']) . ' <b>'. $v['username'] . '</b> wrote:<br />'; 49 echo $v["comment"]; 50 echo "</div>"; 46 $bg = ($i%2 == 0) ? "#e2e2e2" : "#fff"; 47 48 $tmp = $html->para(null,$time->timeAgoInWords($v['created']) . ' <b>'. $v['username'] . '</b> wrote:<br />', array('style'=>'font-size:8pt;font-family:Georgia;')); 49 $tmp .= $html->para(null, $v['comment']); 50 echo $html->div('divblock', $tmp, array('style'=>'background-color:'.$bg)); 51 51 $i++; 52 52 }
