Show
Ignore:
Timestamp:
07/15/08 15:38:15 (4 months ago)
Author:
aarkerio
Message:

Update

Files:
1 modified

Legend:

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

    r636 r654  
    1717  
    1818 echo $data['News']['body'];  
    19 ?> 
    2019     
    21     <br /> 
    22     <span style="font-size:7pt;">Permalink:</span> <br /> 
    23     <?php echo $html->link( 
     20 echo $html->para(null,'<span style="font-size:7pt;">Permalink:</span><br /> '.$html->link( 
    2421               'http://'.$_SERVER['HTTP_HOST'].'/news/view/'.$data['News']['id'],  
    2522                           'http://'.$_SERVER['HTTP_HOST'].'/news/view/'.$data['News']['id'] 
    26                );  
    27 ?> 
    28     <br /><br /> 
    29     <b>Reference:</b> 
    30      
    31     <?php echo $html->link( 
    32                            $html->image('static/newwindow.gif', array("alt"=>"Open new window", "title"=>"Open new window")), 
    33                            $data['News']['reference'], 
    34                            array("onclick"=>"window.open(this.href, '_help', 'status,scrollbars,resizable,width=800,height=600,left=10,top=10,menubar,toolbar')"),  
    35                            null, 
    36                            null, 
    37                            false); 
     23               ));  
     24 
     25if ( strlen($data['News']['reference'])  > 10) : 
     26 
     27 echo $html->para(null, __('Reference', true) .': '. $html->link( 
     28                           $html->image('static/newwindow.gif', 
     29                                     array('alt'=>__('Open new window', true), 'title'=>__('Open new window', true))), 
     30                           '#', 
     31                           array("onclick"=>"window.open('".$data['News']['reference']."', '_help', 'status,scrollbars,resizable,width=800,height=600,left=10,top=10,menubar,toolbar')"), null, null, false)); 
     32endif; 
    3833       
    3934echo $news->socialNets($data['News']['id'], $data['News']['title']); // Social nets buttons 
     
    4742      $bg = ($i%2 == 0) ? "#e2e2e2" : "#fff"; 
    4843           
    49       $tmp  = $html->para(null,$time->timeAgoInWords($v['created']) . ' <b>'. $v['User']['username']    . '</b> wrote:<br />', array('style'=>'font-size:8pt;font-family:Georgia;')); 
     44      $tmp  = $html->para(null,  
     45              $html->link($html->image('avatars/'.$v['User']['avatar'], array('width'=>'20px','alt'=>$v['User']['username'],'title'=>$v['User']['username'])), '/users/about/'.$v['User']['username'], null, null, false) .' '. 
     46              $html->link($v['User']['username'], '/users/about/'.$v['User']['username']).'<br />'. 
     47              $html->image('static/time.png', array('alt'=>'Time')).' '.$time->timeAgoInWords($v['created']), array('style'=>'font-size:8pt;font-family:Georgia;')); 
    5048      $tmp .= $html->para(null, $v['comment']); 
    5149      echo $html->div('divblock', $tmp, array('style'=>'background-color:'.$bg));