forked from FluentCRM/fluent-crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfluent-crm.php
40 lines (35 loc) · 1.64 KB
/
fluent-crm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php defined('ABSPATH') or die;
/*
Plugin Name: FluentCRM - Marketing Automation For WordPress
Plugin URI: https://fluentcrm.com
Description: CRM and Email Newsletter Plugin for WordPress
Version: 2.5.8
Author: Newsletter Team by Fluent CRM
Author URI: https://fluentcrm.com
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fluent-crm
Domain Path: /language
*/
define('FLUENTCRM', 'fluentcrm');
define('FLUENTCRM_UPLOAD_DIR', '/fluentcrm');
define('FLUENTCRM_PLUGIN_URL', plugin_dir_url(__FILE__));
define('FLUENTCRM_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('FLUENTCRM_PLUGIN_VERSION', '2.5.8');
define('FLUENTCRM_FRAMEWORK_VERSION', '2');
require __DIR__ . '/vendor/autoload.php';
call_user_func(function ($bootstrap) {
$bootstrap(__FILE__);
}, require(__DIR__ . '/boot/app.php'));
add_filter('plugin_row_meta', 'fluentcrm_plugin_row_meta', 10, 2);
function fluentcrm_plugin_row_meta($links, $file)
{
if ('fluent-crm/fluent-crm.php' == $file) {
$row_meta = array(
'docs' => '<a 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>',
'support' => '<a href="https://wpmanageninja.com/support-tickets/#/" style="color: #583fad;font-weight: 600;" aria-label="' . esc_attr(esc_html__('Get Support', 'fluent-crm')) . '" target="_blank">' . esc_html__('Support', 'fluent-crm') . '</a>'
);
return array_merge($links, $row_meta);
}
return (array)$links;
}