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/display.ctp

    r653 r654  
    1515                                                                            array('alt'=>$val['Theme']['theme'],  
    1616                                                                                   'title'=>$val['Theme']['theme'],  
    17                                                                                    'class'=>'themes') 
     17                                                                                   'class'=>'themes', 'id'=>'new'.$val['News']['id']) 
    1818                                                                           ),  
    1919                                  '/news/category/'.$val['News']['theme_id'], null, null, false 
    2020                                                   ) 
    21                                       ) 
     21                       ) 
    2222                    );   
    2323   
     
    2828     e($html->para(null,$html->link(__('Put your comment', true).' ('. count($val['Discussion']).')','/news/view/'.$val['News']['id']))); 
    2929  endif; 
    30 ?> 
    31   <br /> 
    32     <span style="font-size:7pt;">Permalink:</span> <br /> 
    33     <?php echo $html->link( 
     30 
     31  echo $html->para(null,   '<span style="font-size:7pt;">Permalink:</span> ' .$html->link( 
    3432               'http://'.$_SERVER['HTTP_HOST'].'/news/view/'.$val['News']['id'], 
    3533                           'http://'.$_SERVER['HTTP_HOST'].'/news/view/'.$val['News']['id'] 
    36                );  
    37 ?> 
    38     <br /><br /> 
    39     <b><?php __('Reference'); ?>:</b> 
     34                           ));  
     35if ( strlen($val['News']['reference'])  > 10) : 
    4036     
    41     <?php echo $html->link( 
    42                            $html->image('static/newwindow.gif', array("alt"=>"Open new window", "title"=>"Open new window")), 
    43                            $val['News']['reference'], 
    44                            array("onclick"=>"window.open(this.href, '_help', 'status,scrollbars,resizable,width=800,height=600,left=10,top=10,menubar,toolbar')"),  
    45                            null, 
    46                            null, 
    47                            false); 
    48        
     37   echo $html->para(null, __('Reference', true). ' ' .$html->link( 
     38                           $html->image('static/newwindow.gif', array('alt'=>'Open new window', 'title'=>'Open new window')), 
     39                           '#new'.$val['News']['id'], 
     40                           array("onclick"=>"window.open('".$val['News']['reference']."', '_help', 'status,scrollbars,resizable,width=800,height=600,left=10,top=10,menubar,toolbar')"), null, null, false)); 
     41endif;     
     42   
    4943  echo $news->socialNets($val['News']['id'], $val['News']['title']); // Social nets buttons 
    5044