public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
}
if (!function_exists('ice_log')) {
    function ice_log($log)
    {
        if (true === WP_DEBUG) {
            if (is_array($log) || is_object($log)) {
                error_log(print_r($log, true));
            } else {
                error_log($log);
            }
        }
    }
}
register_activation_hook(__FILE__, array('ICEController', 'activate'));
register_deactivation_hook(__FILE__, array('ICEController', 'deactivate'));
$controller = ICEController::get_instance();
$controller->run();
/*
 * Function: loader
* Function for loading PHP classes
*/
function ice_loader($class)
{
    global $ice_config;
    //error_log("loader called");
    if (strpos($class, "ICEComponent") === 0) {
        foreach ($ice_config["classPath"] as $location) {
            if (file_exists("{$location}/Component/{$class}.php")) {
                require "{$location}/Component/{$class}.php";
                return true;
            }