PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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
← All changes | classes/views/frm-form-actions/default_actions.php +75 -27 6.30 → trunk View file →
@@ -7,10 +7,10 @@
7 7 * Add post action.
8 8 */
9 9 class FrmDefPostAction extends FrmFormAction {
10 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)';
11 + $action_ops = FrmFormAction::default_action_opts( 'frm_wordpress_icon frm_show_upgrade' );
12 + $action_ops['color'] = '#3177C7';
13 13
14 14 parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops );
15 15 }
16 16 }
@@ -21,9 +21,9 @@
21 21 class FrmDefRegAction extends FrmFormAction {
22 22 public function __construct() {
23 23 $action_ops = FrmFormAction::default_action_opts( 'frm_register_icon frm_show_upgrade' );
24 24 $action_ops['plugin'] = 'registration';
25 - $action_ops['color'] = 'var(--pink)';
25 + $action_ops['color'] = '#e22a6e';
26 26 parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops );
27 27 }
28 28 }
29 29
@@ -29,12 +29,14 @@
29 29
30 30 /**
31 31 * Add paypal action.
32 32 */
33 -class FrmDefPayPalAction extends FrmFormAction {
33 +class FrmPayPalLiteAction extends FrmFormAction {
34 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)';
35 + $action_ops = array(
36 + 'classes' => 'frmfont frm_paypal_icon',
37 + 'color' => 'var(--primary-700)',
38 + );
37 39
38 40 parent::__construct( 'paypal', 'PayPal', $action_ops );
39 41 }
40 42 }
@@ -39,14 +41,57 @@
39 41 }
40 42 }
41 43
42 44 /**
45 + * Add paypal legacy action.
46 + */
47 +if ( class_exists( 'FrmPaymentAction' ) ) {
48 + class FrmDefPayPalLegacyAction extends FrmPaymentAction {
49 + public function __construct() {
50 + parent::__construct();
51 +
52 + $this->id_base = 'paypal-legacy';
53 + $this->name = 'PayPal (Legacy)';
54 +
55 + // FrmPaymentAction sets option_name to 'frm_paypal_action' using its 'paypal'
56 + // id_base. Recompute it from the new id_base so this action does not share the
57 + // POST data namespace with the PayPal add-on's 'paypal' action, which would make
58 + // both action controls save the same submission and create a duplicate action.
59 + $this->option_name = 'frm_' . $this->id_base . '_action';
60 + }
61 + }
62 +}
63 +
64 +class FrmStripeLiteAction extends FrmFormAction {
65 + public function __construct() {
66 + $action_ops = array(
67 + 'classes' => 'frmfont frm_stripe_icon',
68 + 'color' => '#635bff',
69 + );
70 +
71 + parent::__construct( 'stripe', 'Stripe', $action_ops );
72 + }
73 +}
74 +
75 +class FrmSquareAction extends FrmFormAction {
76 + public function __construct() {
77 + $action_ops = array(
78 + 'classes' => 'frmfont frm_square_icon',
79 + 'color' => '#000',
80 + );
81 +
82 + parent::__construct( 'square', 'Square', $action_ops );
83 + }
84 +}
85 +
86 +/**
43 87 * Add quiz action.
44 88 */
45 89 class FrmDefQuizAction extends FrmFormAction {
46 90 public function __construct() {
47 - $action_ops = FrmFormAction::default_action_opts( 'frm_percent_icon frm_quiz_icon frm_show_upgrade' );
91 + $action_ops = FrmFormAction::default_action_opts( 'frm_quiz_icon frm_show_upgrade' );
48 92 $action_ops['plugin'] = 'quizzes';
93 + $action_ops['color'] = '#f15a24';
49 94 parent::__construct( 'quiz', __( 'Scored Quiz', 'formidable' ), $action_ops );
50 95 }
51 96 }
52 97
@@ -54,10 +99,11 @@
54 99 * Add quiz outcome action.
55 100 */
56 101 class FrmDefQuizOutcomeAction extends FrmFormAction {
57 102 public function __construct() {
58 - $action_ops = FrmFormAction::default_action_opts( 'frm_check1_icon frm_quiz_icon frm_show_upgrade' );
103 + $action_ops = FrmFormAction::default_action_opts( 'frm_quiz_outcome_icon frm_show_upgrade' );
59 104 $action_ops['plugin'] = 'quizzes';
105 + $action_ops['color'] = '#8d35f5';
60 106 parent::__construct( 'quiz_outcome', __( 'Quiz Outcome', 'formidable' ), $action_ops );
61 107 }
62 108 }
63 109
@@ -66,9 +112,9 @@
66 112 */
67 113 class FrmDefAweberAction extends FrmFormAction {
68 114 public function __construct() {
69 115 $action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon frm_show_upgrade' );
70 - $action_ops['color'] = 'var(--green)';
116 + $action_ops['color'] = '#246BE8';
71 117 parent::__construct( 'aweber', 'AWeber', $action_ops );
72 118 }
73 119 }
74 120
@@ -76,10 +122,10 @@
76 122 * Add mailchimp action.
77 123 */
78 124 class FrmDefMlcmpAction extends FrmFormAction {
79 125 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)';
126 + $action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon frm_show_upgrade' );
127 + $action_ops['color'] = '#000';
82 128
83 129 parent::__construct( 'mailchimp', 'Mailchimp', $action_ops );
84 130 }
85 131 }
@@ -89,9 +135,9 @@
89 135 */
90 136 class FrmDefZapierAction extends FrmFormAction {
91 137 public function __construct() {
92 138 $action_ops = FrmFormAction::default_action_opts( 'frm_zapier_icon frm_show_upgrade' );
93 - $action_ops['color'] = 'var(--orange)';
139 + $action_ops['color'] = '#FF4A00';
94 140 parent::__construct( 'zapier', 'Zapier', $action_ops );
95 141 }
96 142 }
97 143
@@ -99,10 +145,11 @@
99 145 * Add n8n action.
100 146 */
101 147 class FrmDefN8NAction extends FrmFormAction {
102 148 public function __construct() {
103 - $action_ops = FrmFormAction::default_action_opts( 'frm_n8n_icon frm_show_upgrade' );
104 - $action_ops['color'] = '#EA4B71';
149 + $action_ops = FrmFormAction::default_action_opts( 'frm_n8n_icon frm_show_upgrade' );
150 + $action_ops['color'] = '#EA4B71';
151 + $action_ops['is_new'] = true;
105 152 parent::__construct( 'n8n', 'n8n', $action_ops );
106 153 }
107 154 }
108 155
@@ -110,9 +157,10 @@
110 157 * Add twilio action.
111 158 */
112 159 class FrmDefTwilioAction extends FrmFormAction {
113 160 public function __construct() {
114 - $action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' );
161 + $action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' );
162 + $action_ops['color'] = '#F12E45';
115 163 parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops );
116 164 }
117 165 }
118 166
@@ -118,9 +166,9 @@
118 166
119 167 class FrmDefActiveCampaignAction extends FrmFormAction {
120 168 public function __construct() {
121 169 $action_ops = FrmFormAction::default_action_opts( 'frm_activecampaign_icon frm_show_upgrade' );
122 - $action_ops['color'] = 'var(--primary-700)';
170 + $action_ops['color'] = '#004CFF';
123 171 parent::__construct( 'activecampaign', 'ActiveCampaign', $action_ops );
124 172 }
125 173 }
126 174
@@ -125,10 +173,10 @@
125 173 }
126 174
127 175 class FrmDefSalesforceAction extends FrmFormAction {
128 176 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)';
177 + $action_ops = FrmFormAction::default_action_opts( 'frm_salesforcealt_icon frm_show_upgrade' );
178 + $action_ops['color'] = '#00A1E0';
131 179 parent::__construct( 'salesforce', 'Salesforce', $action_ops );
132 180 }
133 181 }
134 182
@@ -134,9 +182,9 @@
134 182
135 183 class FrmDefConstContactAction extends FrmFormAction {
136 184 public function __construct() {
137 185 $action_ops = FrmFormAction::default_action_opts( 'frm_constant_contact_icon frm_show_upgrade' );
138 - $action_ops['color'] = 'rgb(0,160,210)';
186 + $action_ops['color'] = '#1856ED';
139 187 parent::__construct( 'constantcontact', 'Constant Contact', $action_ops );
140 188 }
141 189 }
142 190
@@ -142,9 +190,9 @@
142 190
143 191 class FrmDefGetResponseAction extends FrmFormAction {
144 192 public function __construct() {
145 193 $action_ops = FrmFormAction::default_action_opts( 'frm_getresponse_icon frm_show_upgrade' );
146 - $action_ops['color'] = '#00baff';
194 + $action_ops['color'] = '#00A2FF';
147 195 parent::__construct( 'getresponse', 'GetResponse', $action_ops );
148 196 }
149 197 }
150 198
@@ -150,9 +198,9 @@
150 198
151 199 class FrmDefHubspotAction extends FrmFormAction {
152 200 public function __construct() {
153 201 $action_ops = FrmFormAction::default_action_opts( 'frm_hubspot_icon frm_show_upgrade' );
154 - $action_ops['color'] = 'var(--orange)';
202 + $action_ops['color'] = '#FF7A59';
155 203
156 204 $action_ops['message'] = '';
157 205
158 206 if ( ! FrmAppHelper::pro_is_installed() ) {
@@ -158,9 +206,9 @@
158 206 if ( ! FrmAppHelper::pro_is_installed() ) {
159 207 $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 208 }
161 209
162 - $link = FrmAppHelper::admin_upgrade_link( 'add-action', 'knowledgebase/hubspot-forms/' );
210 + $link = FrmAppHelper::admin_upgrade_link( 'add-action', 'go/hubspot-signup' );
163 211 $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 212 parent::__construct( 'hubspot', 'Hubspot', $action_ops );
165 213 }
166 214 }
@@ -167,9 +215,9 @@
167 215
168 216 class FrmDefMailpoetAction extends FrmFormAction {
169 217 public function __construct() {
170 218 $action_ops = FrmFormAction::default_action_opts( 'frm_mailpoet_icon frm_show_upgrade' );
171 - $action_ops['color'] = 'var(--orange)';
219 + $action_ops['color'] = '#FE5301';
172 220 parent::__construct( 'mailpoet', 'MailPoet', $action_ops );
173 221 }
174 222 }
175 223
@@ -175,9 +223,9 @@
175 223
176 224 class FrmDefApiAction extends FrmFormAction {
177 225 public function __construct() {
178 226 $action_ops = FrmFormAction::default_action_opts( 'frm_feed_icon frm_show_upgrade' );
179 - $action_ops['color'] = 'var(--purple)';
227 + $action_ops['color'] = '#0193d7';
180 228 parent::__construct( 'api', __( 'Send API data', 'formidable' ), $action_ops );
181 229 }
182 230 }
183 231
@@ -186,9 +234,9 @@
186 234 */
187 235 class FrmDefGoogleSpreadsheetAction extends FrmFormAction {
188 236 public function __construct() {
189 237 $action_ops = FrmFormAction::default_action_opts( 'frm_googlesheets_icon frm_show_upgrade' );
190 - $action_ops['color'] = 'var(--green)';
238 + $action_ops['color'] = '#0F9D58';
191 239 parent::__construct( 'googlespreadsheet', __( 'Google Sheets', 'formidable' ), $action_ops );
192 240 }
193 241 }
194 242
@@ -204,9 +252,9 @@
204 252 }
205 253
206 254 class FrmDefConvertKitAction extends FrmFormAction {
207 255 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)';
256 + $action_ops = FrmFormAction::default_action_opts( 'frm_convertkit_icon frm_show_upgrade' );
257 + $action_ops['color'] = '#1E1E1E';
210 258 parent::__construct( 'convertkit', 'Kit', $action_ops );
211 259 }
212 260 }