19 lines
835 B
PHP
19 lines
835 B
PHP
<div class="flex flex-col w-100">
|
|
<?= insert('/content/user/profile/header', ['data' => $data]); ?>
|
|
<div class="flex gap">
|
|
<aside>
|
|
<?= insert('/content/user/profile/sidebar', ['data' => $data]); ?>
|
|
</aside>
|
|
<main class="flex-auto">
|
|
<div class="mb15"><?= __('app.comments'); ?> <b><?= $data['profile']['login']; ?></b></div>
|
|
<?php if (!empty($data['comments'])) : ?>
|
|
<div class="box">
|
|
<?= insert('/content/comments/comment', ['comments' => $data['comments']]); ?>
|
|
<?= Html::pagination($data['pNum'], $data['pagesCount'], false, '/@' . $data['profile']['login'] . '/comments'); ?>
|
|
</div>
|
|
<?php else : ?>
|
|
<?= insert('/_block/no-content', ['type' => 'small', 'text' => __('app.no_comments'), 'icon' => 'info']); ?>
|
|
<?php endif; ?>
|
|
</main>
|
|
</div>
|
|
</div>
|