12 <section
class=
"comments-list-widget co mments" id=
"comments-list-<?php echo $this->contentId?>">
13 <?php echo CHtml::link(
'',
'#', array(
'name' =>
'list_' . $this->contentId,
'class' =>
'anchor')) ?>
14 <h6
class=
"section-title"><?php echo
CommentsModule::t(
'Comments')?> (<?php echo $commentsCountWithChildren?>)</h6>
15 <?php
if ($message = Yii::app()->user->getFlash(
'commentDeleteError' . $this->contentId)) { ?>
16 <div
class=
"flash-error">
20 <?php
if ($message = Yii::app()->user->getFlash(
'commentDeleteSuccess' . $this->contentId)) { ?>
21 <div
class=
"flash-success">
25 <?php
if ($message = Yii::app()->user->getFlash(
'commentApproveSuccess' . $this->contentId)) { ?>
26 <div
class=
"flash-success">
30 <?php
if (count($comments) > 0) { ?>
31 <ol
class=
"comments-list">
32 <?php
foreach ($comments as $comment) { ?>
33 <?php echo $this->render(
'_comment', array(
'comment' => $comment)) ?>
36 <?php $this->render(
'_pagination', array(
'commentsTotal' => $commentsTotal)) ?>
37 <?php
if ($this->oneLevelReply && !empty($this->contentId)) { ?>
38 <script type=
"text/javascript">
41 comments: <?php echo CJSON::encode($this->getSafeCommentAttributes($comments))?>,
43 form:
"#comments-form-<?php echo $this->contentId?>",
44 commentsList:
"#comments-list-<?php echo $this->contentId?>"