PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.4.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.4.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.4.1, at classes/views/frm-form-actions/default_actions.php

179 lines 6.7 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 // add post action
7 class FrmDefPostAction extends FrmFormAction {
8 public function __construct() {
9 $action_ops = FrmFormAction::default_action_opts( 'frm_wordpress_icon frm-inverse frm_show_upgrade' );
10 $action_ops['color'] = 'rgb(0,160,210)';
11
12 parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops );
13 }
14 }
15
16 // add register action
17 class FrmDefRegAction extends FrmFormAction {
18 public function __construct() {
19 $action_ops = FrmFormAction::default_action_opts( 'frm_register_icon frm_show_upgrade' );
20 $action_ops['plugin'] = 'registration';
21 $action_ops['color'] = 'var(--pink)';
22 parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops );
23 }
24 }
25
26 // add paypal action
27 class FrmDefPayPalAction extends FrmFormAction {
28 public function __construct() {
29 $action_ops = FrmFormAction::default_action_opts( 'frm_paypal_icon frm-inverse frm_show_upgrade' );
30 $action_ops['color'] = 'var(--primary-700)';
31
32 parent::__construct( 'paypal', 'PayPal', $action_ops );
33 }
34 }
35
36 // add quiz action
37 class FrmDefQuizAction extends FrmFormAction {
38 public function __construct() {
39 $action_ops = FrmFormAction::default_action_opts( 'frm_percent_icon frm_quiz_icon frm_show_upgrade' );
40 $action_ops['plugin'] = 'quizzes';
41 parent::__construct( 'quiz', __( 'Scored Quiz', 'formidable' ), $action_ops );
42 }
43 }
44
45 // add quiz outcome action
46 class FrmDefQuizOutcomeAction extends FrmFormAction {
47 public function __construct() {
48 $action_ops = FrmFormAction::default_action_opts( 'frm_check1_icon frm_quiz_icon frm_show_upgrade' );
49 $action_ops['plugin'] = 'quizzes';
50 parent::__construct( 'quiz_outcome', __( 'Quiz Outcome', 'formidable' ), $action_ops );
51 }
52 }
53
54 // add aweber action
55 class FrmDefAweberAction extends FrmFormAction {
56 public function __construct() {
57 $action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon frm_show_upgrade' );
58 $action_ops['color'] = 'var(--green)';
59 parent::__construct( 'aweber', 'AWeber', $action_ops );
60 }
61 }
62
63 // add mailchimp action
64 class FrmDefMlcmpAction extends FrmFormAction {
65 public function __construct() {
66 $action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon frm_show_upgrade frm-inverse' );
67 $action_ops['color'] = 'var(--grey-700)';
68
69 parent::__construct( 'mailchimp', 'Mailchimp', $action_ops );
70 }
71 }
72
73 // add zapier action
74 class FrmDefZapierAction extends FrmFormAction {
75 public function __construct() {
76 $action_ops = FrmFormAction::default_action_opts( 'frm_zapier_icon frm_show_upgrade' );
77 $action_ops['color'] = 'var(--orange)';
78 parent::__construct( 'zapier', 'Zapier', $action_ops );
79 }
80 }
81
82 // add twilio action
83 class FrmDefTwilioAction extends FrmFormAction {
84 public function __construct() {
85 $action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' );
86 parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops );
87 }
88 }
89
90 // add payment action
91 class FrmDefHrsAction extends FrmFormAction {
92 public function __construct() {
93 $action_ops = FrmFormAction::default_action_opts( 'frm_stripe_icon frm_credit_card_alt_icon frm_show_upgrade' );
94 $action_ops['color'] = 'var(--green)';
95 $action_ops['plugin'] = 'stripe';
96 parent::__construct( 'payment', __( 'eCommerce', 'formidable' ), $action_ops );
97 }
98 }
99
100 class FrmDefActiveCampaignAction extends FrmFormAction {
101 public function __construct() {
102 $action_ops = FrmFormAction::default_action_opts( 'frm_activecampaign_icon frm_show_upgrade' );
103 $action_ops['color'] = 'var(--primary-700)';
104 parent::__construct( 'activecampaign', 'ActiveCampaign', $action_ops );
105 }
106 }
107
108 class FrmDefSalesforceAction extends FrmFormAction {
109 public function __construct() {
110 $action_ops = FrmFormAction::default_action_opts( 'frm_salesforce_icon frm-inverse frm_show_upgrade' );
111 $action_ops['color'] = 'var(--primary-500)';
112 parent::__construct( 'salesforce', 'Salesforce', $action_ops );
113 }
114 }
115
116 class FrmDefConstContactAction extends FrmFormAction {
117 public function __construct() {
118 $action_ops = FrmFormAction::default_action_opts( 'frm_constant_contact_icon frm_show_upgrade' );
119 $action_ops['color'] = 'rgb(0,160,210)';
120 parent::__construct( 'constantcontact', 'Constant Contact', $action_ops );
121 }
122 }
123
124 class FrmDefGetResponseAction extends FrmFormAction {
125 public function __construct() {
126 $action_ops = FrmFormAction::default_action_opts( 'frm_getresponse_icon frm_show_upgrade' );
127 $action_ops['color'] = '#00baff';
128 parent::__construct( 'getresponse', 'GetResponse', $action_ops );
129 }
130 }
131
132 class FrmDefHubspotAction extends FrmFormAction {
133 public function __construct() {
134 $action_ops = FrmFormAction::default_action_opts( 'frm_hubspot_icon frm_show_upgrade' );
135 $action_ops['color'] = 'var(--orange)';
136
137 $action_ops['message'] = '';
138 if ( ! FrmAppHelper::pro_is_installed() ) {
139 $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/>';
140 }
141 $link = FrmAppHelper::admin_upgrade_link( 'add-action', 'knowledgebase/hubspot-forms/' );
142 $action_ops['message'] .= '<a href="' . esc_url( $link ) . '" target="_blank" rel="noopener" class="button button-secondary frm-button-secondary">Get Free HubSpot Account</a>';
143 parent::__construct( 'hubspot', 'Hubspot', $action_ops );
144 }
145 }
146
147 class FrmDefHighriseAction extends FrmFormAction {
148 public function __construct() {
149 $action_ops = FrmFormAction::default_action_opts( 'frm_building_icon frm_show_upgrade' );
150 $action_ops['color'] = 'var(--purple)';
151 parent::__construct( 'highrise', 'Highrise', $action_ops );
152 }
153 }
154
155 class FrmDefMailpoetAction extends FrmFormAction {
156 public function __construct() {
157 $action_ops = FrmFormAction::default_action_opts( 'frm_mailpoet_icon frm_show_upgrade' );
158 $action_ops['color'] = 'var(--orange)';
159 parent::__construct( 'mailpoet', 'MailPoet', $action_ops );
160 }
161 }
162
163 class FrmDefApiAction extends FrmFormAction {
164 public function __construct() {
165 $action_ops = FrmFormAction::default_action_opts( 'frm_feed_icon frm_show_upgrade' );
166 $action_ops['color'] = 'var(--purple)';
167 parent::__construct( 'api', __( 'Send API data', 'formidable' ), $action_ops );
168 }
169 }
170
171 // add google sheets
172 class FrmDefGoogleSpreadsheetAction extends FrmFormAction {
173 public function __construct() {
174 $action_ops = FrmFormAction::default_action_opts( 'frm_googlesheets_icon frm_show_upgrade' );
175 $action_ops['color'] = 'var(--green)';
176 parent::__construct( 'googlespreadsheet', __( 'Google Sheets', 'formidable' ), $action_ops );
177 }
178 }
179