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 / modules / mod_vikappointments_services / widget.php
vikappointments / modules / mod_vikappointments_services Last commit date
languages 2 days ago libraries 2 days ago src 2 days ago tmpl 2 days ago index.html 2 days ago mod_vikappointments_services.css 2 days ago mod_vikappointments_services.php 2 days ago mod_vikappointments_services.xml 2 days ago vikappointments-services-widget-block.js 2 days ago widget.php 2 days ago
widget.php
57 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage mod_vikappointments_services
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2023 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 to this file
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 jimport('adapter.module.widget');
15
16 /**
17 * Services Module implementation for WP.
18 *
19 * @see JWidget
20 * @since 1.0
21 */
22 class ModVikappointmentsServices_Widget extends JWidget
23 {
24 /**
25 * Class constructor.
26 */
27 public function __construct()
28 {
29 // attach the absolute path of the module folder
30 parent::__construct(dirname(__FILE__));
31
32 try
33 {
34 /**
35 * Convert this widget into a block.
36 *
37 * @since 1.2.12
38 */
39 $this->registerBlockType(
40 VIKAPPOINTMENTS_CORE_MEDIA_URI,
41 [
42 'icon' => 'slides',
43 'keywords' => [
44 __('VikAppointments', 'vikappointments'),
45 __('Services', 'vikappointments'),
46 __('Widget'),
47 ],
48 ]
49 );
50 }
51 catch (Throwable $error)
52 {
53 // there's a conflict with an outdated plugin
54 }
55 }
56 }
57