* Author: WP Pusher * Author URI: http://wppusher.com * License: GNU GENERAL PUBLIC LICENSE */ // If this file is called directly, abort. if (!defined('WPINC')) { die; } require __DIR__ . '/autoload.php'; use Pusher\ActionHandlers\ActionHandlerProvider; use Pusher\Pusher; use Pusher\PusherServiceProvider; $pusher = new Pusher(); $pusher->pusherPath = plugin_dir_path(__FILE__); $pusher->pusherUrl = plugin_dir_url(__FILE__); $pusher->register(new PusherServiceProvider()); $pusher->register(new ActionHandlerProvider()); register_activation_hook(__FILE__, array($pusher, 'activate')); require_once 'wp-updates-plugin.php'; new WPUpdatesPluginUpdater_957('http://wp-updates.com/api/2/plugin', plugin_basename(__FILE__)); $pusher->init(); if (!function_exists('getHostIcon')) { function getHostIcon($host) { if ($host === 'gh') { return 'fa-github'; } elseif ($host === 'bb') { return 'fa-bitbucket'; } else { return 'fa-git-square'; }