2018-09-19 12:29:53 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @package Joomla.Members.Manager
|
|
|
|
*
|
2018-12-27 10:38:37 +00:00
|
|
|
* @created 6th July, 2018
|
2018-09-19 12:29:53 +00:00
|
|
|
* @author Llewellyn van der Merwe <https://www.joomlacomponentbuilder.com/>
|
|
|
|
* @github Joomla Members Manager <https://github.com/vdm-io/Joomla-Members-Manager>
|
|
|
|
* @copyright Copyright (C) 2015. All Rights Reserved
|
|
|
|
* @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
|
|
|
|
2019-08-14 02:14:40 +00:00
|
|
|
|
2018-09-19 12:29:53 +00:00
|
|
|
// No direct access to this file
|
|
|
|
defined('JPATH_BASE') or die('Restricted access');
|
|
|
|
|
|
|
|
// dont load these in the list view
|
|
|
|
$notDisplay = array('id', 'created', 'modified');
|
|
|
|
// set last updated
|
|
|
|
if (isset($displayData['data']['created']))
|
|
|
|
{
|
|
|
|
$updated = strtotime($displayData['data']['created']);
|
|
|
|
// if it has been modified
|
|
|
|
if (isset($displayData['data']['modified']) && MembersmanagerHelper::checkString($displayData['data']['modified']) && strpos($displayData['data']['modified'], '0000-00-00') === false)
|
|
|
|
{
|
|
|
|
$updated = strtotime($displayData['data']['modified']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$updated = false;
|
|
|
|
}
|
2019-04-04 11:58:49 +00:00
|
|
|
$tracker = 0;
|
2018-09-19 12:29:53 +00:00
|
|
|
|
|
|
|
?>
|
2019-04-04 11:58:49 +00:00
|
|
|
<?php if (isset($displayData['data']) && MembersmanagerHelper::checkArray($displayData['data'])): ?>
|
2018-09-19 12:29:53 +00:00
|
|
|
<ul class="uk-list uk-list-striped">
|
|
|
|
<?php foreach ($displayData['data'] as $name => $value): ?>
|
|
|
|
<?php if (!in_array($name, $notDisplay) && (MembersmanagerHelper::checkString($value) || is_numeric($value)) && $displayData['user']->authorise('form.view.' . $name, $displayData['com'] . '.form.' . (int) $displayData['data']['id'])): ?>
|
|
|
|
<?php // build the label
|
|
|
|
$LABLE = MembersmanagerHelper::safeString($displayData['com'], 'U') . '_FORM_' . MembersmanagerHelper::safeString($name, 'U') . '_LABEL';
|
|
|
|
$label = JText::_($LABLE);
|
|
|
|
// little workaround for now
|
|
|
|
if ($LABLE === $label)
|
|
|
|
{
|
|
|
|
$label = MembersmanagerHelper::safeString($name, 'Ww');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<li><?php echo $label; ?>: <b><?php echo $value; ?></b></li>
|
2019-04-04 11:58:49 +00:00
|
|
|
<?php $tracker++; ?>
|
2018-09-19 12:29:53 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
2019-04-04 11:58:49 +00:00
|
|
|
<?php if ($updated > 0 && $tracker > 0): ?>
|
|
|
|
<br />
|
|
|
|
<small><?php echo JText::_('COM_MEMBERSMANAGER_TIME_STAMP'); ?>: <?php echo MembersmanagerHelper::fancyDateTime($updated); ?></small>
|
|
|
|
<?php else: ?>
|
|
|
|
<small><?php echo JText::_('COM_MEMBERSMANAGER_NO_ACCESS_TO_VIEW_DETAILS'); ?>...</small>
|
|
|
|
<?php endif; ?>
|
2018-09-19 12:29:53 +00:00
|
|
|
<?php else: ?>
|
|
|
|
<small><?php echo JText::_('COM_MEMBERSMANAGER_NO_DETAILS_FOUND'); ?>...</small>
|
|
|
|
<?php endif; ?>
|