default.php
1 month ago
default.xml
1 month ago
default_contact.php
1 month ago
default_employee.php
1 month ago
default_employee_search.php
1 month ago
default_toolbar.php
1 month ago
index.html
1 month ago
default_contact.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 | $vik = VAPApplication::getInstance(); |
| 15 | |
| 16 | $returnUri = 'index.php?option=com_vikappointments&view=employeeslist'; |
| 17 | |
| 18 | /** |
| 19 | * Use an apposite helper method to support multi-selection filters. |
| 20 | * |
| 21 | * @since 1.7.6 |
| 22 | */ |
| 23 | if ($query = $this->getUriFilters()) |
| 24 | { |
| 25 | $returnUri .= '&' . $query; |
| 26 | } |
| 27 | |
| 28 | if ($this->options['start']) |
| 29 | { |
| 30 | $returnUri .= "&limitstart={$this->options['start']}"; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * If both the id_employee and id_service attributes are empty, |
| 35 | * it is assumed that we are in the employees list view, in which |
| 36 | * the selection of the employee is dynamic. |
| 37 | * |
| 38 | * @see vapGoToMail() JS function |
| 39 | */ |
| 40 | $data = array( |
| 41 | /** |
| 42 | * The quick contact heading title. Empty by default. |
| 43 | * |
| 44 | * @var string |
| 45 | * |
| 46 | */ |
| 47 | // 'title' => '', |
| 48 | |
| 49 | /** |
| 50 | * The ID of the service for which the customer may ask a question. |
| 51 | * |
| 52 | * @var integer |
| 53 | */ |
| 54 | // 'id_service' => 0, |
| 55 | |
| 56 | /** |
| 57 | * The ID of the employee for which the customer may ask a question. |
| 58 | * Provide this attribute ONLY if the id_service attribute is not specified. |
| 59 | * |
| 60 | * @var integer |
| 61 | */ |
| 62 | // 'id_employee' => 0, |
| 63 | |
| 64 | /** |
| 65 | * The plain return URI. |
| 66 | * |
| 67 | * @var string |
| 68 | */ |
| 69 | 'return' => $returnUri, |
| 70 | |
| 71 | /** |
| 72 | * True to place a disclaimer for GDPR European law, otherwise false. |
| 73 | * If not provided, the value will be retrived from the global configuration. |
| 74 | * |
| 75 | * @var boolean |
| 76 | */ |
| 77 | // 'gdpr' => false, |
| 78 | |
| 79 | /** |
| 80 | * The Item ID that will be used to route the URL used for AJAX. |
| 81 | * If not provided, the current one will be used. |
| 82 | * |
| 83 | * @var integer |
| 84 | */ |
| 85 | 'itemid' => $this->itemid, |
| 86 | ); |
| 87 | |
| 88 | /** |
| 89 | * The quick contact block is displayed from the layout below: |
| 90 | * /components/com_vikappointments/layouts/blocks/quickcontact.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 quickcontact.php file on your template to create your own layout |
| 100 | * |
| 101 | * @since 1.6 |
| 102 | */ |
| 103 | echo JLayoutHelper::render('blocks.quickcontact', $data); |
| 104 |