Changeset 433607
- Timestamp:
- 09/05/2011 03:43:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inteliwise-virtual-agent/tags/1.0.1/inteliwise.php
r412209 r433607 2 2 /** 3 3 * Plugin Name: InteliWISE Virtual Agent 4 * Plugin URI: http:// panel.inteliwise.com/5 * Description: Enhance Interactivity and Sell More from your WordPress website.4 * Plugin URI: http://inteliwise.com/wordpress 5 * Description: Improve lead conversion from your Contact form and give your Feedback a new look with the #1 Virtual Agent WordPress plugin. <a href="https://panel.inteliwise.com/index.php?view=plugin&task=wordpress">Signup for free 30-day trial</a> 6 6 * Author: InteliWISE 7 7 * Author URI: http://inteliwise.com/ 8 * Version: 1.0 8 * Version: 1.0.1 9 9 */ 10 10 require_once ('IW_SAAS_Client.class.php'); … … 65 65 throw new Exception($retCode); 66 66 } 67 var_dump($_SESSION);68 67 } 69 68 … … 110 109 } 111 110 112 function IW_SAAS_widget() { 113 111 function IW_disable_admin_avatar() 112 { 113 remove_action('shutdown', 'IW_embed'); 114 } 115 116 add_action('admin_init', 'IW_disable_admin_avatar'); 117 add_action('shutdown', 'IW_embed'); 118 119 function IW_embed() 120 { 114 121 try { 115 122 $api = new Client(get_option('IW_SAAS_DeveloperCode'), get_option('IW_SAAS_Login'), get_option('IW_SAAS_Password')); 116 123 echo $api->getCode(get_option('IW_SAAS_LayoutMode')); 117 124 } catch (Exception $e) { 118 echo 'Caught exception: ', $e->getMessage(), "\n"; 119 } 120 } 121 122 function IW_SAAS_widget_install() { 123 register_sidebar_widget(__('InteliWISE Virtual Agent Plugin'), 'IW_SAAS_widget'); 124 } 125 126 add_action("plugins_loaded", "IW_SAAS_widget_install"); 127 125 // echo 'Caught exception: ', $e->getMessage(), "\n"; 126 echo 'Your virtual agent is not configured properly. Please configure it in the "Settings" panel'; 127 } 128 } 128 129 function IW_SAAS_plugin_page() { 129 130 ?>
Note: See TracChangeset
for help on using the changeset viewer.