32 lines
775 B
PHTML
32 lines
775 B
PHTML
|
|
<?php if (! empty($this->comments)): ?>
|
|
<?
|
|
$list = array();
|
|
foreach ($this->comments as $comment) {
|
|
if ($this->ticket_pattern) {
|
|
$text = preg_replace(
|
|
$this->ticket_pattern,
|
|
$this->ticket_link,
|
|
$this->escape($comment->comment_data)
|
|
);
|
|
} else {
|
|
$text = $this->escape($comment->comment_data);
|
|
}
|
|
$list[] = sprintf(
|
|
'[%s] %s (%s): %s',
|
|
$this->escape($comment->comment_author),
|
|
$this->format()->timeSince($comment->comment_timestamp),
|
|
$comment->comment_type,
|
|
$text
|
|
);
|
|
}
|
|
?>
|
|
<div class="information-container">
|
|
<div class="head">
|
|
<span>Comments</span>
|
|
</div>
|
|
|
|
<blockquote> <?= implode('<br />', $list) ?></blockquote>
|
|
</div>
|
|
|
|
<?php endif; ?> |