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_zip / widget.php
vikappointments / modules / mod_vikappointments_zip Last commit date
languages 1 day ago libraries 1 day ago tmpl 1 day ago index.html 1 day ago mod_vikappointments_zip.css 1 day ago mod_vikappointments_zip.php 1 day ago mod_vikappointments_zip.xml 1 day ago vikappointments-zip-widget-block.js 1 day ago widget.php 1 day ago
widget.php
57 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage mod_vikappointments_zip
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 * ZIP Checker Module implementation for WP.
18 *
19 * @see JWidget
20 * @since 1.0
21 */
22 class ModVikappointmentsZip_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' => 'yes',
43 'keywords' => [
44 __('VikAppointments', 'vikappointments'),
45 __('ZIP Checker', '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