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->widget(
'comments.widgets.CommentLinkPager',
39 'contentId' => $this->contentId,
40 'htmlOptions' => array(
'class'=>
'pagination'),
46 <?php
if ($this->oneLevelReply && !empty($this->contentId)) { ?>
47 <script type=
"text/javascript">
50 comments: <?php echo CJSON::encode($this->getSafeCommentAttributes($comments))?>,
52 form:
"#comments-form-<?php echo $this->contentId?>",
53 commentsList:
"#comments-list-<?php echo $this->contentId?>"