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_contact.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_contact.php
96 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 $returnUri = 'index.php?option=com_vikappointments&view=servicesearch&id_service=' . $this->service->id;
15
16 if ($this->idEmployee > 0)
17 {
18 $returnUri .= '&id_employee=' . $this->idEmployee;
19 }
20
21 if ($this->itemid)
22 {
23 $returnUri .= '&Itemid=' . $this->itemid;
24 }
25
26 /**
27 * If both the id_employee and id_service attributes are empty,
28 * it is assumed that we are in the employees list view, in which
29 * the selection of the employee is dynamic.
30 *
31 * @see vapGoToMail() JS function
32 */
33 $data = array(
34 /**
35 * The quick contact heading title. Empty by default.
36 *
37 * @var string
38 */
39 'title' => JText::sprintf('VAPSERTALKINGTO', $this->service->name),
40
41 /**
42 * The ID of the service for which the customer may ask a question.
43 *
44 * @var integer
45 */
46 'id_service' => $this->service->id,
47
48 /**
49 * The ID of the employee for which the customer may ask a question.
50 * Provide this attribute ONLY if the id_service attribute is not specified.
51 *
52 * @var integer
53 */
54 // 'id_employee' => 0,
55
56 /**
57 * The plain return URI.
58 *
59 * @var string
60 */
61 'return' => $returnUri,
62
63 /**
64 * True to place a disclaimer for GDPR European law, otherwise false.
65 * If not provided, the value will be retrived from the global configuration.
66 *
67 * @var boolean
68 */
69 // 'gdpr' => false,
70
71 /**
72 * The Item ID that will be used to route the URL used for AJAX.
73 * If not provided, the current one will be used.
74 *
75 * @var integer
76 */
77 'itemid' => $this->itemid,
78 );
79
80 /**
81 * The quick contact block is displayed from the layout below:
82 * /components/com_vikappointments/layouts/blocks/quickcontact.php
83 *
84 * If you need to change something from this layout, just create
85 * an override of this layout by following the instructions below:
86 * - open the back-end of your Joomla
87 * - visit the Extensions > Templates > Templates page
88 * - edit the active template
89 * - access the "Create Overrides" tab
90 * - select Layouts > com_vikappointments > blocks
91 * - start editing the quickcontact.php file on your template to create your own layout
92 *
93 * @since 1.6
94 */
95 echo JLayoutHelper::render('blocks.quickcontact', $data);
96