PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.21
VikAppointments Services Booking Calendar v1.2.21
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / admin / views / editconfigcldays / tmpl / default_closingdays.php
vikappointments / admin / views / editconfigcldays / tmpl Last commit date
default.php 5 days ago default_closingdays.php 5 days ago default_closingdays_list.php 5 days ago default_closingdays_modal.php 5 days ago default_closingperiods.php 5 days ago default_closingperiods_list.php 5 days ago default_closingperiods_modal.php 5 days ago index.html 5 days ago
default_closingdays.php
47 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 // create object to pass to the hook, so that external plugins
15 // can extend the appearance of any additional tab
16 $setup = new stdClass;
17 $setup->icons = array();
18
19 $tabs = array();
20 $tabs['VAPMANAGECONFIG11'] = $this->loadTemplate('closingdays_list');
21
22 // prepare default icons
23 $setup->icons['VAPMANAGECONFIG11'] = 'fas fa-calendar-times';
24
25 /**
26 * Trigger event to display custom HTML.
27 * In case it is needed to include any additional fields,
28 * it is possible to create a plugin and attach it to an event
29 * called "onDisplayViewConfigcldaysDefault". The event method receives the
30 * view instance as argument.
31 *
32 * @since 1.6.6
33 */
34 $forms = $this->onDisplayView('Default', $setup);
35
36 // create display data
37 $data = array();
38 $data['id'] = 1;
39 $data['active'] = $this->selectedTab == $data['id'];
40 $data['tabs'] = array_merge($tabs, $forms);
41 $data['setup'] = $setup;
42 $data['hook'] = 'Default';
43 $data['suffix'] = 'cldays';
44
45 // render configuration pane with apposite layout
46 echo JLayoutHelper::render('configuration.tabview', $data);
47