*/ class Survey_Maker_Integrations { /** * The ID of this plugin. * * @since 1.0.0 * @access private * @var string $plugin_name The ID of this plugin. */ private $plugin_name; /** * The version of this plugin. * * @since 1.0.0 * @access private * @var string $version The current version of this plugin. */ private $version; private $capability; /** * The settings object of this plugin. * * @since 1.0.0 * @access private * @var object $settings_obj The settings object of this plugin. */ private $settings_obj; /** * Initialize the class and set its properties. * * @since 1.0.0 * @param string $plugin_name The name of this plugin. * @param string $version The version of this plugin. */ public function __construct($plugin_name, $version){ $this->plugin_name = $plugin_name; $this->version = $version; $this->settings_obj = new Survey_Maker_Settings_Actions($this->plugin_name); } // ===== INTEGRATIONS HOOKS ===== // Integrations survey page action hook public function ays_survey_page_integrations_content( $args ){ $integrations_contents = apply_filters( 'ays_sm_survey_page_integrations_contents', array(), $args ); $integrations = array(); foreach ($integrations_contents as $key => $integrations_content) { $content = '
'; if(isset($integrations_content['title'])){ $content .= ''; if(isset($integrations_content['icon'])){ $content .= ''; } $content .= '
'. $integrations_content['title'] .'
'; } $content .= $integrations_content['content']; $content .= '
'; $integrations[] = $content; } $integrations = implode('
', $integrations); echo html_entity_decode(esc_html( $integrations )); } // Integrations settings page action hook public function ays_settings_page_integrations_content( $args ){ $integrations_contents = apply_filters( 'ays_sm_settings_page_integrations_contents', array(), $args ); $integrations = array(); foreach ($integrations_contents as $key => $integrations_content) { $content = '
'; if(isset($integrations_content['title'])){ $content .= ''; if(isset($integrations_content['icon'])){ $content .= ''; } $content .= '
'. $integrations_content['title'] .'
'; } if(isset($integrations_content['content'])){ $content .= $integrations_content['content']; } $content .= '
'; $integrations[] = $content; } $integrations = implode('
', $integrations); echo html_entity_decode(esc_html( $integrations )); } //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== MailChimp integration start ===== // MailChimp integration / survey page // MailChimp integration in survey page content public function ays_survey_page_mailchimp_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/mailchimp_logo.png'; $title = __('MailChimp Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= '

'; $content .= ''; $content .= '
'; $integrations['mailchimp'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // MailChimp integration / settings page // MailChimp integration in General settings page content public function ays_settings_page_mailchimp_content( $integrations, $args ){ $actions = $this->settings_obj; $mailchimp_res = ($actions->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $actions->ays_get_setting('mailchimp'); $mailchimp = json_decode($mailchimp_res, true); $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '' ; $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '' ; $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/mailchimp_logo.png'; $title = __( 'MailChimp', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= sprintf( __( "You can get your API key from your ", "survey-maker" ) . " %s.", "https://us20.admin.mailchimp.com/account/api/", "Account Extras menu" ); $content .= '
'; $integrations['mailchimp'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== MailChimp integration end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Campaign Monitor start ===== // Campaign Monitor integration / survey page // Campaign Monitor integration in survey page content public function ays_survey_page_camp_monitor_content($integrations, $args){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/campaignmonitor_logo.png'; $title = __('Campaign Monitor Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= ''; $content .= '
'; $integrations['monitor'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Campaign Monitor integration / settings page // Campaign Monitor integration in General settings page public function ays_settings_page_campaign_monitor_content( $integrations, $args ){ $actions = $this->settings_obj; $monitor_res = ($actions->ays_get_setting('monitor') === false) ? json_encode(array()) : $actions->ays_get_setting('monitor'); $monitor = json_decode($monitor_res, true); $monitor_client = isset($monitor['client']) ? $monitor['client'] : ''; $monitor_api_key = isset($monitor['apiKey']) ? $monitor['apiKey'] : ''; $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/campaignmonitor_logo.png'; $title = __( 'Campaign Monitor', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= __( "You can get your API key and Client ID from your Account Settings page.", "survey-maker"); $content .= '
'; $integrations['monitor'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Campaign Monitor end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Zapier start ===== // Zapier integration / survey page // Zapier integration in survey page content public function ays_survey_page_zapier_content($integrations, $args){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/zapier_logo.png'; $title = __('Zapier Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $integrations['zapier'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Zapier integration / settings page // Zapier integration in General settings page content public function ays_settings_page_zapier_content( $integrations, $args ){ $actions = $this->settings_obj; $zapier_res = ($actions->ays_get_setting('zapier') === false) ? json_encode(array()) : $actions->ays_get_setting('zapier'); $zapier = json_decode($zapier_res, true); $zapier_hook = isset($zapier['hook']) ? $zapier['hook'] : ''; $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/zapier_logo.png'; $title = __( 'Zapier', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= sprintf( __( "If you don't have any ZAP created, go", "survey-maker" ) . " %s.", "https://zapier.com/app/editor/", "here..." ); $content .= '
'.__("We will send you all data from survey information form with the “AysSurvey” key by POST method.", "survey-maker").'
'; $integrations['zapier'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Zapier end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Active Campaign start ===== // Active Campaign integration / survey page // Active Campaign integration in survey page content public function ays_survey_page_active_camp_content($integrations, $args){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/activecampaign_logo.png'; $title = __('ActiveCampaign Settings', "survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= '
'; $content .= '

'; $content .= '
'; $content .= '
'; $content .= '
'; $integrations['active_camp'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Active Campaign integration / settings page // Active Campaign integration in Gengeral settings page content public function ays_settings_page_active_camp_content( $integrations, $args ){ $actions = $this->settings_obj; $active_camp_res = ($actions->ays_get_setting('active_camp') === false) ? json_encode(array()) : $actions->ays_get_setting('active_camp'); $active_camp = json_decode($active_camp_res, true); $active_camp_url = isset($active_camp['url']) ? $active_camp['url'] : ''; $active_camp_api_key = isset($active_camp['apiKey']) ? $active_camp['apiKey'] : ''; $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/activecampaign_logo.png'; $title = __( 'ActiveCampaign', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= __( "Your API URL and Key can be found in your account on the My Settings page under the “Developer” tab.", "survey-maker"); $content .= '
'; $integrations['active_camp'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Active Campaign end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Slack start ===== // Slack integration / survey page // Slack integration in survey page content public function ays_survey_page_slack_content($integrations, $args){ $content = ''; $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/slack_logo.png'; $title = __('Slack Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= ''; $content .= '
'; $content .= '
'; $integrations['slack'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Slack integration / settings page // Slack integration in General settings page content public function ays_settings_page_slack_content( $integrations, $args ){ $actions = $this->settings_obj; $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/slack_logo.png'; $title = __( 'Slack', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '

'; $content .= '
'; $content .= ''; $content .= '

'; $content .= '

'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'.__( "You can get your App Client ID and Client Secret from your App's Basic Information page.", "survey-maker").'
'; $integrations['slack'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Slack end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Google start ===== // Google integration / survey page // Google integration in survey page content public function ays_survey_page_google_sheet_content($integrations, $args){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/sheets_logo.png'; $title = __('Google Settings',"survey-maker"); $content = ""; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $integrations['google'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // Google integration / settings page // Google integration in General settings page content public function ays_settings_page_google_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/sheets_logo.png'; $title = __( 'Google', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '


'; $integrations['google'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Google end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== GamiPress start ===== // GamiPress integration / survey page | GamiPress Nooo :D | Aro | Start // GamiPress integration / settings page // GamiPress integration in Gengeral settings page content public function ays_settings_page_gamipress_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/gamipress_logo.png'; $title = __( 'GamiPress', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
' . __( "Install the GamiPress plugin to use the integration. Configure the settings from the Automatic Points Awards section from the GamiPres plugin.", "survey-maker" ) . '
' . __( "After enabling the integration, the Survey Maker will automatically be added to the event list.", "survey-maker" ) . '
'; $content .= '
'; $content .= '
'; $integrations['gamipress'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // GamiPress | Aro | End // ===== GamiPress end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== SendGrid start ===== // SendGrid integration / settings page // SendGrid integration in Gengeral settings page content public function ays_settings_page_sendgrid_content( $integrations, $args ){ $actions = $this->settings_obj; $sendgrid_res = ($actions->ays_get_setting('sendgrid') === false) ? json_encode(array()) : $actions->ays_get_setting('sendgrid'); $sendgrid = json_decode($sendgrid_res, true); $sendgrid_api_key = isset($sendgrid['apiKey']) ? $sendgrid['apiKey'] : ''; $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/sendgrid_logo.png'; $title = __( 'SendGrid', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= sprintf( __( "You can get your API key from", "survey-maker" ) . " %s.", "https://app.sendgrid.com/settings/api_keys", "sendgrid.com" ); $content .= '
'; $content .= '
'; $integrations['sendgrid'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== SendGrid end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Madmimi start ===== // Madmimi integration / settings page // Mad mimi integration in General settings page content public function ays_settings_page_mad_mimi_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/mad-mimi-logo.png'; $title = __( 'Mad Mimi', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '

'; $content .= '
'; $content .= sprintf( __( "You can get your API key from your ", "survey-maker" ) . " %s.", "https://madmimi.com/user/edit?account_info_tabs=account_info_personal", "Account" ); $content .= '
'; $content .= '
'; $content .= '
'; $integrations['mad_mimi'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Mad mimi integration in survey page content public function ays_survey_page_mad_mimi_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/mad-mimi-logo.png'; $title = __('Mad Mimi Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '


'; $integrations['mad_mimi'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== Madmimi end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== GetResponse start ===== // GetResponse integration / settings page // GetResponse integration in General settings page content public function ays_settings_page_get_response_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/get_response.png'; $title = __( 'GetResponse', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= sprintf( __( "You can get your API key from your ", "survey-maker" ) . " %s.", "https://app.getresponse.com/api", "account" ); $content .= '
'; $content .= '
'; $content .= __( "For security reasons, unused API keys expire after 90 days. When that happens, you'll need to generate a new key.", "survey-maker" ); $content .= '
'; $content .= '
'; $content .= '
'; $integrations['get_response'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // GetResponse integration in survey page content public function ays_survey_page_get_response_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/get_response.png'; $title = __('GetResponse Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '

'; $integrations['get_response'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== GetResponse end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== ConvertKit start ===== // ConvertKit integration / settings page // ConvertKit Settings integration in General settings page content public function ays_settings_page_convert_kit_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/convertkit_logo.png'; $title = __( 'ConvertKit', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= sprintf( __( "You can get your API key from your ", "survey-maker" ) . " %s.", "https://app.convertkit.com/account/edit", "Account" ); $content .= '
'; $content .= '
'; $content .= '
'; $integrations['convertKit'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ConvertKit Settings integration in survey page content public function ays_survey_page_convert_kit_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/convertkit_logo.png'; $title = __('ConvertKit Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '

'; $integrations['convertKit'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== ConvertKit end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Sendinblue Settings start ===== // Sendinblue Settings integration // Sendinblue Settings integration in survey page content public function ays_survey_page_sendinblue_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/brevo-logo.png'; $title = __('Brevo Settings',"survey-maker"); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '

'; $integrations['sendinblue'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // Sendinblue Settings integration / settings page // Sendinblue Settings integration in General settings page content public function ays_settings_page_sendinblue_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/brevo-logo.png'; $title = __( 'Brevo', "survey-maker" ); $content = ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= sprintf( __( "You can get your API key from your ", "survey-maker" ) . " %s.", "https://account.sendinblue.com/advanced/api", "Account" ); $content .= '
'; $content .= '
'; $integrations['sendinblue'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Sendinblue Settings end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Paypal Settings start ===== // PayPal Settings integration // PayPal Settings integration in survey page content public function ays_survey_page_PayPal_content( $integrations, $args ){ $editor_id = 'ays_survey_paypal_message'; $settings = array( 'editor_height' => 150, 'textarea_name' => 'ays_survey_paypal_message', 'editor_class' => 'ays-textarea', 'media_elements' => false, ); $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/paypal_logo.png'; $title = __('PayPal Settings',"survey-maker"); ob_start(); $content = ''; wp_editor("", $editor_id, $settings); $content .= '



'; $editor_contents = ob_get_clean(); $content .= $editor_contents; $content .= '
'; $integrations['PayPal'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // PayPal Settings integration in General settings page content public function ays_settings_page_PayPal_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/paypal_logo.png'; $title = __( 'PayPal', "survey-maker" ); $blockquote_content = sprintf( __( "You can get your Client ID from %s", "survey-maker" ), " Developer Paypal."); $content = '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= '

'.$blockquote_content.'
'; $integrations['PayPal'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Paypal Settings end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Stripe Settings start ===== // Stripe Settings integration // Stripe Settings integration in survey page content public function ays_survey_page_Stripe_content( $integrations, $args ){ // WP editor settings $editor_id = 'ays_survey_stripe_message'; $settings = array( 'editor_height' => 150, 'textarea_name' => 'ays_survey_stripe_message', 'editor_class' => 'ays-textarea', 'media_elements' => false, ); $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/stripe_logo.png'; $title = __('Stripe Settings',"survey-maker"); ob_start(); $content = ''; wp_editor("", $editor_id, $settings); $content .= '

'. __( "Specify the amount of the payment.", "survey-maker" ) .' '. __( "This field doesn't accept an empty value or a value less than 1.", "survey-maker" ).'


'; $editor_contents = ob_get_clean(); $content .= $editor_contents; $content .= '
'; $integrations['stripe'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Stripe Settings integration / settings page // Stripe Settings integration in General settings page content public function ays_settings_page_Stripe_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/stripe_logo.png'; $title = __( 'Stripe', "survey-maker" ); $blockquote_content = __( "You can get your Publishable and Secret keys on API Keys page on your Stripe dashboard.", "survey-maker" ); $content = '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= '


'.$blockquote_content.'
'; $integrations['stripe'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title ); return $integrations; } // ===== Stripe Settings end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== reCAPTCHA start ===== // reCAPTCHA integration // reCAPTCHA integration in survey page content public function ays_survey_page_recaptcha_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/recaptcha_logo.png'; $title = __('reCAPTCHA Settings',"survey-maker"); $content = ''; $disabled = "disabled"; $checked = ''; $content = '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $integrations['recaptcha'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // reCAPTCHA integration / settings page // reCAPTCHA integration in General settings page content public function ays_settings_page_recaptcha_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/recaptcha_logo.png'; $title = __( 'reCAPTCHA', "survey-maker" ); $content = '
'; $content .= '
'; $content .= ''; $content .= '



' . sprintf( __( "e.g. en, de - Language used by reCAPTCHA. To get the code for your language click %s here %s", "survey-maker" ), '', "" ) . '

'; $content .= '
'; $content .= sprintf( __( "You need to set up reCAPTCHA in your Google account to generate the required keys and get them by %s Google's reCAPTCHA admin console %s.", "survey-maker" ), "", ""); $content .= '
'; $content .= '
'; $integrations['recaptcha'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== reCAPTCHA end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Aweber start ===== // Aweber integration // Aweber integration in survey page content public function ays_survey_page_aweber_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/aweber-logo.png'; $title = __('Aweber Settings',"survey-maker"); $content = '
'; $content .= '
'; $content .= ''; $content .= '
'; // Content part reaplce here start $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .='
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; // Content part reaplce here end $content .= '
'; $content .= '
'; $integrations['aweber'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Aweber integration / settings page // Aweber integration in General settings page content public function ays_aweber_settings_page_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/aweber-logo.png'; $title = __( 'Aweber', "survey-maker" ); $content = '
'; $content .= '
'; $content .= ''; // Content part reaplce here start $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; $content .= ''; $content .= '
'; $content .= '
'; $content .= '
'; $content .= '
'; // Content part reaplce here end $content .= '
'; $content .= '
'; $integrations['aweber'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== Aweber end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== MailPoet start ===== // MailPoet integration // MailPoet integration in survey page content public function ays_survey_page_mailpoet_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/mail_poet.png'; $title = __('MailPoet Settings',"survey-maker"); $content = '
'; $content .= '
'; $content .= ''; $content .= '
'; // Content part reaplce here start $content .= '
'; $content .= '

'; $content .= ''; $content .= '
'; // Content part reaplce here end $content .= '
'; $content .= '
'; $integrations['mailpoet'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // MailPoet integration / settings page // MailPoet integration in General settings page content public function ays_settings_page_mailpoet_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/mail_poet.png'; $title = __( 'MailPoet', "survey-maker" ); $content = '
'; $content .= '
'; $content .= ''; // Content part reaplce here start $content .= '
'.__('To choose a list, please go to the Integration tab of the given survey.' , "survey-maker").'
'; // Content part reaplce here end $content .= '
'; $content .= '
'; $integrations['mailpoet'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== MailPoet end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== MyCred start ===== // MyCred integration / settings page // MyCred integration in General settings page content public function ays_mycred_settings_page_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/mycred_icon.png'; $title = __( 'MyCred', "survey-maker" ); $content = '
'; $content .= '
'; $content .= ''; // Content part reaplce here start $content .= '
'; $content .= __( "Setup your first point type and go to the Hook page. Choose Survey Maker from the Available Hooks list.", "survey-maker" ); $content .= '
'; $content .= __( " Configure the settings and save the hook.", "survey-maker" ); $content .= '
'; // Content part reaplce here end $content .= '
'; $content .= '
'; $integrations['mycred'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== MyCred end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// // ===== Klaviyo start ===== // Klaviyo integration // Klaviyo integration in survey page content public function ays_survey_page_klaviyo_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL .'/images/integrations/klaviyo-logo.png'; $title = __('Klaviyo Settings',"survey-maker"); $content = '
'; $content .= '
'; $content .= ''; $content .= '
'; // Content part reaplce here start $content .= '

'; $content .= '
'; // Content part reaplce here end $content .= '
'; $content .= '
'; $integrations['klaviyo'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // Klaviyo integration / settings page // Klaviyo integration in General settings page content public function ays_settings_page_klaviyo_content( $integrations, $args ){ $icon = SURVEY_MAKER_ADMIN_URL . '/images/integrations/klaviyo-logo.png'; $title = __( 'Klaviyo', "survey-maker" ); $content = '
'; $content .= '
'; $content .= ''; // Content part reaplce here start $content .= '
'; $content .= '
'; $content .= __( "You can get your API key from your Account.", "survey-maker" ); $content .= '
'; $content .= '
'; // Content part reaplce here end $content .= '
'; $content .= '
'; $integrations['klaviyo'] = array( 'content' => $content, 'icon' => $icon, 'title' => $title, ); return $integrations; } // ===== Klaviyo end ===== //////////////////////////////////////////////////////////////////////////////////////// //====================================================================================// //////////////////////////////////////////////////////////////////////////////////////// }