Changeset 635 for trunk/app/views/entries/display.ctp
- Timestamp:
- 07/09/08 19:24:21 (5 months ago)
- Files:
-
- 1 moved
-
trunk/app/views/entries/display.ctp (moved) (moved from trunk/app/views/users/blog.ctp) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/entries/display.ctp
r634 r635 13 13 e($html->div('body_entry', $val['Entry']['body'])); 14 14 15 $pl = ' Permalink: http://' . $_SERVER['SERVER_NAME'] . '/users/entry/'.$val["User"]["username"].'/'.$val['Entry']['id'];15 $pl = 'http://' . $_SERVER['SERVER_NAME'] . '/entries/view/'.$val['User']['username'].'/'.$val['Entry']['id']; 16 16 17 e($html->div('plink',$html->link( $pl, '/users/entry/'.$val["User"]["username"].'/'.$val['Entry']['id'])));17 e($html->div('plink',$html->link('Permalink: '.$pl, $pl))); 18 18 19 19 if ( $val['Entry']['discution'] == 1): //is the comments in this entry actived and is an individual entry? 20 e($html->div('plink', $html->image('static/comentarios.gif', array('alt'=>__('Add comment', true))).' '.$html->link(__('Add comment', true).' ('.count($val['Comment']).')', '/users/entry/'.$val['User']['username'].'/'.$val['Entry']['id'])));20 e($html->div('plink', $html->image('static/comentarios.gif', array('alt'=>__('Add comment', true))).' '.$html->link(__('Add comment', true).' ('.count($val['Comment']).')', $pl))); 21 21 endif; 22 22 endforeach; 23 24 $paginator->options(array('url' => $val['User']['username'])); 25 26 $t = $html->div(null,$paginator->prev('« Previous ',null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left')); 27 $t .= $html->div(null,$paginator->next(' Next »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right')); 28 $t .= $html->div(null,$paginator->counter(), array('style'=>'width:200px;float:center')); 29 echo $html->div(null,$t, array('style'=>'font-size:9pt;width:400px;margin:15px auto;')); 23 30 ?>
