Guest User

Untitled

a guest
Mar 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package Joomla.Site
  4. * @subpackage mod_login
  5. *
  6. * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9.  
  10. defined('_JEXEC') or die;
  11.  
  12. require_once JPATH_SITE . '/components/com_users/helpers/route.php';
  13.  
  14. JHtml::_('behavior.keepalive');
  15. JHtml::_('bootstrap.tooltip');
  16.  
  17. ?>
  18. <form action="<?php echo JRoute::_(htmlspecialchars(JUri::getInstance()->toString()), true, $params->get('usesecure')); ?>" method="post" id="login-form" data-abide>
  19. <?php if ($params->get('pretext')) : ?>
  20. <div class="pretext">
  21. <p><?php echo $params->get('pretext'); ?></p>
  22. </div>
  23. <?php endif; ?>
  24. <div class="userdata">
  25. <div id="form-login-username" class="row">
  26.  
  27. <?php if (!$params->get('usetext')) : ?>
  28.  
  29.  
  30. <div class="small-3 columns">
  31. <label for="modlgn-username" class="element-invisible"><?php echo JText::_('MOD_LOGIN_VALUE_USERNAME'); ?></label>
  32. <span data-tooltip aria-haspopup="true" class="tok-user has-tip right inline mt-10" title="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>"></span>
  33. </div>
  34. <div class="small-9 columns">
  35. <input id="modlgn-username" type="text" name="username" class="input-small" tabindex="0" size="18" placeholder="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>" /></div>
  36. <?php else: ?>
  37. <div class="small-3 columns">
  38. <label for="modlgn-username" class="right inline"><?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?></label>
  39. </div>
  40. <div class="small-9 columns">
  41. <input id="modlgn-username" type="text" name="username" class="input-small" tabindex="0" size="18" placeholder="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>" />
  42. </div>
  43. <?php endif; ?>
  44.  
  45. </div>
  46. <div id="form-login-password" class="row">
  47.  
  48. <?php if (!$params->get('usetext')) : ?>
  49. <div class="small-3 columns">
  50. <label for="modlgn-passwd" class="element-invisible"><?php echo JText::_('JGLOBAL_PASSWORD'); ?></label>
  51. <span data-tooltip aria-haspopup="true" class="tok-login has-tip right inline mt-10" title="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>"></span>
  52. </div>
  53. <div class="small-9 columns">
  54. <input id="modlgn-passwd" type="password" name="password" class="input-small" tabindex="0" size="18" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" />
  55. </div>
  56. <?php else: ?>
  57. <label for="modlgn-passwd" class="right inline"><?php echo JText::_('JGLOBAL_PASSWORD') ?></label>
  58. <input id="modlgn-passwd" type="password" name="password" class="input-small" tabindex="0" size="18" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" />
  59. <?php endif; ?>
  60.  
  61. </div>
  62. <?php if (count($twofactormethods) > 1): ?>
  63. <div id="form-login-secretkey" class="row">
  64.  
  65. <?php if (!$params->get('usetext')) : ?>
  66. <div class="small-3 columns">
  67. <label for="modlgn-secretkey" class="element-invisible"><?php echo JText::_('JGLOBAL_SECRETKEY'); ?></label>
  68. <span data-tooltip aria-haspopup="true" class="tok-login has-tip right inline mt-10" title="<?php echo JText::_('JGLOBAL_SECRETKEY'); ?>"></span>
  69. </div>
  70. <div class="small-9 columns">
  71.  
  72.  
  73. <input id="modlgn-secretkey" autocomplete="off" type="text" name="secretkey" class="input-small" tabindex="0" size="18" placeholder="<?php echo JText::_('JGLOBAL_SECRETKEY') ?>" />
  74. <span class="btn width-auto hasTooltip" title="<?php echo JText::_('JGLOBAL_SECRETKEY_HELP'); ?>">
  75. <span class="icon-help"></span>
  76. </span>
  77. </div>
  78. <?php else: ?>
  79. <div class="small-3 columns"><label for="modlgn-secretkey" class="right inline"><?php echo JText::_('JGLOBAL_SECRETKEY') ?></label></div>
  80. <div class="small-9 columns"><input id="modlgn-secretkey" autocomplete="off" type="text" name="secretkey" class="input-small" tabindex="0" size="18" placeholder="<?php echo JText::_('JGLOBAL_SECRETKEY') ?>" />
  81. <span class="btn width-auto hasTooltip" title="<?php echo JText::_('JGLOBAL_SECRETKEY_HELP'); ?>">
  82. <span class="icon-help"></span>
  83. </span></div>
  84. <?php endif; ?>
  85.  
  86. </div>
  87. </div>
  88. <?php endif; ?>
  89.  
  90. <div class="row">
  91. <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
  92.  
  93. <div class="small-9 small-offset-3 medium-5 medium-offset-3 columns" id="form-login-remember">
  94. <input id="modlgn-remember" type="checkbox" name="remember" value="yes" class="inline"/> <label for="modlgn-remember" class="inline"><?php echo JText::_('MOD_LOGIN_REMEMBER_ME') ?></label>
  95. </div>
  96.  
  97. <?php endif; ?>
  98.  
  99. <div class="medium-4 columns text-right" id="form-login-submit">
  100. <button type="submit" tabindex="0" name="Submit" class="button"><?php echo JText::_('JLOGIN') ?></button>
  101. </div>
  102. </div>
  103. <?php
  104. $usersConfig = JComponentHelper::getParams('com_users'); ?>
  105. <div class="row">
  106. <div class="small-9 small-offset-3 columns">
  107. <ul class="unstyled">
  108. <?php if ($usersConfig->get('allowUserRegistration')) : ?>
  109. <li>
  110. <a href="<?php echo JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute()); ?>">
  111. <?php echo JText::_('MOD_LOGIN_REGISTER'); ?> <span class="icon-arrow-right"></span></a>
  112. </li>
  113. <?php endif; ?>
  114. <li>
  115. <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute()); ?>">
  116. <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
  117. </li>
  118. <li>
  119. <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute()); ?>">
  120. <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. <input type="hidden" name="option" value="com_users" />
  126. <input type="hidden" name="task" value="user.login" />
  127. <input type="hidden" name="return" value="<?php echo $return; ?>" />
  128. <?php echo JHtml::_('form.token'); ?>
  129. </div>
  130. <?php if ($params->get('posttext')) : ?>
  131. <div class="posttext">
  132. <p><?php echo $params->get('posttext'); ?></p>
  133. </div>
  134. <?php endif; ?>
  135. </form>
Add Comment
Please, Sign In to add comment