Файл: modules/community/includes/users.php
Строк: 36
<?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
*/
declare(strict_types=1);
use IlluminatePaginationLengthAwarePaginator;
use JohncmsUsersUser;
defined('_IN_JOHNCMS') || die('Error: restricted access');
/**
* @var PDO $db
* @var JohncmsSystemLegacyTools $tools
* @var JohncmsSystemUsersUser $user
* @var JohncmsSystemViewRender $view
*/
/** @var LengthAwarePaginator $users */
$users = (new User())->approved()->paginate($user->config->kmess);
$nav_chain->add(__('List of users'));
echo $view->render(
'users::users',
[
'pagination' => $users->render(),
'title' => __('List of users'),
'page_title' => __('List of users'),
'total' => $users->total(),
'list' => $users->items(),
]
);