← All changes
|
includes/admin/class-pro-upgrade-integrations.php
+175
-158
1.6.9
→
1.3.9
View file →
| @@ -1,158 +1,175 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * The Pro Integration Prompt Class | |
| 5 | - */ | |
| 6 | -class WeForms_Pro_Integration_Prompt extends WeForms_Abstract_Integration { | |
| 7 | - /** | |
| 8 | - * Check if it's a pro field | |
| 9 | - * | |
| 10 | - * @return bool | |
| 11 | - */ | |
| 12 | - public function is_pro() { | |
| 13 | - return true; | |
| 14 | - } | |
| 15 | -} | |
| 16 | - | |
| 17 | -/** | |
| 18 | - * Mailchimp | |
| 19 | - */ | |
| 20 | -class WeForms_Pro_Integration_MailChimp extends WeForms_Pro_Integration_Prompt { | |
| 21 | - public function __construct() { | |
| 22 | - $this->id = 'mailchimp'; | |
| 23 | - $this->title = __( 'MailChimp', 'weforms' ); | |
| 24 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-mailchimp.svg'; | |
| 25 | - } | |
| 26 | -} | |
| 27 | - | |
| 28 | -/** | |
| 29 | - * Campaign Monitor | |
| 30 | - */ | |
| 31 | -class WeForms_Pro_Integration_CM extends WeForms_Pro_Integration_Prompt { | |
| 32 | - public function __construct() { | |
| 33 | - $this->id = 'campaign-monitor'; | |
| 34 | - $this->title = __( 'Campaign Monitor', 'weforms' ); | |
| 35 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-campaign-monitor.svg'; | |
| 36 | - } | |
| 37 | -} | |
| 38 | - | |
| 39 | -/** | |
| 40 | - * Constant Contact | |
| 41 | - */ | |
| 42 | -class WeForms_Pro_Integration_CC extends WeForms_Pro_Integration_Prompt { | |
| 43 | - public function __construct() { | |
| 44 | - $this->id = 'constant-contact'; | |
| 45 | - $this->title = __( 'Constant Contact', 'weforms' ); | |
| 46 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-constant-contact.svg'; | |
| 47 | - } | |
| 48 | -} | |
| 49 | - | |
| 50 | -/** | |
| 51 | - * AWeber | |
| 52 | - */ | |
| 53 | -class WeForms_Pro_Integration_AWeber extends WeForms_Pro_Integration_Prompt { | |
| 54 | - public function __construct() { | |
| 55 | - $this->id = 'aweber'; | |
| 56 | - $this->title = __( 'AWeber', 'weforms' ); | |
| 57 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-aweber.svg'; | |
| 58 | - } | |
| 59 | -} | |
| 60 | - | |
| 61 | -/** | |
| 62 | - * ConvertKit | |
| 63 | - */ | |
| 64 | -class WeForms_Pro_Integration_ConvertKit extends WeForms_Pro_Integration_Prompt { | |
| 65 | - public function __construct() { | |
| 66 | - $this->id = 'convertkit'; | |
| 67 | - $this->title = __( 'ConvertKit', 'weforms' ); | |
| 68 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-convertkit.svg'; | |
| 69 | - } | |
| 70 | -} | |
| 71 | - | |
| 72 | -/** | |
| 73 | - * GetResponse | |
| 74 | - */ | |
| 75 | -class WeForms_Pro_Integration_GetResponse extends WeForms_Pro_Integration_Prompt { | |
| 76 | - public function __construct() { | |
| 77 | - $this->id = 'getresponse'; | |
| 78 | - $this->title = __( 'GetResponse', 'weforms' ); | |
| 79 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-get-response.png'; | |
| 80 | - } | |
| 81 | -} | |
| 82 | - | |
| 83 | -/** | |
| 84 | - * Google Analytics | |
| 85 | - */ | |
| 86 | -class WeForms_Pro_Integration_GoogleAnalytics extends WeForms_Pro_Integration_Prompt { | |
| 87 | - public function __construct() { | |
| 88 | - $this->id = 'google_analytics'; | |
| 89 | - $this->title = __( 'Google Analytics', 'weforms' ); | |
| 90 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-google-analytics.svg'; | |
| 91 | - } | |
| 92 | -} | |
| 93 | - | |
| 94 | -/** | |
| 95 | - * Google Sheets | |
| 96 | - */ | |
| 97 | -class WeForms_Pro_Integration_GoogleSheets extends WeForms_Pro_Integration_Prompt { | |
| 98 | - public function __construct() { | |
| 99 | - $this->id = 'google_sheets'; | |
| 100 | - $this->title = __( 'Google Sheets', 'weforms' ); | |
| 101 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-google-sheets.svg'; | |
| 102 | - } | |
| 103 | -} | |
| 104 | - | |
| 105 | -/** | |
| 106 | - * HubSpot | |
| 107 | - */ | |
| 108 | -class WeForms_Pro_Integration_HubSpot extends WeForms_Pro_Integration_Prompt { | |
| 109 | - public function __construct() { | |
| 110 | - $this->id = 'hubspot'; | |
| 111 | - $this->title = __( 'HubSpot', 'weforms' ); | |
| 112 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-hubspot.svg'; | |
| 113 | - } | |
| 114 | -} | |
| 115 | - | |
| 116 | -/** | |
| 117 | - * SalesForce | |
| 118 | - */ | |
| 119 | -class WeForms_Pro_Integration_SalesForce extends WeForms_Pro_Integration_Prompt { | |
| 120 | - public function __construct() { | |
| 121 | - $this->id = 'salesforce'; | |
| 122 | - $this->title = __( 'SalesForce', 'weforms' ); | |
| 123 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-salesforce.svg'; | |
| 124 | - } | |
| 125 | -} | |
| 126 | - | |
| 127 | -/** | |
| 128 | - * Trello | |
| 129 | - */ | |
| 130 | -class WeForms_Pro_Integration_Trello extends WeForms_Pro_Integration_Prompt { | |
| 131 | - public function __construct() { | |
| 132 | - $this->id = 'trello'; | |
| 133 | - $this->title = __( 'Trello', 'weforms' ); | |
| 134 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-trello.svg'; | |
| 135 | - } | |
| 136 | -} | |
| 137 | - | |
| 138 | -/** | |
| 139 | - * Zapier | |
| 140 | - */ | |
| 141 | -class WeForms_Pro_Integration_Zapier extends WeForms_Pro_Integration_Prompt { | |
| 142 | - public function __construct() { | |
| 143 | - $this->id = 'zapier'; | |
| 144 | - $this->title = __( 'Zapier', 'weforms' ); | |
| 145 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-zapier.svg'; | |
| 146 | - } | |
| 147 | -} | |
| 148 | - | |
| 149 | -/** | |
| 150 | - * Zoho | |
| 151 | - */ | |
| 152 | -class WeForms_Pro_Integration_Zoho extends WeForms_Pro_Integration_Prompt { | |
| 153 | - public function __construct() { | |
| 154 | - $this->id = 'zoho'; | |
| 155 | - $this->title = __( 'Zoho', 'weforms' ); | |
| 156 | - $this->icon = WEFORMS_ASSET_URI . '/images/icon-zoho.svg'; | |
| 157 | - } | |
| 158 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * The Pro Integration Prompt Class | |
| 5 | + */ | |
| 6 | +class WeForms_Pro_Integration_Prompt extends WeForms_Abstract_Integration { | |
| 7 | + | |
| 8 | + /** | |
| 9 | + * Check if it's a pro field | |
| 10 | + * | |
| 11 | + * @return boolean | |
| 12 | + */ | |
| 13 | + public function is_pro() { | |
| 14 | + return true; | |
| 15 | + } | |
| 16 | +} | |
| 17 | + | |
| 18 | +/** | |
| 19 | + * Mailchimp | |
| 20 | + */ | |
| 21 | +class WeForms_Pro_Integration_MailChimp extends WeForms_Pro_Integration_Prompt { | |
| 22 | + | |
| 23 | + function __construct() { | |
| 24 | + $this->id = 'mailchimp'; | |
| 25 | + $this->title = __( 'MailChimp', 'weforms' ); | |
| 26 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-mailchimp.svg'; | |
| 27 | + } | |
| 28 | +} | |
| 29 | + | |
| 30 | +/** | |
| 31 | + * Campaign Monitor | |
| 32 | + */ | |
| 33 | +class WeForms_Pro_Integration_CM extends WeForms_Pro_Integration_Prompt { | |
| 34 | + | |
| 35 | + function __construct() { | |
| 36 | + $this->id = 'campaign-monitor'; | |
| 37 | + $this->title = __( 'Campaign Monitor', 'weforms' ); | |
| 38 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-campaign-monitor.svg'; | |
| 39 | + } | |
| 40 | +} | |
| 41 | + | |
| 42 | +/** | |
| 43 | + * Constant Contact | |
| 44 | + */ | |
| 45 | +class WeForms_Pro_Integration_CC extends WeForms_Pro_Integration_Prompt { | |
| 46 | + | |
| 47 | + function __construct() { | |
| 48 | + $this->id = 'constant-contact'; | |
| 49 | + $this->title = __( 'Constant Contact', 'weforms' ); | |
| 50 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-constant-contact.svg'; | |
| 51 | + } | |
| 52 | +} | |
| 53 | + | |
| 54 | + | |
| 55 | +/** | |
| 56 | + * AWeber | |
| 57 | + */ | |
| 58 | +class WeForms_Pro_Integration_AWeber extends WeForms_Pro_Integration_Prompt { | |
| 59 | + | |
| 60 | + function __construct() { | |
| 61 | + $this->id = 'aweber'; | |
| 62 | + $this->title = __( 'AWeber', 'weforms' ); | |
| 63 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-aweber.svg'; | |
| 64 | + } | |
| 65 | +} | |
| 66 | + | |
| 67 | + | |
| 68 | +/** | |
| 69 | + * ConvertKit | |
| 70 | + */ | |
| 71 | +class WeForms_Pro_Integration_ConvertKit extends WeForms_Pro_Integration_Prompt { | |
| 72 | + | |
| 73 | + function __construct() { | |
| 74 | + $this->id = 'convertkit'; | |
| 75 | + $this->title = __( 'ConvertKit', 'weforms' ); | |
| 76 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-convertkit.svg'; | |
| 77 | + } | |
| 78 | +} | |
| 79 | + | |
| 80 | +/** | |
| 81 | + * GetResponse | |
| 82 | + */ | |
| 83 | +class WeForms_Pro_Integration_GetResponse extends WeForms_Pro_Integration_Prompt { | |
| 84 | + | |
| 85 | + function __construct() { | |
| 86 | + $this->id = 'getresponse'; | |
| 87 | + $this->title = __( 'GetResponse', 'weforms' ); | |
| 88 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-get-response.png'; | |
| 89 | + } | |
| 90 | +} | |
| 91 | + | |
| 92 | +/** | |
| 93 | + * Google Analytics | |
| 94 | + */ | |
| 95 | +class WeForms_Pro_Integration_GoogleAnalytics extends WeForms_Pro_Integration_Prompt { | |
| 96 | + | |
| 97 | + function __construct() { | |
| 98 | + $this->id = 'google_analytics'; | |
| 99 | + $this->title = __( 'Google Analytics', 'weforms' ); | |
| 100 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-google-analytics.svg'; | |
| 101 | + } | |
| 102 | +} | |
| 103 | + | |
| 104 | +/** | |
| 105 | + * Google Sheets | |
| 106 | + */ | |
| 107 | +class WeForms_Pro_Integration_GoogleSheets extends WeForms_Pro_Integration_Prompt { | |
| 108 | + | |
| 109 | + function __construct() { | |
| 110 | + $this->id = 'google_sheets'; | |
| 111 | + $this->title = __( 'Google Sheets', 'weforms' ); | |
| 112 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-google-sheets.svg'; | |
| 113 | + } | |
| 114 | +} | |
| 115 | + | |
| 116 | +/** | |
| 117 | + * HubSpot | |
| 118 | + */ | |
| 119 | +class WeForms_Pro_Integration_HubSpot extends WeForms_Pro_Integration_Prompt { | |
| 120 | + | |
| 121 | + function __construct() { | |
| 122 | + $this->id = 'hubspot'; | |
| 123 | + $this->title = __( 'HubSpot', 'weforms' ); | |
| 124 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-hubspot.svg'; | |
| 125 | + } | |
| 126 | +} | |
| 127 | + | |
| 128 | +/** | |
| 129 | + * SalesForce | |
| 130 | + */ | |
| 131 | +class WeForms_Pro_Integration_SalesForce extends WeForms_Pro_Integration_Prompt { | |
| 132 | + | |
| 133 | + function __construct() { | |
| 134 | + $this->id = 'salesforce'; | |
| 135 | + $this->title = __( 'SalesForce', 'weforms' ); | |
| 136 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-salesforce.svg'; | |
| 137 | + } | |
| 138 | +} | |
| 139 | + | |
| 140 | +/** | |
| 141 | + * Trello | |
| 142 | + */ | |
| 143 | +class WeForms_Pro_Integration_Trello extends WeForms_Pro_Integration_Prompt { | |
| 144 | + | |
| 145 | + function __construct() { | |
| 146 | + $this->id = 'trello'; | |
| 147 | + $this->title = __( 'Trello', 'weforms' ); | |
| 148 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-trello.svg'; | |
| 149 | + } | |
| 150 | +} | |
| 151 | + | |
| 152 | +/** | |
| 153 | + * Zapier | |
| 154 | + */ | |
| 155 | +class WeForms_Pro_Integration_Zapier extends WeForms_Pro_Integration_Prompt { | |
| 156 | + | |
| 157 | + function __construct() { | |
| 158 | + $this->id = 'zapier'; | |
| 159 | + $this->title = __( 'Zapier', 'weforms' ); | |
| 160 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-zapier.svg'; | |
| 161 | + } | |
| 162 | +} | |
| 163 | + | |
| 164 | +/** | |
| 165 | + * Zoho | |
| 166 | + */ | |
| 167 | +class WeForms_Pro_Integration_Zoho extends WeForms_Pro_Integration_Prompt { | |
| 168 | + | |
| 169 | + function __construct() { | |
| 170 | + $this->id = 'zoho'; | |
| 171 | + $this->title = __( 'Zoho', 'weforms' ); | |
| 172 | + $this->icon = WEFORMS_ASSET_URI . '/images/icon-zoho.svg'; | |
| 173 | + } | |
| 174 | +} | |
| 175 | + | |