|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @package Joomla.Site |
| 4 | + * @subpackage mod_login |
| 5 | + * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. |
| 6 | + * @license GNU General Public License version 2 or later; see LICENSE.txt |
| 7 | + */ |
| 8 | + |
| 9 | +// no direct access |
| 10 | +defined('_JEXEC') or die; |
| 11 | +JHtml::_('behavior.keepalive'); |
| 12 | +?> |
| 13 | +<div class="moduletable <?php if ($params->get('moduleclass_sfx')!='') : ?><?php echo $params->get('moduleclass_sfx'); ?><?php endif; ?>"> |
| 14 | + <div class="block"> |
| 15 | +<?php if ($module->showtitle != 0) : ?> |
| 16 | +<div class="module-title"> |
| 17 | + <h3 class="title"><?php echo $module->title; ?></h2> |
| 18 | + </div> |
| 19 | +<?php endif; ?> |
| 20 | +<?php if ($type == 'logout') : ?> |
| 21 | + |
| 22 | +<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" class="form-horizontal"> |
| 23 | + <?php if ($params->get('greeting')) : ?> |
| 24 | + <div class="login-greeting"> |
| 25 | + <?php if($params->get('name') == 0) : { |
| 26 | + echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('name')); |
| 27 | + } else : { |
| 28 | + echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('username')); |
| 29 | + } endif; ?> |
| 30 | + </div> |
| 31 | + <?php endif; ?> |
| 32 | + <div class="logout-button"> |
| 33 | + <input type="submit" name="Submit" class="button btn btn-primary" value="<?php echo JText::_('JLOGOUT'); ?>" /> |
| 34 | + <input type="hidden" name="option" value="com_users" /> |
| 35 | + <input type="hidden" name="task" value="user.logout" /> |
| 36 | + <input type="hidden" name="return" value="<?php echo $return; ?>" /> |
| 37 | + <?php echo JHtml::_('form.token'); ?> </div> |
| 38 | +</form> |
| 39 | +<?php else : ?> |
| 40 | +<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form"> |
| 41 | + <?php if ($params->get('pretext')): ?> |
| 42 | + <div class="pretext"> |
| 43 | + <p><?php echo $params->get('pretext'); ?></p> |
| 44 | + </div> |
| 45 | + <?php endif; ?> |
| 46 | + <fieldset class="userdata"> |
| 47 | + <div id="form-login-username"> |
| 48 | + <label for="modlgn-username"><?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?></label> |
| 49 | + <input id="modlgn-username" type="text" name="username" class="inputbox input-medium" size="18" /> |
| 50 | + </div> |
| 51 | + <div id="form-login-password"> |
| 52 | + <label for="modlgn-passwd"><?php echo JText::_('JGLOBAL_PASSWORD') ?></label> |
| 53 | + <input id="modlgn-passwd" type="password" name="password" class="inputbox input-medium" size="18" /> |
| 54 | + </div> |
| 55 | + <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?> |
| 56 | + <div id="form-login-remember" class="control-group"> |
| 57 | + <label class="checkbox" for="modlgn-remember"> <?php echo JText::_('MOD_LOGIN_REMEMBER_ME') ?> |
| 58 | + <input id="modlgn-remember" type="checkbox" name="remember" class="inputbox" value="yes"/> |
| 59 | + </label> |
| 60 | + </div> |
| 61 | + <?php endif; ?> |
| 62 | + <input type="submit" name="Submit" class="button btn btn-primary" value="<?php echo JText::_('JLOGIN') ?>" /> |
| 63 | + <input type="hidden" name="option" value="com_users" /> |
| 64 | + <input type="hidden" name="task" value="user.login" /> |
| 65 | + <input type="hidden" name="return" value="<?php echo $return; ?>" /> |
| 66 | + <?php echo JHtml::_('form.token'); ?> |
| 67 | + </fieldset> |
| 68 | + <ul class="nav nav-list"> |
| 69 | + <li> <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>"> <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a> </li> |
| 70 | + <li> <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>"> <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a> </li> |
| 71 | + <?php |
| 72 | + $usersConfig = JComponentHelper::getParams('com_users'); |
| 73 | + if ($usersConfig->get('allowUserRegistration')) : ?> |
| 74 | + <li> <a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>"> <?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a> </li> |
| 75 | + <?php endif; ?> |
| 76 | + </ul> |
| 77 | + <?php if ($params->get('posttext')): ?> |
| 78 | + <div class="posttext"> |
| 79 | + <p><?php echo $params->get('posttext'); ?></p> |
| 80 | + </div> |
| 81 | + <?php endif; ?> |
| 82 | +</form> |
| 83 | +</div> |
| 84 | +</div> |
| 85 | +<?php endif; ?> |
0 commit comments