Show
Ignore:
Timestamp:
04/18/08 14:30:29 (9 months ago)
Author:
aarkerio
Message:

Discussions fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/news/display.ctp

    r401 r409  
    66foreach ($data as $val) 
    77{ 
    8   $tmp  = $html->div('news_title', $html->link($val['News']['title'], '/news/view/'. $val['News']['id'])); 
     8  echo '<div class="wrapnew">'; 
     9  
     10  echo $html->div('news_title', $html->link($val['News']['title'], '/news/view/'. $val['News']['id'])); 
    911   
    10   $tmp .= $html->div('news_date',  $val['News']['created']); 
     12  echo $html->div('news_date',  $val['News']['created']); 
    1113 
    12   $tmp .= $html->div('news_body', 
     14  echo $html->div('news_body', 
    1315                            $html->div('img_new', $html->link( 
    1416                                                          $html->image('themes/'.$val['Theme']['img'],  
     
    2325   
    2426   
    25   $tmp .= $val['News']['body']; 
    26    
    27   if (strlen($val['News']['reference'])  > 5 )  // the reference 
     27  echo $val['News']['body']; 
     28 
     29  if ($val['News']['comments'] == 1 )  // comments enabled on this new 
    2830  { 
    29       $tmp .= $html->div(null, $html->link('Reference', $val['News']['reference'])); 
    30   } 
    31     
    32   if ($val['News']['comments'] == 1 )  // the reference 
    33   { 
    34     $tmp .= $html->div(null, $html->link('Put your comment', '/news/view/'.$val['News']['id'])); 
     31    echo $html->para(null, $html->link('Put your comment', '/news/view/'.$val['News']['id'])); 
    3532  }  
    36   echo $html->div('wrapnew', $tmp);  
     33 
     34 
     35?> 
     36  <br /> 
     37    <span style="font-size:7pt;">Permalink:</span> <br /> 
     38    <?php echo $html->link( 
     39               'http://'.$_SERVER['SERVER_NAME'].'/news/view/'.$val['News']['id'],  
     40                           'http://'.$_SERVER['SERVER_NAME'].'/news/view/'.$val['News']['id'] 
     41               );  
     42?> 
     43    <br /><br /> 
     44    <b>Reference:</b> 
     45     
     46    <?php echo $html->link( 
     47                           $html->image('static/newwindow.gif', array("alt"=>"Open new window", "title"=>"Open new window")), 
     48                           $val['News']['reference'], 
     49                           array("onclick"=>"window.open(this.href, '_help', 'status,scrollbars,resizable,width=800,height=600,left=10,top=10,menubar,toolbar')"),  
     50                           null, 
     51                           null, 
     52                           false); 
     53       
     54echo $news->socialNets($val['News']['id'], $val['News']['title']); // Social nets buttons 
     55       
     56     
     57 
     58  echo '</div>'; 
    3759 } 
    3860?>