| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Getwid |
| 4 |
* Plugin URI: https://motopress.com/products/getwid/ |
| 5 |
* Description: Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor. |
| 6 |
* Version: 2.0.13 |
| 7 |
* Author: MotoPress |
| 8 |
* Author URI: https://motopress.com/ |
| 9 |
* License: GPLv2 or later |
| 10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 11 |
* Text Domain: getwid |
| 12 |
* Domain Path: /languages |
| 13 |
*/ |
| 14 |
|
| 15 |
// Exit if accessed directly. |
| 16 |
if ( ! defined( 'ABSPATH' ) ) { |
| 17 |
exit; |
| 18 |
} |
| 19 |
|
| 20 |
if ( !class_exists( 'Getwid\Getwid' ) ) { |
| 21 |
|
| 22 |
if ( ! defined( 'GETWID_PLUGIN_FILE' ) ) { |
| 23 |
define( 'GETWID_PLUGIN_FILE', __FILE__ ); |
| 24 |
} |
| 25 |
if ( ! defined( 'GETWID_PLUGIN_DIR' ) ) { |
| 26 |
define( 'GETWID_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); // The path with trailing slash |
| 27 |
} |
| 28 |
if ( ! defined( 'GETWID_PLUGIN_BASENAME' ) ) { |
| 29 |
define( 'GETWID_PLUGIN_BASENAME', plugin_basename( GETWID_PLUGIN_FILE ) ); |
| 30 |
} |
| 31 |
if ( ! defined( 'GETWID_DEBUG' ) ) { |
| 32 |
define( 'GETWID_DEBUG', false ); |
| 33 |
} |
| 34 |
|
| 35 |
include_once GETWID_PLUGIN_DIR . 'includes/getwid.php'; |
| 36 |
|
| 37 |
function getwid() { |
| 38 |
return \Getwid\Getwid::getInstance(); |
| 39 |
} |
| 40 |
|
| 41 |
// Init Getwid |
| 42 |
getwid(); |
| 43 |
|
| 44 |
} |
| 45 |
|