24 lines
625 B
PHTML
24 lines
625 B
PHTML
<?php if (!empty($object->comments)): ?>
|
|
<?
|
|
$commets = array();
|
|
foreach ($object->comments as $comment) {
|
|
$text = $this->escape($comment->comment_data);
|
|
$commets[] = sprintf(
|
|
'[%s] %s (%s): %s',
|
|
$this->escape($comment->comment_author),
|
|
$this->format()->timeSince($comment->comment_timestamp),
|
|
$comment->comment_type,
|
|
$text
|
|
);
|
|
}
|
|
?>
|
|
<div class="panel panel-default ">
|
|
<div class="panel-heading">
|
|
<span>{{COMMENT_ICON}} Comments</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<blockquote> <?= implode('<br />', $commets); ?></blockquote>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|