| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: FormsCRM |
| 4 |
* Plugin URI: https://closemarketing.net/formscrm |
| 5 |
* Description: Connects Forms with CRM. |
| 6 |
* Version: 3.7.3 |
| 7 |
* Author: Closemarketing |
| 8 |
* Author URI: https://close.marketing |
| 9 |
* Text Domain: formscrm |
| 10 |
* Domain Path: /languages |
| 11 |
* License: GPL-2.0+ |
| 12 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 13 |
* |
| 14 |
* @package WordPress |
| 15 |
* @author Closemarketing |
| 16 |
* @copyright 2021 Closemarketing |
| 17 |
* @license GPL-2.0+ |
| 18 |
* |
| 19 |
* @wordpress-plugin |
| 20 |
* |
| 21 |
* Prefix: fcrm |
| 22 |
*/ |
| 23 |
|
| 24 |
defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); |
| 25 |
|
| 26 |
define( 'FORMSCRM_VERSION', '3.7.3' ); |
| 27 |
define( 'FORMSCRM_PLUGIN', __FILE__ ); |
| 28 |
define( 'FORMSCRM_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 29 |
define( 'FORMSCRM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
| 30 |
|
| 31 |
add_action( 'plugins_loaded', 'fcrm_plugin_init' ); |
| 32 |
/** |
| 33 |
* Load localization files |
| 34 |
* |
| 35 |
* @return void |
| 36 |
*/ |
| 37 |
function fcrm_plugin_init() { |
| 38 |
load_plugin_textdomain( 'formscrm', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); |
| 39 |
} |
| 40 |
|
| 41 |
add_filter( |
| 42 |
'formscrm_choices', |
| 43 |
function( $choices ) { |
| 44 |
$choices[] = array( |
| 45 |
'label' => 'Holded', |
| 46 |
'value' => 'holded', |
| 47 |
); |
| 48 |
|
| 49 |
$choices[] = array( |
| 50 |
'label' => 'Clientify', |
| 51 |
'value' => 'clientify', |
| 52 |
); |
| 53 |
|
| 54 |
$choices[] = array( |
| 55 |
'label' => 'AcumbaMail', |
| 56 |
'value' => 'acumbamail', |
| 57 |
); |
| 58 |
|
| 59 |
return $choices; |
| 60 |
} |
| 61 |
); |
| 62 |
|
| 63 |
add_filter( |
| 64 |
'formscrm_dependency_apipassword', |
| 65 |
function( $choices ) { |
| 66 |
|
| 67 |
$choices[] = 'clientify'; |
| 68 |
$choices[] = 'acumbamail'; |
| 69 |
$choices[] = 'holded'; |
| 70 |
|
| 71 |
return $choices; |
| 72 |
} |
| 73 |
); |
| 74 |
|
| 75 |
add_filter( |
| 76 |
'formscrm_crmlib_path', |
| 77 |
function( $choices ) { |
| 78 |
|
| 79 |
$choices['holded'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-holded.php'; |
| 80 |
$choices['clientify'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-clientify.php'; |
| 81 |
$choices['acumbamail'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-acumbamail.php'; |
| 82 |
|
| 83 |
return $choices; |
| 84 |
} |
| 85 |
); |
| 86 |
|
| 87 |
// Include files. |
| 88 |
require_once FORMSCRM_PLUGIN_PATH . '/includes/formscrm-library/loader.php'; |
| 89 |
|