13 <li
class=
"comment <?php echo !empty($isChild) ? 'child' : ''?>" id=
"comment-<?php echo $comment->id; ?>">
15 <img src=
"<?php echo $this->getAvatar($comment)?>" alt=
"Profile" class=
"avatar" />
17 <div
class=
"comment-meta">
19 <?php echo CHtml::link(CHtml::encode($comment->firstname .
' ' . $comment->lastname),
'#');?>
20 <?php
if ($this->canReply()) { ?>
21 - <?php echo CHtml::link(
CommentsModule::t(
'Reply'),
'javascript:void(0)', array(
'id' => $comment->id,
'class' =>
'comment-reply-link')); ?>
25 <p
class=
"date"><?php echo Yii::app()->dateFormatter->formatDateTime($comment->createtime);?></p>
27 <div
class=
"comment-body">
28 <h6
class=
"comment-subject"><?php echo CHtml::encode($comment->subject);?></h6>
30 <p
class=
"comment-message"><?php echo nl2br(CHtml::encode($comment->description));?></p>
34 <span
class=
"comment-delete">
36 Yii::app()->createUrl(
'comments/comment/delete', array(
'id' => $comment->id,
'key' => $this->hash,
'return_url' => Yii::app()->request->getRequestUri())) :
'javascript:void(0)'
40 <?php
if ($comment->status == Comment::APPROVED) { ?>
41 <span
class=
"comment-approve">
42 <?php echo CHtml::link(
CommentsModule::t(
'Not approve'), !$this->isPreview ? Yii::app()->createUrl(
'comments/comment/approve',
43 array(
'status' =>
Comment::NOT_APPROVED,
'id' => $comment->id,
'key' => $this->hash,
'return_url' => Yii::app()->request->getRequestUri())) :
'javascript:void(0)'
46 <span
class=
"comment-approve">
48 !$this->isPreview ? Yii::app()->createUrl(
'comments/comment/approve', array(
'status' => Comment::APPROVED,
'id' => $comment->id,
'key' => $this->hash,
'return_url' => Yii::app()->request->getRequestUri())) :
'javascript:void(0)'
55 <?php
if ($this->oneLevelReply && empty($isChild) && count($comment->childs) > 0) { ?>
57 <?php
foreach ($comment->childs as $child) { ?>
58 <?php echo $this->render(
'_comment', array(
'comment' => $child,
'isChild' =>
true)) ?>