- md5
- 668a413e8cfd6ebe346e813a9d0744e1
- sha1
- 3c7f18bc9cf0a944d36b22fd87288eb63125ff76
- sha256
- c00c9cd55be8a925aef9d9700a788620cc57a2b730683a36b6005c22404c0cff
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-pencil-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-alpha7 to 4.0.0-alpha8. See them all, or every version of this file.