default_login.php
100 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments |
| 4 | * @subpackage core |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | /** |
| 15 | * Template file used to display a login/registration form |
| 16 | * to allow the users to access their accounts. |
| 17 | * |
| 18 | * @since 1.6 |
| 19 | */ |
| 20 | |
| 21 | $data = array( |
| 22 | /** |
| 23 | * True to enable the registration form, otherwise false. |
| 24 | * If not provided, the registration is disabled by default. |
| 25 | * |
| 26 | * @var boolean |
| 27 | */ |
| 28 | 'register' => JComponentHelper::getParams('com_users')->get('allowUserRegistration'), |
| 29 | |
| 30 | /** |
| 31 | * The return URL used after the login. |
| 32 | * The URL must be plain (non-routed). |
| 33 | * |
| 34 | * @var string |
| 35 | */ |
| 36 | 'return' => 'index.php?option=com_vikappointments&view=allorders' . ($this->itemid ? '&Itemid=' . $this->itemid : ''), |
| 37 | |
| 38 | /** |
| 39 | * True to remember the user after the login (an authentication |
| 40 | * cookie will be created to avoid re-logging in from the browser used). |
| 41 | * False to allow the customers to choose to remember the login or not. |
| 42 | * If not provided, the remember option is disabled by default. |
| 43 | * |
| 44 | * @var boolean |
| 45 | */ |
| 46 | 'remember' => false, |
| 47 | |
| 48 | /** |
| 49 | * True to use the CAPTCHA within the registration form to prevent bots |
| 50 | * creating mass accounts. False to disable captcha. If not provided, it |
| 51 | * will be used the value specified from the CMS configuration. |
| 52 | * |
| 53 | * @var boolean |
| 54 | */ |
| 55 | // 'captcha' => true, |
| 56 | |
| 57 | /** |
| 58 | * True to place a disclaimer for GDPR European law, otherwise false. |
| 59 | * If not provided, the value will be retrived from the global configuration. |
| 60 | * |
| 61 | * @var boolean |
| 62 | */ |
| 63 | // 'gdpr' => false, |
| 64 | |
| 65 | /** |
| 66 | * True to display the footer links to allow the users to recover the password |
| 67 | * and the name of the account. If not provided, the links are not displayed. |
| 68 | * |
| 69 | * @var boolean |
| 70 | */ |
| 71 | 'footer' => true, |
| 72 | |
| 73 | /** |
| 74 | * The name of the active tab. The accepted values are: "login" and "registration". |
| 75 | * If not provided, the login form will be active by default. In case this value |
| 76 | * is set to "registration" and the "register" field is disabled, the active value |
| 77 | * will be reset to "login". |
| 78 | * |
| 79 | * @var string |
| 80 | */ |
| 81 | // 'active' => 'login', |
| 82 | ); |
| 83 | |
| 84 | /** |
| 85 | * The login form is displayed from the layout below: |
| 86 | * /components/com_vikappointments/layouts/blocks/login.php |
| 87 | * |
| 88 | * If you need to change something from this layout, just create |
| 89 | * an override of this layout by following the instructions below: |
| 90 | * - open the back-end of your Joomla |
| 91 | * - visit the Extensions > Templates > Templates page |
| 92 | * - edit the active template |
| 93 | * - access the "Create Overrides" tab |
| 94 | * - select Layouts > com_vikappointments > blocks |
| 95 | * - start editing the login.php file on your template to create your own layout |
| 96 | * |
| 97 | * @since 1.6 |
| 98 | */ |
| 99 | echo JLayoutHelper::render('blocks.login', $data); |
| 100 |