| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: ConvertKit |
| 4 |
* Plugin URI: https://convertkit.com/ |
| 5 |
* Description: Quickly and easily integrate ConvertKit forms into your site. |
| 6 |
* Version: 1.5.4 |
| 7 |
* Author: ConvertKit |
| 8 |
* Author URI: https://convertkit.com/ |
| 9 |
* Text Domain: convertkit |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( class_exists( 'WP_ConvertKit' ) ) { |
| 13 |
return; |
| 14 |
} |
| 15 |
|
| 16 |
define( 'CONVERTKIT_PLUGIN_FILE', plugin_basename( __FILE__ ) ); |
| 17 |
define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 18 |
define( 'CONVERTKIT_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
| 19 |
define( 'CONVERTKIT_PLUGIN_VERSION', '1.5.3' ); |
| 20 |
|
| 21 |
require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit.php'; |
| 22 |
require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-api.php'; |
| 23 |
require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-ck-widget-form.php'; |
| 24 |
require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-custom-content.php'; |
| 25 |
require_once CONVERTKIT_PLUGIN_PATH . '/includes/integration/class-convertkit-wishlist-integration.php'; |
| 26 |
require_once CONVERTKIT_PLUGIN_PATH . '/includes/integration/class-convertkit-contactform7-integration.php'; |
| 27 |
|
| 28 |
if ( is_admin() ) { |
| 29 |
require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-settings.php'; |
| 30 |
require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-multi-value-field-table.php'; |
| 31 |
require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-tinymce.php'; |
| 32 |
require_once CONVERTKIT_PLUGIN_PATH . '/admin/section/class-convertkit-settings-base.php'; |
| 33 |
require_once CONVERTKIT_PLUGIN_PATH . '/admin/section/class-convertkit-settings-general.php'; |
| 34 |
require_once CONVERTKIT_PLUGIN_PATH . '/admin/section/class-convertkit-settings-wishlist.php'; |
| 35 |
require_once CONVERTKIT_PLUGIN_PATH . '/admin/section/class-convertkit-settings-contactform7.php'; |
| 36 |
|
| 37 |
$convertkit_settings = new ConvertKit_Settings(); |
| 38 |
} |
| 39 |
|
| 40 |
WP_ConvertKit::init(); |
| 41 |
|