Changeset 635 for trunk/app/views/entries/view.ctp
- Timestamp:
- 07/09/08 19:24:21 (5 months ago)
- Files:
-
- 1 moved
-
trunk/app/views/entries/view.ctp (moved) (moved from trunk/app/views/users/entry.ctp) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/entries/view.ctp
r634 r635 10 10 e($html->div('body_entry', $data['Entry']['body'])); 11 11 12 $pl = ' Permalink: http://' . $_SERVER['SERVER_NAME'] . '/users/entry/'.$blog['User']['username'].'/'.$entry_id;12 $pl = 'http://' . $_SERVER['SERVER_NAME'] . '/entries/view/'.$blog['User']['username'].'/'.$entry_id; 13 13 14 e($html->div('plink', $html->link( $pl, '/users/entry/'.$blog['User']['username'].'/'.$entry_id)));14 e($html->div('plink', $html->link('Permalink: '. $pl, $pl))); 15 15 16 if ( $discution == 1 ) //is the comments in this entry actived by blogger?17 {16 if ( $discution == 1 ): //is the comments in this entry actived by blogger? 17 18 18 if ( $session->check('Auth.User') ): // if user logged, anchor to textarea 19 19 echo $html->div(null, $html->image('static/comment.gif', array('alt'=>'Comments')) . ' Comments:', array('id'=>'comments')); … … 39 39 40 40 echo $form->create('Comment', array('onsubmit'=>'return chkForm()', 'action'=>'add')); 41 echo $form->hidden('Comment.redirect_to', array('value'=>'/ users/entry/'.$blog['User']['username'].'/'.$entry_id));41 echo $form->hidden('Comment.redirect_to', array('value'=>'/entries/view/'.$blog['User']['username'].'/'.$entry_id)); 42 42 echo $form->hidden('Comment.entry_id', array('value'=>$entry_id)); 43 43 … … 55 55 echo $form->error('Comment.comment', 'A comment is required.'); 56 56 57 echo $form->end( 'Send');57 echo $form->end(__('Send', true)); 58 58 echo '</fieldset>'; 59 59 else: 60 echo $html->para(null, $html->link( 'You must be logged in to write a comment', '/users/login'));60 echo $html->para(null, $html->link(__('You must be logged in to write a comment', true), '/users/login')); 61 61 endif; 62 62 63 63 echo "</div>"; 64 }64 endif; 65 65 ?> 66 66 <script type="text/javascript">
