| Current Path : /home/smartconb/www/armencom33/components/com_eventgallery/tmpl/trackorder/ |
| Current File : /home/smartconb/www/armencom33/components/com_eventgallery/tmpl/trackorder/default_signinform.php |
<?php
/**
* @package Sven.Bluege
* @subpackage com_eventgallery
*
* @copyright Copyright (C) 2005 - 2019 Sven Bluege All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
defined('_JEXEC') or die('Restricted access');
/**
* @var \de\svenbluege\joomla\eventgallery\ObjectWithConfiguration $this
*/
?>
<?php IF (Factory::getUser()->guest): ?>
<div class="login">
<legend><?php echo Text::_('COM_EVENTGALLERY_TRACKORDER_FORM_REGISTERED_LABEL');?></legend>
<form action="<?php echo Route::_('index.php?option=com_users&task=user.login'); ?>" method="post" class="form-vertical">
<fieldset class="well">
<div class="desc">
<small><?php echo Text::_('COM_EVENTGALLERY_TRACKORDER_FORM_REGISTERED_DESC');?></small>
</div>
<?php foreach ($this->loginform->getFieldset('credentials') as $field) : ?>
<?php if (!$field->hidden) : ?>
<div class="control-group form-group">
<div class="control-label">
<?php echo $field->label; ?>
</div>
<div class="controls">
<?php echo $field->input; ?>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary"><?php echo Text::_('JLOGIN'); ?></button>
</div>
</div>
<input type="hidden" name="return" value="<?php echo base64_encode($this->config->getLegacy('login_redirect_url', Route::_(Uri::base().'index.php?option=com_eventgallery&view=orders'))); ?>" />
<?php echo \Joomla\CMS\HTML\HTMLHelper::_('form.token'); ?>
</fieldset>
</form>
</div>
<div>
<ul class="nav">
<li>
<a href="<?php echo Route::_('index.php?option=com_users&view=reset'); ?>">
<?php echo Text::_('COM_USERS_LOGIN_RESET'); ?></a>
</li>
<li>
<a href="<?php echo Route::_('index.php?option=com_users&view=remind'); ?>">
<?php echo Text::_('COM_USERS_LOGIN_REMIND'); ?></a>
</li>
<?php
$usersConfig = \Joomla\CMS\Component\ComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo Route::_('index.php?option=com_users&view=registration'); ?>">
<?php echo Text::_('COM_USERS_LOGIN_REGISTER'); ?></a>
</li>
<?php endif; ?>
</ul>
</div>
<?php ELSE: ?>
<div>
<legend><?php echo Text::_('COM_EVENTGALLERY_TRACKORDER_VIEWORDER_LABEL');?></legend>
<div class="well">
<div class="desc">
<small><?php echo Text::_('COM_EVENTGALLERY_TRACKORDER_VIEWORDER_DESC');?></small>
</div>
<a href="<?php echo Route::_('index.php?option=com_eventgallery&view=orders')?>" class="btn btn-primary"><?php echo Text::_('COM_EVENTGALLERY_TRACKORDER_VIEWORDER_LABEL');?></a>
</div>
</div>
<?php ENDIF ?>