| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
Plugin Name: Instapage Plugin |
| 5 |
Description: The best way for WordPress to seamlessly publish landing pages as a natural extension of your website. |
| 6 |
Version: 3.7.0 |
| 7 |
Requires PHP: 5.4.0 |
| 8 |
Plugin URI: https://instapage.com/ |
| 9 |
Author: Instapage |
| 10 |
Author URI: https://instapage.com/ |
| 11 |
License: GPLv2 |
| 12 |
*/ |
| 13 |
|
| 14 |
define('INSTAPAGE_PLUGIN_PATH', dirname(__FILE__)); |
| 15 |
define('INSTAPAGE_PLUGIN_FILE', __FILE__); |
| 16 |
define('INSTAPAGE_SUPPORT_EMAIL', 'help@instapage.com'); |
| 17 |
define('INSTAPAGE_PLUGIN_MINIMUM_PHP_VERSION', '5.4.0'); |
| 18 |
define('INSTAPAGE_PLUGIN_VERSION', '3.7.0'); |
| 19 |
|
| 20 |
/** |
| 21 |
* @var array $consts Holds constant names to be defined with their default values - if not already defined or found in `$_ENV` |
| 22 |
*/ |
| 23 |
$consts = array( |
| 24 |
'INSTAPAGE_ENTERPRISE_ENDPOINT' => 'http://plugin.pageserve.co', |
| 25 |
'INSTAPAGE_PROXY_ENDPOINT' => 'http://app.instapage.com', |
| 26 |
'INSTAPAGE_APP_ENDPOINT' => 'http://app.instapage.com/api/plugin' |
| 27 |
); |
| 28 |
|
| 29 |
foreach ($consts as $key => $value) { |
| 30 |
if (!defined($key)) { |
| 31 |
define($key, (isset($_ENV[$key]) && !empty($_ENV[$key])) ? $_ENV[$key] : $value); |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
require_once(INSTAPAGE_PLUGIN_PATH . '/connectors/InstapageCmsPluginConnector.php'); |
| 36 |
require_once(INSTAPAGE_PLUGIN_PATH . '/InstapageCmsPluginHelper.php'); |
| 37 |
require_once(INSTAPAGE_PLUGIN_PATH . '/models/InstapageCmsPluginDBModel.php'); |
| 38 |
require_once(INSTAPAGE_PLUGIN_PATH . '/models/InstapageCmsPluginAPIModel.php'); |
| 39 |
require_once(INSTAPAGE_PLUGIN_PATH . '/models/InstapageCmsPluginPageModel.php'); |
| 40 |
require_once(INSTAPAGE_PLUGIN_PATH . '/models/InstapageCmsPluginServicesModel.php'); |
| 41 |
require_once(INSTAPAGE_PLUGIN_PATH . '/models/InstapageCmsPluginDebugLogModel.php'); |
| 42 |
require_once(INSTAPAGE_PLUGIN_PATH . '/models/InstapageCmsPluginViewModel.php'); |
| 43 |
require_once(INSTAPAGE_PLUGIN_PATH . '/models/InstapageCmsPluginSubaccountModel.php'); |
| 44 |
require_once(INSTAPAGE_PLUGIN_PATH . '/InstapageCmsPluginAjaxController.php'); |
| 45 |
|
| 46 |
InstapageCmsPluginConnector::initPlugin(); |
| 47 |
|