| @@ -95,19 +95,8 @@ | ||
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 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 | 99 | * Add twilio action. |
| 111 | 100 | */ |
| 112 | 101 | class FrmDefTwilioAction extends FrmFormAction { |
| 113 | 102 | public function __construct() { |
| @@ -153,13 +142,11 @@ | ||
| 153 | 142 | $action_ops = FrmFormAction::default_action_opts( 'frm_hubspot_icon frm_show_upgrade' ); |
| 154 | 143 | $action_ops['color'] = 'var(--orange)'; |
| 155 | 144 | |
| 156 | 145 | $action_ops['message'] = ''; |
| 157 | - | |
| 158 | 146 | if ( ! FrmAppHelper::pro_is_installed() ) { |
| 159 | 147 | $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 | 148 | } |
| 161 | - | |
| 162 | 149 | $link = FrmAppHelper::admin_upgrade_link( 'add-action', 'knowledgebase/hubspot-forms/' ); |
| 163 | 150 | $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 | 151 | parent::__construct( 'hubspot', 'Hubspot', $action_ops ); |
| 165 | 152 | } |