RestApi
1 year ago
abstracts
1 year ago
admin
1 year ago
blocks
1 year ago
elementor
2 years ago
export
1 year ago
fields
1 year ago
interfaces
8 years ago
libraries
3 years ago
log-handlers
4 years ago
shortcodes
1 year ago
stats
3 years ago
templates
5 years ago
class-everest-forms.php
1 year ago
class-evf-ajax.php
1 year ago
class-evf-autoloader.php
8 years ago
class-evf-background-process-import-entries.php
2 years ago
class-evf-background-updater.php
8 years ago
class-evf-cache-helper.php
6 years 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-emails.php
1 year ago
class-evf-fields.php
2 years ago
class-evf-form-handler.php
2 years ago
class-evf-form-task.php
1 year ago
class-evf-forms-features.php
2 years ago
class-evf-frontend-scripts.php
1 year ago
class-evf-install.php
2 years ago
class-evf-integrations.php
2 years ago
class-evf-log-levels.php
8 years ago
class-evf-logger.php
5 years ago
class-evf-post-types.php
5 years ago
class-evf-privacy.php
6 years ago
class-evf-report-cron.php
2 years ago
class-evf-reporting.php
2 years ago
class-evf-session-handler.php
7 years ago
class-evf-shortcodes.php
4 years ago
class-evf-smart-tags.php
1 year ago
class-evf-template-loader.php
2 years ago
class-evf-validation.php
6 years ago
evf-conditional-functions.php
6 years ago
evf-core-functions.php
1 year ago
evf-deprecated-functions.php
6 years ago
evf-entry-functions.php
2 years 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
8 years ago
evf-update-functions.php
5 years ago
class-evf-integrations.php
102 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 | |
| 30 | do_action( 'everest_forms_integrations_init' ); |
| 31 | |
| 32 | $load_integrations = apply_filters( 'everest_forms_integrations', array() ); |
| 33 | |
| 34 | // Load integration classes. |
| 35 | foreach ( $load_integrations as $integration ) { |
| 36 | |
| 37 | $load_integration = new $integration(); |
| 38 | |
| 39 | $this->integrations[ $load_integration->id ] = $load_integration; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Return loaded integrations. |
| 45 | * |
| 46 | * @return array |
| 47 | */ |
| 48 | public function get_integrations() { |
| 49 | if ( ! defined( 'EFP_PLUGIN_FILE' ) ) { |
| 50 | $this->integrations = array( |
| 51 | 'dropbox' => (object) array( |
| 52 | 'id' => 'dropbox', |
| 53 | 'method_title' => 'Dropbox', |
| 54 | 'icon' => plugins_url( 'assets/images/integration-image/dropbox.png', EVF_PLUGIN_FILE ), |
| 55 | 'method_description' => 'Dropbox Integration with Everest Forms', |
| 56 | 'account_status' => 'upgrade-modal', |
| 57 | 'upgrade' => 'upgrade', |
| 58 | 'vedio_id' => '5Vt82fN0swo', |
| 59 | ), |
| 60 | 'google_drive' => (object) array( |
| 61 | 'id' => 'google_drive', |
| 62 | 'method_title' => 'Google Drive', |
| 63 | 'icon' => plugins_url( 'assets/images/integration-image/google-drive.png', EVF_PLUGIN_FILE ), |
| 64 | 'method_description' => 'Google Drive Integration with Everest Forms', |
| 65 | 'account_status' => 'upgrade-modal', |
| 66 | 'upgrade' => 'upgrade', |
| 67 | 'vedio_id' => '0g-dfhMy1Yo', |
| 68 | ), |
| 69 | 'mailchimp' => (object) array( |
| 70 | 'id' => 'mailchimp', |
| 71 | 'method_title' => 'MailChimp', |
| 72 | 'icon' => plugins_url( 'assets/images/integration-image/mailchimp.png', EVF_PLUGIN_FILE ), |
| 73 | 'method_description' => 'MailChimp Integration with Everest Forms', |
| 74 | 'account_status' => 'upgrade-modal', |
| 75 | 'upgrade' => 'upgrade', |
| 76 | 'vedio_id' => 'FhFsHdAIXwE', |
| 77 | ), |
| 78 | 'google_sheets' => (object) array( |
| 79 | 'id' => 'google_sheets', |
| 80 | 'method_title' => 'Google Sheets', |
| 81 | 'icon' => plugins_url( 'assets/images/integration-image/google-sheets.png', EVF_PLUGIN_FILE ), |
| 82 | 'method_description' => 'Google Sheets Integration with Everest Forms', |
| 83 | 'account_status' => 'upgrade-modal', |
| 84 | 'upgrade' => 'upgrade', |
| 85 | 'vedio_id' => 'tvS6Y_rNBfs', |
| 86 | ), |
| 87 | 'convertkit' => (object) array( |
| 88 | 'id' => 'convertkit', |
| 89 | 'method_title' => 'ConvertKit', |
| 90 | 'icon' => plugins_url( 'assets/images/integration-image/convertkit.png', EVF_PLUGIN_FILE ), |
| 91 | 'method_description' => 'Marketing automation can be hard to wrap your brain around, but with ConvertKit, it’s easy.', |
| 92 | 'account_status' => 'upgrade-modal', |
| 93 | 'upgrade' => 'upgrade', |
| 94 | 'vedio_id' => 'GvqPVCK7Ws8', |
| 95 | ), |
| 96 | ); |
| 97 | } |
| 98 | |
| 99 | return $this->integrations; |
| 100 | } |
| 101 | } |
| 102 |