| 1 |
<?php |
| 2 |
|
| 3 |
namespace Leadin; |
| 4 |
|
| 5 |
/** |
| 6 |
* Plugin Name: HubSpot All-In-One Marketing - Forms, Popups, Live Chat |
| 7 |
* Plugin URI: http://www.hubspot.com/integrations/wordpress |
| 8 |
* Description: HubSpot’s official WordPress plugin allows you to add forms, popups, and live chat to your website and integrate with the best WordPress CRM. |
| 9 |
* Version: 11.1.3 |
| 10 |
* Author: HubSpot |
| 11 |
* Author URI: http://hubspot.com/products/wordpress |
| 12 |
* License: GPL v3 |
| 13 |
* Text Domain: leadin |
| 14 |
* Domain Path: /languages/ |
| 15 |
* |
| 16 |
* This program is free software: you can redistribute it and/or modify |
| 17 |
* it under the terms of the GNU General Public License as published by |
| 18 |
* the Free Software Foundation, either version 3 of the License, or |
| 19 |
* (at your option) any later version. |
| 20 |
* |
| 21 |
* This program is distributed in the hope that it will be useful, |
| 22 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 |
* GNU General Public License for more details. |
| 25 |
* |
| 26 |
* You should have received a copy of the GNU General Public License |
| 27 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 28 |
*/ |
| 29 |
|
| 30 |
// ============================================= |
| 31 |
// Define Constants |
| 32 |
// ============================================= |
| 33 |
if ( ! defined( 'LEADIN_BASE_PATH' ) ) { |
| 34 |
define( 'LEADIN_BASE_PATH', __FILE__ ); |
| 35 |
} |
| 36 |
|
| 37 |
if ( ! defined( 'LEADIN_PATH' ) ) { |
| 38 |
define( 'LEADIN_PATH', untrailingslashit( plugins_url( '', LEADIN_BASE_PATH ) ) ); |
| 39 |
} |
| 40 |
|
| 41 |
if ( ! defined( 'LEADIN_ASSETS_PATH' ) ) { |
| 42 |
define( 'LEADIN_ASSETS_PATH', untrailingslashit( plugins_url( '', LEADIN_BASE_PATH ) . '/public/assets' ) ); |
| 43 |
} |
| 44 |
|
| 45 |
if ( ! defined( 'LEADIN_JS_BASE_PATH' ) ) { |
| 46 |
define( 'LEADIN_JS_BASE_PATH', untrailingslashit( plugins_url( '', LEADIN_BASE_PATH ) . '/build' ) ); |
| 47 |
} |
| 48 |
|
| 49 |
if ( ! defined( 'LEADIN_PLUGIN_DIR' ) ) { |
| 50 |
define( 'LEADIN_PLUGIN_DIR', untrailingslashit( dirname( LEADIN_BASE_PATH ) ) ); |
| 51 |
} |
| 52 |
|
| 53 |
if ( ! defined( 'LEADIN_REQUIRED_WP_VERSION' ) ) { |
| 54 |
define( 'LEADIN_REQUIRED_WP_VERSION', '5.8' ); |
| 55 |
} |
| 56 |
|
| 57 |
if ( ! defined( 'LEADIN_REQUIRED_PHP_VERSION' ) ) { |
| 58 |
define( 'LEADIN_REQUIRED_PHP_VERSION', '7.2' ); |
| 59 |
} |
| 60 |
|
| 61 |
if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) { |
| 62 |
define( 'LEADIN_PLUGIN_VERSION', '11.1.3' ); |
| 63 |
} |
| 64 |
|
| 65 |
|
| 66 |
if ( ! defined( 'LEADIN_PREFIX' ) ) { |
| 67 |
define( 'LEADIN_PREFIX', 'leadin' ); |
| 68 |
} |
| 69 |
|
| 70 |
// ============================================= |
| 71 |
// Set autoload |
| 72 |
// ============================================= |
| 73 |
require_once LEADIN_PLUGIN_DIR . '/vendor/autoload.php'; |
| 74 |
require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 75 |
|
| 76 |
|
| 77 |
use \Leadin\Leadin; |
| 78 |
|
| 79 |
$leadin = new Leadin(); |
| 80 |
|