Просмотр файла modules/community/templates/users.phtml

Размер файла: 1.2Kb
<?php

/**
 * This file is part of JohnCMS Content Management System.
 *
 * @copyright JohnCMS Community
 * @license   https://opensource.org/licenses/GPL-3.0 GPL-3.0
 * @link      https://johncms.com JohnCMS Project
 */

/**
 * @var $title
 * @var $page_title
 * @var $data
 */

$this->layout(
    'system::layout/default',
    [
        'title'      => $title,
        'page_title' => $page_title,
    ]
);
?>
<!-- List of Users -->
<?php if ($total): ?>
    <?php foreach ($list as $usr): ?>
        <?= $this->fetch('users::user_row', ['item' => $usr]) ?>
    <?php endforeach ?>
<?php else: ?>
    <div class="row">
        <div class="col-md-6">
            <div class="alert alert-info"><?= __('List is empty') ?></div>
        </div>
    </div>
<?php endif ?>

<?php if ($total): ?>
    <div class="mt-2">
        <div><?= __('Total') ?>: <?= $total ?></div>
        <!-- Page switching -->
        <?php if ($total > $user->config->kmess): ?>
            <div class="mt-1"><?= $pagination ?></div>
        <?php endif ?>
    </div>
<?php endif; ?>

<div class="mt-3">
    <div>
        <a href="../search/"><?= __('User Search') ?></a>
    </div>
    <div>
        <a href="../"><?= __('Back') ?></a>
    </div>
</div>