PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / trunk
VikAppointments Services Booking Calendar vtrunk
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / admin / views / editconfigsmsapi / tmpl / default_settings.php
vikappointments / admin / views / editconfigsmsapi / tmpl Last commit date
default.php 4 years ago default_settings.php 4 years ago default_settings_basic.php 2 years ago default_templates.php 4 years ago default_templates_admin.php 4 years ago default_templates_customer.php 2 years ago index.html 7 years ago
default_settings.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['VAPCONFIGCRONTITLE1'] = $this->loadTemplate('settings_basic');
21
22 // prepare default icons
23 $setup->icons['VAPCONFIGCRONTITLE1'] = 'fas fa-tools';
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 "onDisplayViewConfigsmsapiSettings". The event method receives the
30 * view instance as argument.
31 *
32 * @since 1.7
33 */
34 $forms = $this->onDisplayView('Settings', $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'] = 'Settings';
43 $data['suffix'] = 'smsapi';
44
45 // render configuration pane with apposite layout
46 echo JLayoutHelper::render('configuration.tabview', $data);
47