| 1 |
<?php defined('ABSPATH') or die; |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: FluentCRM - Marketing Automation For WordPress |
| 5 |
* Plugin URI: https://fluentcrm.com |
| 6 |
* Description: CRM and Email Newsletter Plugin for WordPress |
| 7 |
* Version: 3.2.0 |
| 8 |
* Author: WP Email Newsletter Team - FluentCRM |
| 9 |
* Author URI: https://fluentcrm.com |
| 10 |
* License: GPLv2 or later |
| 11 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 12 |
* Text Domain: fluent-crm |
| 13 |
* Domain Path: /language |
| 14 |
*/ |
| 15 |
|
| 16 |
if (defined('FLUENTCRM')) { |
| 17 |
return; |
| 18 |
} |
| 19 |
|
| 20 |
define('FLUENTCRM', 'fluentcrm'); |
| 21 |
define('FLUENTCRM_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 22 |
define('FLUENTCRM_PLUGIN_PATH', plugin_dir_path(__FILE__)); |
| 23 |
define('FLUENTCRM_PLUGIN_VERSION', '3.2.0'); |
| 24 |
define('FLUENTCRM_MIN_PRO_VERSION', '3.2.0');; |
| 25 |
define('FLUENTCRM_FRAMEWORK_VERSION', 4); |
| 26 |
|
| 27 |
/** |
| 28 |
* Version of the admin-app module contract that addon plugins build against: |
| 29 |
* the bare specifiers in the import map (AdminMenu::printModuleImportMap()), |
| 30 |
* the exports of resources/admin/shared/ui.js, and the JS filters an addon may |
| 31 |
* hook. Addons must gate their admin-app enqueue on this constant so a core |
| 32 |
* downgrade skips their UI instead of white-screening the admin. |
| 33 |
* |
| 34 |
* Bump only for a breaking change to that surface. |
| 35 |
*/ |
| 36 |
define('FLUENTCRM_MODULE_API', 2); |
| 37 |
|
| 38 |
define('FLUENTCRM_DB_VERSION', '2.10.30'); |
| 39 |
|
| 40 |
define('FLUENTCRM_CORE_FRAMEWORK_VERSION', 3); |
| 41 |
|
| 42 |
define('FLUENT_CRM_STARTING_TIME', microtime(true)); |
| 43 |
define('FC_TEMPLATE_API_DOMAIN', 'https://fluentcrm.com'); |
| 44 |
|
| 45 |
if (!defined('FLUENTCRM_UPLOAD_DIR')) { |
| 46 |
define('FLUENTCRM_UPLOAD_DIR', '/fluentcrm'); |
| 47 |
} |
| 48 |
|
| 49 |
if (!defined('FLUENTCRM_EXTERNAL_URL_PARAM')) { |
| 50 |
define('FLUENTCRM_EXTERNAL_URL_PARAM', 'fluentcrm'); |
| 51 |
} |
| 52 |
|
| 53 |
require __DIR__ . '/vendor/autoload.php'; |
| 54 |
|
| 55 |
call_user_func(function ($bootstrap) { |
| 56 |
$bootstrap(__FILE__); |
| 57 |
}, require(__DIR__ . '/boot/app.php')); |
| 58 |
|
| 59 |
add_filter('plugin_row_meta', 'fluentcrm_plugin_row_meta', 10, 2); |
| 60 |
|
| 61 |
function fluentcrm_plugin_row_meta($links, $file) |
| 62 |
{ |
| 63 |
if ('fluent-crm/fluent-crm.php' == $file) { |
| 64 |
$row_meta = array( |
| 65 |
'docs' => '<a rel="noopener" href="https://fluentcrm.com/docs/" style="color: #23c507;font-weight: 600;" aria-label="' . esc_attr(esc_html__('View FluentCRM Documentation', 'fluent-crm')) . '" target="_blank">' . esc_html__('Docs & FAQs', 'fluent-crm') . '</a>', |
| 66 |
'support' => '<a rel="noopener" href="https://wpmanageninja.com/support-tickets/#/" style="color: #23c507;font-weight: 600;" aria-label="' . esc_attr(esc_html__('Get Support', 'fluent-crm')) . '" target="_blank">' . esc_html__('Support', 'fluent-crm') . '</a>', |
| 67 |
'developer_docs' => '<a rel="noopener" href="https://developers.fluentcrm.com" style="color: #23c507;font-weight: 600;" aria-label="' . esc_attr(esc_html__('Developer Docs', 'fluent-crm')) . '" target="_blank">' . esc_html__('Developer Docs', 'fluent-crm') . '</a>', |
| 68 |
); |
| 69 |
|
| 70 |
if (!defined('FLUENTCAMPAIGN')) { |
| 71 |
$row_meta['pro'] = '<a rel="noopener" href="https://fluentcrm.com" style="color: #7742e6;font-weight: bold;" aria-label="' . esc_attr(esc_html__('Upgrade to Pro', 'fluent-crm')) . '" target="_blank">' . esc_html__('Upgrade to Pro', 'fluent-crm') . '</a>'; |
| 72 |
} |
| 73 |
return array_merge($links, $row_meta); |
| 74 |
} |
| 75 |
|
| 76 |
return (array)$links; |
| 77 |
} |
| 78 |
|