CoreFiles by mySites.guru
default.php67 lines, 2,167 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
e3a9f614967b34f567d89e8aba5ce446
sha1
3f2c67bbfc1162cd2face07dad204abf4c511743
sha256
c65381628dd75dc3ada60141d43b824723f4d7991260dbd463cf300b61715790
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_logged
 *
 * @copyright   Copyright (C) 2005 - 2018 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;

?>
<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 : ?>
					<?php echo Text::_('JSITE'); ?>
					<a href="<?php echo $user->logoutLink; ?>" class="mr-2 btn btn-danger btn-sm" role="button">
						<span class="icon-remove icon-white" aria-hidden="true"></span>
						<?php echo Text::_('JLOGOUT'); ?>
					</a>
				<?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-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.