PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.26.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.26.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-form-actions / default_actions.php

default_actions.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.26.1, at classes/views/frm-form-actions/default_actions.php

213 lines 7.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 /**
7 * Add post action.
8 */
9 class FrmDefPostAction extends FrmFormAction {
10 public function __construct() {
11 $action_ops = FrmFormAction::default_action_opts( 'frm_wordpress_icon frm-inverse frm_show_upgrade' );
12 $action_ops['color'] = 'rgb(0,160,210)';
13
14 parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops );
15 }
16 }
17
18 /**
19 * Add register action.
20 */
21 class FrmDefRegAction extends FrmFormAction {
22 public function __construct() {
23 $action_ops = FrmFormAction::default_action_opts( 'frm_register_icon frm_show_upgrade' );
24 $action_ops['plugin'] = 'registration';
25 $action_ops['color'] = 'var(--pink)';
26 parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops );
27 }
28 }
29
30 /**
31 * Add paypal action.
32 */
33 class FrmDefPayPalAction extends FrmFormAction {
34 public function __construct() {
35 $action_ops = FrmFormAction::default_action_opts( 'frm_paypal_icon frm-inverse frm_show_upgrade' );
36 $action_ops['color'] = 'var(--primary-700)';
37
38 parent::__construct( 'paypal', 'PayPal', $action_ops );
39 }
40 }
41
42 /**
43 * Add quiz action.
44 */
45 class FrmDefQuizAction extends FrmFormAction {
46 public function __construct() {
47 $action_ops = FrmFormAction::default_action_opts( 'frm_percent_icon frm_quiz_icon frm_show_upgrade' );
48 $action_ops['plugin'] = 'quizzes';
49 parent::__construct( 'quiz', __( 'Scored Quiz', 'formidable' ), $action_ops );
50 }
51 }
52
53 /**
54 * Add quiz outcome action.
55 */
56 class FrmDefQuizOutcomeAction extends FrmFormAction {
57 public function __construct() {
58 $action_ops = FrmFormAction::default_action_opts( 'frm_check1_icon frm_quiz_icon frm_show_upgrade' );
59 $action_ops['plugin'] = 'quizzes';
60 parent::__construct( 'quiz_outcome', __( 'Quiz Outcome', 'formidable' ), $action_ops );
61 }
62 }
63
64 /**
65 * Add aweber action.
66 */
67 class FrmDefAweberAction extends FrmFormAction {
68 public function __construct() {
69 $action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon frm_show_upgrade' );
70 $action_ops['color'] = 'var(--green)';
71 parent::__construct( 'aweber', 'AWeber', $action_ops );
72 }
73 }
74
75 /**
76 * Add mailchimp action.
77 */
78 class FrmDefMlcmpAction extends FrmFormAction {
79 public function __construct() {
80 $action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon frm_show_upgrade frm-inverse' );
81 $action_ops['color'] = 'var(--grey-700)';
82
83 parent::__construct( 'mailchimp', 'Mailchimp', $action_ops );
84 }
85 }
86
87 /**
88 * Add zapier action.
89 */
90 class FrmDefZapierAction extends FrmFormAction {
91 public function __construct() {
92 $action_ops = FrmFormAction::default_action_opts( 'frm_zapier_icon frm_show_upgrade' );
93 $action_ops['color'] = 'var(--orange)';
94 parent::__construct( 'zapier', 'Zapier', $action_ops );
95 }
96 }
97
98 /**
99 * Add n8n action.
100 */
101 class FrmDefN8NAction extends FrmFormAction {
102 public function __construct() {
103 $action_ops = FrmFormAction::default_action_opts( 'frm_n8n_icon frm_show_upgrade' );
104 $action_ops['color'] = '#EA4B71';
105 parent::__construct( 'n8n', 'n8n', $action_ops );
106 }
107 }
108
109 /**
110 * Add twilio action.
111 */
112 class FrmDefTwilioAction extends FrmFormAction {
113 public function __construct() {
114 $action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' );
115 parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops );
116 }
117 }
118
119 class FrmDefActiveCampaignAction extends FrmFormAction {
120 public function __construct() {
121 $action_ops = FrmFormAction::default_action_opts( 'frm_activecampaign_icon frm_show_upgrade' );
122 $action_ops['color'] = 'var(--primary-700)';
123 parent::__construct( 'activecampaign', 'ActiveCampaign', $action_ops );
124 }
125 }
126
127 class FrmDefSalesforceAction extends FrmFormAction {
128 public function __construct() {
129 $action_ops = FrmFormAction::default_action_opts( 'frm_salesforce_icon frm-inverse frm_show_upgrade' );
130 $action_ops['color'] = 'var(--primary-500)';
131 parent::__construct( 'salesforce', 'Salesforce', $action_ops );
132 }
133 }
134
135 class FrmDefConstContactAction extends FrmFormAction {
136 public function __construct() {
137 $action_ops = FrmFormAction::default_action_opts( 'frm_constant_contact_icon frm_show_upgrade' );
138 $action_ops['color'] = 'rgb(0,160,210)';
139 parent::__construct( 'constantcontact', 'Constant Contact', $action_ops );
140 }
141 }
142
143 class FrmDefGetResponseAction extends FrmFormAction {
144 public function __construct() {
145 $action_ops = FrmFormAction::default_action_opts( 'frm_getresponse_icon frm_show_upgrade' );
146 $action_ops['color'] = '#00baff';
147 parent::__construct( 'getresponse', 'GetResponse', $action_ops );
148 }
149 }
150
151 class FrmDefHubspotAction extends FrmFormAction {
152 public function __construct() {
153 $action_ops = FrmFormAction::default_action_opts( 'frm_hubspot_icon frm_show_upgrade' );
154 $action_ops['color'] = 'var(--orange)';
155
156 $action_ops['message'] = '';
157
158 if ( ! FrmAppHelper::pro_is_installed() ) {
159 $action_ops['message'] .= __( 'The HubSpot integration is not available on your plan. Did you know you can upgrade to unlock more awesome features?', 'formidable' ) . '<br/><br/>';
160 }
161
162 $link = FrmAppHelper::admin_upgrade_link( 'add-action', 'knowledgebase/hubspot-forms/' );
163 $action_ops['message'] .= '<a href="' . esc_url( $link ) . '" target="_blank" rel="noopener" class="button button-secondary frm-button-secondary">Get Free HubSpot Account</a>';
164 parent::__construct( 'hubspot', 'Hubspot', $action_ops );
165 }
166 }
167
168 class FrmDefMailpoetAction extends FrmFormAction {
169 public function __construct() {
170 $action_ops = FrmFormAction::default_action_opts( 'frm_mailpoet_icon frm_show_upgrade' );
171 $action_ops['color'] = 'var(--orange)';
172 parent::__construct( 'mailpoet', 'MailPoet', $action_ops );
173 }
174 }
175
176 class FrmDefApiAction extends FrmFormAction {
177 public function __construct() {
178 $action_ops = FrmFormAction::default_action_opts( 'frm_feed_icon frm_show_upgrade' );
179 $action_ops['color'] = 'var(--purple)';
180 parent::__construct( 'api', __( 'Send API data', 'formidable' ), $action_ops );
181 }
182 }
183
184 /**
185 * Add google sheets.
186 */
187 class FrmDefGoogleSpreadsheetAction extends FrmFormAction {
188 public function __construct() {
189 $action_ops = FrmFormAction::default_action_opts( 'frm_googlesheets_icon frm_show_upgrade' );
190 $action_ops['color'] = 'var(--green)';
191 parent::__construct( 'googlespreadsheet', __( 'Google Sheets', 'formidable' ), $action_ops );
192 }
193 }
194
195 class FrmDefHrsAction extends FrmFormAction {
196 public function __construct() {
197 _deprecated_function( __METHOD__, '6.5' );
198
199 $action_ops = FrmFormAction::default_action_opts( 'frm_stripe_icon frm_credit_card_alt_icon frm_show_upgrade' );
200 $action_ops['color'] = 'var(--green)';
201 $action_ops['plugin'] = 'stripe';
202 parent::__construct( 'payment', __( 'eCommerce', 'formidable' ), $action_ops );
203 }
204 }
205
206 class FrmDefConvertKitAction extends FrmFormAction {
207 public function __construct() {
208 $action_ops = FrmFormAction::default_action_opts( 'frm_convertkit_icon frm-inverse frm_show_upgrade' );
209 $action_ops['color'] = 'rgb(68 177 255)';
210 parent::__construct( 'convertkit', 'Kit', $action_ops );
211 }
212 }
213