/**
  * Define the core functionality of the plugin.
  *
  * Set the plugin name and the plugin version that can be used throughout the plugin.
  * Load the dependencies, define the locale, and set the hooks for the admin area and
  * the public-facing side of the site.
  *
  * @since    1.0.0
  */
 public function __construct()
 {
     self::$plugin_name = 'smarter-browser-warning';
     $this->version = '1.0.0';
     $this->load_dependencies();
     $this->set_locale();
     $this->define_admin_hooks();
     $this->define_public_hooks();
 }
 /**
  * Get default setting values
  *
  * @return array
  */
 public function get_defaults()
 {
     return Smarter_Browser_Warning::get_defaults();
 }
 /**
  * Short Description. (use period)
  *
  * Long Description.
  *
  * @since    1.0.0
  */
 public static function activate()
 {
     if (!get_option('smarter_browser_warning', false)) {
         add_option('smarter_browser_warning', Smarter_Browser_Warning::get_defaults());
     }
 }
/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function run_plugin_name()
{
    $plugin = new Smarter_Browser_Warning();
    $plugin->run();
}