Members-Manager/site/views/profile/tmpl/default_profiles.php

56 lines
2.0 KiB
PHP
Raw Normal View History

2018-07-25 03:00:13 +00:00
<?php
/**
* @package Joomla.Members.Manager
*
* @created 6th September, 2015
* @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
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
2018-07-25 03:00:13 +00:00
?>
<?php if (isset($this->item) && MembersmanagerHelper::checkObject($this->item)): ?>
<?php if ($this->uikitVersion == 3) : ?>
<div class="uk-offcanvas-content">
<?php endif; ?>
2018-07-25 03:00:13 +00:00
<div class="uk-block">
<?php $this->item->_USER = &$this->user; ?>
<?php $this->item->_REFID = $this->item->id; ?>
<?php $this->item->_IMAGELINK = MembersmanagerHelper::getFolderPath('url'); ?>
<ul class="uk-comment-list">
<li>
<?php if ($this->uikitVersion == 3) : ?>
<?php echo JLayoutHelper::render('profile_uikit_three', $this->item); ?>
<?php else: ?>
<?php echo JLayoutHelper::render('profile_uikit_two', $this->item); ?>
<?php endif; ?>
2018-07-25 03:00:13 +00:00
<?php if (isset($this->item->idMain_memberMemberB) && MembersmanagerHelper::checkArray($this->item->idMain_memberMemberB)): ?>
<ul>
<?php foreach ($this->item->idMain_memberMemberB as $item): ?>
<?php $item->_USER = &$this->user; ?>
<?php $item->_REFID = $this->item->id; ?>
<?php $item->_IMAGELINK = $this->item->_IMAGELINK; ?>
<li>
<?php if ($this->uikitVersion == 3) : ?>
<?php echo JLayoutHelper::render('profile_uikit_three', $item); ?>
<?php else: ?>
<?php echo JLayoutHelper::render('profile_uikit_two', $item); ?>
<?php endif; ?>
</li>
2018-07-25 03:00:13 +00:00
<?php endforeach; ?>
</ul>
<?php endif; ?>
</li>
</ul>
</div>
<?php if ($this->uikitVersion == 3) : ?>
</div>
<?php endif; ?>
2018-07-25 03:00:13 +00:00
<?php else: ?>
<h3><?php echo JText::_('COM_MEMBERSMANAGER_NO_PROFILE_FOUND'); ?></h3>
<?php endif; ?>