PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.0.0-beta.3
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.0.0-beta.3
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / includes / admin / class-pro-integrations.php

class-pro-integrations.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.0.0-beta.3, at includes/admin/class-pro-integrations.php

68 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The Pro Integrations
5 */
6 class WeForms_Pro_Integrations {
7
8 /**
9 * Initialize
10 */
11 function __construct() {
12
13 if ( class_exists( 'WeForms_Pro' ) ) {
14 return;
15 }
16
17 add_filter( 'weforms_form_builder_integrations', array( $this, 'register_integrations' ) );
18 }
19
20 /**
21 * Register the pro integrations
22 *
23 * @param array $integrations
24 *
25 * @return array
26 */
27 public function register_integrations( $integrations ) {
28 $pro = array(
29 'mailchimp' => array(
30 'id' => 'mailchimp',
31 'title' => __( 'MailChimp', 'textdomain' ),
32 'icon' => WEFORMS_ASSET_URI . '/images/icon-mailchimp.png',
33 'pro' => true,
34 'settings' => array(
35 'enabled' => false,
36 'list' => '',
37 'double' => false,
38 'fields' => array(
39 'email' => '',
40 'first_name' => '',
41 'last_name' => ''
42 )
43 )
44 ),
45 'constant-contact' => array(
46 'id' => 'constant-contact',
47 'title' => __( 'Constant Contact', 'textdomain' ),
48 'icon' => WEFORMS_ASSET_URI . '/images/icon-constant-contact.png',
49 'pro' => true
50 ),
51 'campaign-monitor' => array(
52 'id' => 'campaign-monitor',
53 'title' => __( 'Campaign Monitor', 'textdomain' ),
54 'icon' => WEFORMS_ASSET_URI . '/images/icon-campaign-monitor.png',
55 'pro' => true
56 ),
57 'mailpoet' => array(
58 'id' => 'mailpoet',
59 'title' => __( 'MailPoet', 'textdomain' ),
60 'icon' => WEFORMS_ASSET_URI . '/images/icon-mailpoet.png',
61 'pro' => true
62 ),
63 );
64
65 return array_merge( $integrations, $pro );
66 }
67 }
68