<?php
/**
 * @package     VP Advanced User
 * @subpackage  Module - VP Advanced User
 * @author      Abhishek Das <info@virtueplanet.com>
 * @copyright   Copyright (C) 2012-2019 VirtuePlanet Services LLP. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @link        https://www.virtueplanet.com
 */

defined('_JEXEC') or die;

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');
JHtml::_('vpadvanceduser.loadjs');

JHtml::_('vpadvanceduser.script', 'com_vpadvanceduser/iziModal.min.js', false, true);
JHtml::_('vpadvanceduser.script', 'com_vpadvanceduser/vptos.min.js', false, true);

JHtml::_('vpadvanceduser.stylesheet', 'com_vpadvanceduser/general.css', array(), true);
JHtml::_('vpadvanceduser.stylesheet', 'com_vpadvanceduser/iziModal.min.css', array(), true);
?>
<div class="vp-wrapper vpau-modal-module<?php echo $moduleclass_sfx ?>">
	<ul class="vpau-modal-buttons vp-list-inline">
		<?php if($display == 3) : ?>
			<li>
				<a href="<?php echo JRoute::_(VPAdvancedUserHelperRoute::getURL('login', 'login', true)); ?>" data-target="#vp-login-modal-<?php echo $module->id ?>" class="<?php echo $modalButtonClass ?>" data-vapumodal="1"><?php echo JText::_('JLOGIN') ?></a>
			</li>
			<?php if($user_params->get('allowUserRegistration') && $params->get('show_registration', 1)) : ?>
				<li>
					<a href="<?php echo JRoute::_(VPAdvancedUserHelperRoute::getURL('login', 'registration', true)); ?>" data-target="#vp-registration-modal-<?php echo $module->id ?>" class="<?php echo $modalButtonClass ?>" data-vapumodal="1"><?php echo JText::_('JREGISTER') ?></a>
				</li>
			<?php endif ?>
		<?php elseif($display == 1) : ?>
			<li>
				<a href="<?php echo JRoute::_(VPAdvancedUserHelperRoute::getURL('login', 'login', true)); ?>" data-target="#vp-login-modal-<?php echo $module->id ?>" class="<?php echo $modalButtonClass ?>" data-vapumodal="1"><?php echo JText::_('JLOGIN') ?></a>
			</li>
		<?php else : ?>
			<li>
				<a href="<?php echo JRoute::_(VPAdvancedUserHelperRoute::getURL('login', 'registration', true)); ?>" data-target="#vp-registration-modal-<?php echo $module->id ?>" class="<?php echo $modalButtonClass ?>" data-vapumodal="1"><?php echo JText::_('JREGISTER') ?></a>
			</li>
		<?php endif ?>
	</ul>
</div>