$marr) { $tp = get_post($marr); if($tp === null) { unset($myop[$mind]); $changedone = true; } } if($changedone == true) { aimogen_update_option('aimogen_chat_page_id', $myop); } if (!isset($value['remote_chat']) || trim($value['remote_chat']) != 'on') { foreach($myop as $mind => $marr) { wp_delete_post($marr, true); delete_option('aimogen_chat_page_id'); } } } } else { if(!isset($value['remote_chat'])) { $myop = get_option('aimogen_chat_page_id', false); if($myop !== false) { if(is_numeric($myop)) { $myop = array($myop); } foreach($myop as $mind => $marr) { wp_delete_post($marr, true); delete_option('aimogen_chat_page_id'); } } } } } add_action('aimogen_update_option_aimogen_Chatbot_Settings', 'aimogen_chat_settings_updated', 10, 3); function aimogen_chatbot_panel() { $aimogen_Main_Settings = get_option('aimogen_Main_Settings', false); if (!isset($aimogen_Main_Settings['app_id']) || trim($aimogen_Main_Settings['app_id']) == '') { ?>
Privacy Policy. Your data will only be used to assist with your inquiry."; } if (isset($aimogen_Chatbot_Settings['gdpr_checkbox'])) { $gdpr_checkbox = $aimogen_Chatbot_Settings['gdpr_checkbox']; } else { $gdpr_checkbox = "I agree to the terms."; } if (isset($aimogen_Chatbot_Settings['gdpr_button'])) { $gdpr_button = $aimogen_Chatbot_Settings['gdpr_button']; } else { $gdpr_button = "Start chatting"; } if (isset($aimogen_Chatbot_Settings['god_preview'])) { $god_preview = $aimogen_Chatbot_Settings['god_preview']; } else { $god_preview = ''; } if (isset($aimogen_Chatbot_Settings['enable_front_end'])) { $enable_front_end = $aimogen_Chatbot_Settings['enable_front_end']; } else { $enable_front_end = ''; } if (isset($aimogen_Chatbot_Settings['window_location'])) { $window_location = $aimogen_Chatbot_Settings['window_location']; } else { $window_location = ''; } if (isset($aimogen_Chatbot_Settings['window_width'])) { $window_width = $aimogen_Chatbot_Settings['window_width']; } else { $window_width = ''; } if (isset($aimogen_Chatbot_Settings['chatbot_icon_html'])) { $chatbot_icon_html = $aimogen_Chatbot_Settings['chatbot_icon_html']; } else { $chatbot_icon_html = ''; } if($assistant_id != '') { $assistant_found = false; if(is_array($all_assistants)) { foreach($all_assistants as $myassistant) { if ($assistant_id == $myassistant->ID) { $assistant_found = true; } } } if($assistant_found === false) { $assistant_id = ''; } } ?>
|
|
|
|
: |
|
|
|
|
' . esc_html__("Set a list of URL where to not show the chatbot. You can enter multiple URLs, each on a new line.", 'aimogen') . '
|
|
|
' . esc_html__("Set a list of URL only where to show the chatbot. You can enter multiple URLs, each on a new line. If you enter a list of URLs, the chatbot will be shown only on these URls and not on any other URLs from your site.", 'aimogen') . '
|
|
|
' . esc_html__("Set the hour period of each day, when you want to show the chatbot embedded on your site. Your current server time is: ", 'aimogen') . gmdate("h:i A") . '
|
-
|
|
' . esc_html__("Set the days of the week, when you want to always show the chatbot (regardless of the above hour limitations).", 'aimogen') . '
|
|
|
' . esc_html__("Set the days of the week, when you want to never show the chatbot.", 'aimogen') . '
|
|
|
' . esc_html__("Select the WordPress content where to not show the chatbot.", 'aimogen') . '
|
|
|
' . esc_html__("Select the WordPress content only where to show the chatbot.", 'aimogen') . '
|
|
|
' . esc_html__("Select the languages for which the chatbot will not be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the languages for only which the chatbot will be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the user roles for which the chatbot will not be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the user roles for only which the chatbot will be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the devices for which the chatbot will not be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the devices for only which the chatbot will be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the Operating Systems for which the chatbot will not be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the Operating Systems for only which the chatbot will be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the Browsers for which the chatbot will not be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the Browsers for only which the chatbot will be shown.", 'aimogen') . '
|
|
|
' . esc_html__("Select the IP Addresses for which the chatbot will not be shown. List of IP addresses or IP ranges. Examples: 46.33.233.31, 46.0-46.1", 'aimogen') . '
|
|
|
' . esc_html__("Select the IP Addresses for only which the chatbot will be shown. List of IP addresses or IP ranges. Examples: 46.33.233.31, 46.0-46.1", 'aimogen') . '
|
|