Helpers
11 months ago
Integrations
1 week ago
RestApi
2 weeks ago
abilities
2 weeks ago
abstracts
2 weeks ago
admin
2 weeks ago
blocks
1 year ago
elementor
2 years ago
export
2 months ago
fields
2 weeks ago
interfaces
8 years ago
libraries
2 years ago
log-handlers
1 year ago
shortcodes
2 weeks ago
stats
5 months ago
templates
3 months ago
traits
2 weeks ago
class-everest-forms.php
1 week ago
class-evf-addon-upsell.php
2 weeks ago
class-evf-ajax.php
2 weeks ago
class-evf-autoloader.php
7 years ago
class-evf-background-process-import-entries.php
1 year ago
class-evf-background-updater.php
7 years ago
class-evf-cache-helper.php
2 months ago
class-evf-cron.php
2 years ago
class-evf-deprecated-action-hooks.php
6 years ago
class-evf-deprecated-filter-hooks.php
5 years ago
class-evf-email-entries-report.php
3 months ago
class-evf-emails.php
2 weeks ago
class-evf-fields.php
2 weeks ago
class-evf-form-handler.php
2 weeks ago
class-evf-form-task.php
2 weeks ago
class-evf-forms-features.php
2 weeks ago
class-evf-frontend-scripts.php
2 weeks ago
class-evf-install.php
2 months ago
class-evf-integrations.php
3 months ago
class-evf-log-levels.php
8 years ago
class-evf-logger.php
5 years ago
class-evf-post-types.php
1 year ago
class-evf-privacy.php
6 years ago
class-evf-report-cron.php
2 months ago
class-evf-reporting.php
2 months ago
class-evf-session-handler.php
7 years ago
class-evf-shortcodes.php
1 year ago
class-evf-smart-tags.php
9 months ago
class-evf-template-loader.php
1 year ago
class-evf-validation.php
6 years ago
evf-conditional-functions.php
6 years ago
evf-core-functions.php
2 weeks ago
evf-deprecated-functions.php
6 years ago
evf-entry-functions.php
4 months ago
evf-formatting-functions.php
4 years ago
evf-notice-functions.php
4 years ago
evf-template-functions.php
4 years ago
evf-template-hooks.php
7 years ago
evf-update-functions.php
5 years ago
class-evf-integrations.php
153 lines
| 1 | <?php |
| 2 | /** |
| 3 | * EverestForms Integrations class |
| 4 | * |
| 5 | * Loads Integrations into EverestForms. |
| 6 | * |
| 7 | * @package EverestForms/Classes/Integrations |
| 8 | * @version 1.2.1 |
| 9 | */ |
| 10 | |
| 11 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | /** |
| 14 | * Integrations class. |
| 15 | */ |
| 16 | class EVF_Integrations { |
| 17 | |
| 18 | /** |
| 19 | * Array of integrations. |
| 20 | * |
| 21 | * @var array |
| 22 | */ |
| 23 | public $integrations = array(); |
| 24 | |
| 25 | /** |
| 26 | * Initialize integrations. |
| 27 | */ |
| 28 | public function __construct() { |
| 29 | do_action( 'everest_forms_integrations_init' ); |
| 30 | |
| 31 | $load_integrations = apply_filters( 'everest_forms_integrations', array() ); |
| 32 | |
| 33 | foreach ( $load_integrations as $integration ) { |
| 34 | $load_integration = new $integration(); |
| 35 | $this->integrations[ $load_integration->id ] = $load_integration; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Return loaded integrations. |
| 41 | * |
| 42 | * @return array |
| 43 | */ |
| 44 | public function get_integrations() { |
| 45 | $default_integrations = array(); |
| 46 | |
| 47 | if ( ! defined( 'EFP_PLUGIN_FILE' ) ) { |
| 48 | $default_integrations = array( |
| 49 | |
| 50 | 'dropbox' => (object) array( |
| 51 | 'id' => 'dropbox', |
| 52 | 'category' => esc_html__( 'Cloud Storage', 'everest-forms' ), |
| 53 | 'method_title' => 'Dropbox', |
| 54 | 'icon' => plugins_url( 'assets/images/integration-image/dropbox.png', EVF_PLUGIN_FILE ), |
| 55 | 'method_description' => esc_html__( 'Automatically upload form attachments and entries straight to your Dropbox.', 'everest-forms' ), |
| 56 | 'account_status' => 'upgrade-modal', |
| 57 | 'upgrade' => 'upgrade', |
| 58 | 'vedio_id' => '5Vt82fN0swo', |
| 59 | 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', |
| 60 | 'docs_url' => 'https://docs.everestforms.net/docs/how-to-upload-files-to-google-drive-or-dropbox/#4-toc-title', |
| 61 | 'features' => array( |
| 62 | esc_html__( 'Store uploaded form files directly in Dropbox', 'everest-forms' ), |
| 63 | esc_html__( 'Keep important files backed up in your usual storage tool', 'everest-forms' ), |
| 64 | esc_html__( 'Avoid filling up your website server with uploads', 'everest-forms' ), |
| 65 | esc_html__( 'Keep your file workflow simple and familiar', 'everest-forms' ), |
| 66 | ), |
| 67 | ), |
| 68 | |
| 69 | 'google_drive' => (object) array( |
| 70 | 'id' => 'google_drive', |
| 71 | 'category' => esc_html__( 'Cloud Storage', 'everest-forms' ), |
| 72 | 'method_title' => 'Google Drive', |
| 73 | 'icon' => plugins_url( 'assets/images/integration-image/google-drive.png', EVF_PLUGIN_FILE ), |
| 74 | 'method_description' => esc_html__( 'Save form entries and uploaded files directly to Google Drive, organised your way.', 'everest-forms' ), |
| 75 | 'account_status' => 'upgrade-modal', |
| 76 | 'upgrade' => 'upgrade', |
| 77 | 'vedio_id' => '0g-dfhMy1Yo', |
| 78 | 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', |
| 79 | 'docs_url' => 'https://docs.everestforms.net/docs/how-to-upload-files-to-google-drive-or-dropbox/#0-toc-title', |
| 80 | 'features' => array( |
| 81 | esc_html__( 'Save uploaded files to Google Drive automatically', 'everest-forms' ), |
| 82 | esc_html__( 'Reduce storage use on your website', 'everest-forms' ), |
| 83 | esc_html__( 'Make files easier to access for your team', 'everest-forms' ), |
| 84 | esc_html__( 'Stay organized without changing your workflow', 'everest-forms' ), |
| 85 | ), |
| 86 | ), |
| 87 | |
| 88 | 'mailchimp' => (object) array( |
| 89 | 'id' => 'mailchimp', |
| 90 | 'category' => esc_html__( 'Email Marketing', 'everest-forms' ), |
| 91 | 'method_title' => 'MailChimp', |
| 92 | 'icon' => plugins_url( 'assets/images/integration-image/mailchimp.png', EVF_PLUGIN_FILE ), |
| 93 | 'method_description' => esc_html__( 'Grow your Mailchimp audience automatically from every form submission.', 'everest-forms' ), |
| 94 | 'account_status' => 'upgrade-modal', |
| 95 | 'upgrade' => 'upgrade', |
| 96 | 'vedio_id' => 'FhFsHdAIXwE', |
| 97 | 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', |
| 98 | 'docs_url' => 'https://docs.everestforms.net/docs/mailchimp/', |
| 99 | 'features' => array( |
| 100 | esc_html__( 'Add form subscribers to your Mailchimp list', 'everest-forms' ), |
| 101 | esc_html__( 'Map form fields to Mailchimp list fields', 'everest-forms' ), |
| 102 | esc_html__( 'Grow your email list without extra manual work', 'everest-forms' ), |
| 103 | esc_html__( 'Keep your leads and subscribers organized ', 'everest-forms' ), |
| 104 | ), |
| 105 | ), |
| 106 | |
| 107 | 'google_sheets' => (object) array( |
| 108 | 'id' => 'google_sheets', |
| 109 | 'category' => esc_html__( 'Google Sheets', 'everest-forms' ), |
| 110 | 'method_title' => 'Google Sheets', |
| 111 | 'icon' => plugins_url( 'assets/images/integration-image/google-sheets.png', EVF_PLUGIN_FILE ), |
| 112 | 'method_description' => esc_html__( 'Stream form submissions into a Google Sheet in real time — no copy-paste needed.', 'everest-forms' ), |
| 113 | 'account_status' => 'upgrade-modal', |
| 114 | 'upgrade' => 'upgrade', |
| 115 | 'vedio_id' => 'tvS6Y_rNBfs', |
| 116 | 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', |
| 117 | 'docs_url' => 'https://docs.everestforms.net/docs/google-sheets/', |
| 118 | 'features' => array( |
| 119 | esc_html__( 'Save new submissions to Google Sheets', 'everest-forms' ), |
| 120 | esc_html__( 'View and manage form data in a familiar spreadsheet', 'everest-forms' ), |
| 121 | esc_html__( 'Share entries easily with your team', 'everest-forms' ), |
| 122 | esc_html__( 'Keep records updated in real time ', 'everest-forms' ), |
| 123 | ), |
| 124 | ), |
| 125 | |
| 126 | 'convertkit' => (object) array( |
| 127 | 'id' => 'convertkit', |
| 128 | 'category' => esc_html__( 'Email Marketing', 'everest-forms' ), |
| 129 | 'method_title' => 'ConvertKit', |
| 130 | 'icon' => plugins_url( 'assets/images/integration-image/convertkit.png', EVF_PLUGIN_FILE ), |
| 131 | 'method_description' => esc_html__( 'Add subscribers to ConvertKit sequences and tags straight from your forms.', 'everest-forms' ), |
| 132 | 'account_status' => 'upgrade-modal', |
| 133 | 'upgrade' => 'upgrade', |
| 134 | 'vedio_id' => 'GvqPVCK7Ws8', |
| 135 | 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', |
| 136 | 'docs_url' => 'https://docs.everestforms.net/docs/convertkit/', |
| 137 | 'features' => array( |
| 138 | esc_html__( 'Add new subscribers automatically from form submissions', 'everest-forms' ), |
| 139 | esc_html__( 'Turn your forms into lead collection tools', 'everest-forms' ), |
| 140 | esc_html__( 'Save time by reducing manual export and import work', 'everest-forms' ), |
| 141 | esc_html__( 'Keep subscriber list growing in the background', 'everest-forms' ), |
| 142 | ), |
| 143 | ), |
| 144 | |
| 145 | ); |
| 146 | } |
| 147 | |
| 148 | $this->integrations = array_merge( $this->integrations, $default_integrations ); |
| 149 | |
| 150 | return $this->integrations; |
| 151 | } |
| 152 | } |
| 153 |