PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.20
VikAppointments Services Booking Calendar v1.2.20
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / views / servicesearch / tmpl / default_login.php
vikappointments / site / views / servicesearch / tmpl Last commit date
default.php 1 month ago default.xml 1 month ago default_calendars.php 1 month ago default_checkout.php 1 month ago default_contact.php 1 month ago default_filterbar.php 1 month ago default_login.php 1 month ago default_options.php 1 month ago default_reviews.php 1 month ago default_service.php 1 month ago default_timeline.php 1 month ago default_waitlist.php 1 month ago index.html 1 month ago
default_login.php
104 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 // build query string
22 $query = array(
23 'Itemid' => $this->itemid,
24 'id_service' => $this->idService,
25 'id_employee' => $this->idEmployee,
26 'date' => $this->date,
27 'month' => $this->month,
28 );
29
30 // remove empty tags
31 $query = array_filter($query, function($elem)
32 {
33 return !empty($elem) && (!is_numeric($elem) || $elem > 0);
34 });
35
36 $data = array(
37 /**
38 * @param boolean register True to enable the registration form, otherwise false.
39 * If not provided, the registration is disabled by default.
40 */
41 'register' => JComponentHelper::getParams('com_users')->get('allowUserRegistration'),
42
43 /**
44 * @param string return The return URL used after the login.
45 * The URL must be plain (non-routed).
46 */
47 'return' => 'index.php?option=com_vikappointments&view=servicesearch' . ($query ? '&' . http_build_query($query) : ''),
48
49 /**
50 * @param boolean remember True to remember the user after the login (an authentication
51 * cookie will be created to avoid re-logging in from the browser used).
52 * False to allow the customers to choose to remember the login or not.
53 * If not provided, the remember option is disabled by default.
54 */
55 'remember' => false,
56
57 /**
58 * @param boolean captcha True to use the reCAPTCHA within the registration form
59 * to prevent bots to create mass accounts. False to disable captcha.
60 * If not provided, it will be used the value specified
61 * in the configuration of com_users.
62 */
63 // 'captcha' => true,
64
65 /**
66 * @param boolean gdpr True to place a disclaimer for GDPR European law, otherwise false.
67 * If not provided, the value will be retrived from the global configuration.
68 */
69 // 'gdpr' => false,
70
71 /**
72 * @param boolean footer True to display the footer links to allow the users
73 * to recover the password and the name of the account.
74 * If not provided, the links are not displayed.
75 */
76 'footer' => true,
77
78 /**
79 * @param string active The name of the active tab.
80 * The accepted values are: "login" and "registration".
81 * If not provided, the login form will be active by default.
82 * In case this value is set to "registration" and the "register"
83 * field is disabled, the active value will be reset to "login".
84 */
85 // 'active' => 'login',
86 );
87
88 /**
89 * The login form is displayed from the layout below:
90 * /components/com_vikappointments/layouts/blocks/login.php
91 *
92 * If you need to change something from this layout, just create
93 * an override of this layout by following the instructions below:
94 * - open the back-end of your Joomla
95 * - visit the Extensions > Templates > Templates page
96 * - edit the active template
97 * - access the "Create Overrides" tab
98 * - select Layouts > com_vikappointments > blocks
99 * - start editing the login.php file on your template to create your own layout
100 *
101 * @since 1.6
102 */
103 echo JLayoutHelper::render('blocks.login', $data);
104