Plugin Directory

Changeset 433607


Ignore:
Timestamp:
09/05/2011 03:43:27 PM (14 years ago)
Author:
inteliwise
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inteliwise-virtual-agent/tags/1.0.1/inteliwise.php

    r412209 r433607  
    22/**
    33 * 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>
    66 * Author: InteliWISE
    77 * Author URI: http://inteliwise.com/
    8  * Version: 1.0
     8 * Version: 1.0.1
    99 */
    1010require_once ('IW_SAAS_Client.class.php');
     
    6565            throw new Exception($retCode);
    6666        }
    67         var_dump($_SESSION);
    6867    }
    6968
     
    110109}
    111110
    112 function IW_SAAS_widget() {
    113 
     111function IW_disable_admin_avatar()
     112{
     113    remove_action('shutdown', 'IW_embed');
     114}
     115
     116add_action('admin_init', 'IW_disable_admin_avatar');
     117add_action('shutdown', 'IW_embed');
     118
     119function IW_embed()
     120{
    114121    try {
    115122        $api = new Client(get_option('IW_SAAS_DeveloperCode'), get_option('IW_SAAS_Login'), get_option('IW_SAAS_Password'));
    116123        echo $api->getCode(get_option('IW_SAAS_LayoutMode'));
    117124    } 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}
    128129function IW_SAAS_plugin_page() {
    129130?>
Note: See TracChangeset for help on using the changeset viewer.