Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
comment_created_admin.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  */
11 ?>
12 
13 <h2><?php echo CommentsModule::t('Comment created')?></h2>
14 
15 <?php $this->renderPartial('/comment/_view', array('comment' => $comment)) ?>
16 
17 <div>
18  <?php if ($comment->status == Comment::APPROVED): ?>
19  <span class="comment-approve">
20  <?php echo CHtml::link(CommentsModule::t('Not approve'), Yii::app()->createAbsoluteUrl('comments/comment/remoteApprove',
21  array('status' => Comment::NOT_APPROVED, 'id' => $comment->id, 'key' => $comment->hash()))
22  );?>
23  </span>
24  <?php else: ?>
25  <span class="comment-approve">
26  <?php echo CHtml::link(CommentsModule::t('Approve'), Yii::app()->createAbsoluteUrl('comments/comment/remoteApprove',
27  array('status' => Comment::APPROVED, 'id' => $comment->id, 'key' => $comment->hash()))
28  );?>
29  </span>
30  <?php endif ?>
31  <?php echo CHtml::link(CommentsModule::t('Delete'), Yii::app()->createAbsoluteUrl('comments/comment/remoteDelete', array('id' => $comment->id, 'key' => $comment->hash()))) ?>
32 </div>
33 
34 <div>
35  <span><?php echo CHtml::link(CommentsModule::t('Page URL'), $pageUrl)?></span>
36 </div>