- md5
- 5c69f76bfc83456b388ad40491590a70
- sha1
- c717a90b57ad36849b98e56d030815919dcdf32b
- sha256
- c971748418ded718a6f9521b27a16db09a0926da340d5fccb68ffbacdaaab346
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_logged
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
HTMLHelper::_('bootstrap.framework');
?>
<table class="table" id="<?php echo str_replace(' ', '', $module->title) . $module->id; ?>">
<caption class="sr-only"><?php echo $module->title; ?></caption>
<thead>
<tr>
<th scope="col" style="width:50%">
<?php if ($params->get('name', 1) == 0) : ?>
<?php echo Text::_('JGLOBAL_USERNAME'); ?>
<?php else : ?>
<?php echo Text::_('MOD_LOGGED_NAME'); ?>
<?php endif; ?>
</th>
<th scope="col" style="width:30%"><?php echo Text::_('JCLIENT'); ?></th>
<th scope="col" style="width:20%"><?php echo Text::_('MOD_LOGGED_LAST_ACTIVITY'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($users as $user) : ?>
<tr>
<th scope="row">
<?php if (isset($user->editLink)) : ?>
<a href="<?php echo $user->editLink; ?>">
<span class="fa fa-pen-square mr-2" aria-hidden="true"></span><?php echo htmlspecialchars($user->name, ENT_QUOTES, 'UTF-8'); ?>
</a>
<?php else : ?>
<?php echo htmlspecialchars($user->name, ENT_QUOTES, 'UTF-8'); ?>
<?php endif; ?>
</th>
<td>
<?php if ($user->client_id === null) : ?>
<?php // Don't display a client ?>
<?php elseif ($user->client_id) : ?>
<?php echo Text::_('JADMINISTRATION'); ?>
<?php else : ?>
<form action="<?php echo $user->logoutLink; ?>" method="post" name="adminForm">
<?php echo Text::_('JSITE'); ?>
<button type="submit" class="mr-2 btn btn-danger btn-sm">
<?php echo Text::_('JLOGOUT'); ?>
</button>
</form>
<?php endif; ?>
</td>
<td>
<span class="badge badge-secondary badge-pill">
<span class="small">
<span class="icon-calendar" aria-hidden="true"></span>
<?php echo HTMLHelper::_('date', $user->time, Text::_('DATE_FORMAT_LC5')); ?>
</span>
</span>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
The same content is in 2 releases, Joomla 4.0.0-alpha9 to 4.0.0-alpha10. See them all, or every version of this file.