PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.20
VikAppointments Services Booking Calendar v1.2.20
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / modules / mod_vikappointments_currencyconverter / widget.php
vikappointments / modules / mod_vikappointments_currencyconverter Last commit date
languages 1 month ago libraries 1 month ago tmpl 1 month ago index.html 1 month ago mod_vikappointments_currencyconverter.php 1 month ago mod_vikappointments_currencyconverter.xml 1 month ago vikappointments-currencyconverter-widget-block.js 1 month ago widget.php 1 month ago
widget.php
53 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage mod_vikappointments_currencyconverter
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2024 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 * Currency Converter Module implementation for WP.
18 *
19 * @see JWidget
20 * @since 1.0
21 */
22 class ModVikappointmentsCurrencyconverter_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 // convert this widget into a block
35 $this->registerBlockType(
36 VIKAPPOINTMENTS_CORE_MEDIA_URI,
37 [
38 'icon' => 'money-alt',
39 'keywords' => [
40 __('VikAppointments', 'vikappointments'),
41 __('Currency Converter', 'vikappointments'),
42 __('Widget'),
43 ],
44 ]
45 );
46 }
47 catch (Throwable $error)
48 {
49 // there's a conflict with an outdated plugin
50 }
51 }
52 }
53