| @@ -1,44 +1,46 @@ | ||
| 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.8 | |
| 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 | -} | |
| 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: 3.0.2 | |
| 7 | + * Requires at least: 7.0 | |
| 8 | + * Requires PHP: 7.4 | |
| 9 | + * Author: MotoPress | |
| 10 | + * Author URI: https://motopress.com/ | |
| 11 | + * License: GPLv2 or later | |
| 12 | + * License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| 13 | + * Text Domain: getwid | |
| 14 | + * Domain Path: /languages | |
| 15 | + */ | |
| 16 | + | |
| 17 | +// Exit if accessed directly. | |
| 18 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 19 | + exit; | |
| 20 | +} | |
| 21 | + | |
| 22 | +if ( ! class_exists( 'Getwid\Getwid' ) ) { | |
| 23 | + | |
| 24 | + if ( ! defined( 'GETWID_PLUGIN_FILE' ) ) { | |
| 25 | + define( 'GETWID_PLUGIN_FILE', __FILE__ ); | |
| 26 | + } | |
| 27 | + if ( ! defined( 'GETWID_PLUGIN_DIR' ) ) { | |
| 28 | + define( 'GETWID_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); // The path with trailing slash | |
| 29 | + } | |
| 30 | + if ( ! defined( 'GETWID_PLUGIN_BASENAME' ) ) { | |
| 31 | + define( 'GETWID_PLUGIN_BASENAME', plugin_basename( GETWID_PLUGIN_FILE ) ); | |
| 32 | + } | |
| 33 | + if ( ! defined( 'GETWID_DEBUG' ) ) { | |
| 34 | + define( 'GETWID_DEBUG', false ); | |
| 35 | + } | |
| 36 | + | |
| 37 | + include_once GETWID_PLUGIN_DIR . 'includes/getwid.php'; | |
| 38 | + | |
| 39 | + function getwid() { | |
| 40 | + return \Getwid\Getwid::getInstance(); | |
| 41 | + } | |
| 42 | + | |
| 43 | + // Init Getwid | |
| 44 | + getwid(); | |
| 45 | + | |
| 46 | +} | |