Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new SHShoutbox();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
/*
Plugin Name: Shop Shoutbox
Plugin URI: http://career.nola.cba/
Description: Plugin chat
Version: 1.0.2
Author: Nola
Author URI: http://career.nola.cba/
License: GPL2
Text Domain: shopshoutbox
*/
// Make sure we don't expose any info if called directly
if (!function_exists('add_action')) {
    echo 'Hi there!  I\'m just a plugin, not much I can do when called directly.';
    exit;
}
define('SH_SHOUTBOX_VERSION', '1.0.3');
define('SH_MINIMUM_WP_VERSION', '3.9.2');
define('SH_PLUGIN_URL', plugin_dir_url(__FILE__));
define('SH_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('SH_PLUGIN_LANGUAGES', dirname(plugin_basename(__FILE__) . '/languages/'));
require_once SH_PLUGIN_DIR . 'includes/class.shshoutbox-message.php';
require_once SH_PLUGIN_DIR . 'includes/class.shshoutbox-user.php';
require_once SH_PLUGIN_DIR . 'includes/class.shshoutbox-setting.php';
require_once SH_PLUGIN_DIR . 'includes/class.shshoutbox-widget.php';
require_once SH_PLUGIN_DIR . 'includes/class.shshoutbox-shortcode.php';
require_once SH_PLUGIN_DIR . 'includes/class.shshoutbox.php';
register_activation_hook(__FILE__, ['SHShoutbox', 'pluginActivation']);
register_deactivation_hook(__FILE__, ['SHShoutbox', 'pluginDeactivation']);
SHShoutbox::run();