/**
  * Main Off-Canvas Sidebars Menu Meta Box Instance.
  *
  * Ensures only one instance of this class is loaded or can be loaded.
  *
  * @since   0.3
  * @static
  * @return  OCS_Off_Canvas_Sidebars_Menu_Meta_box
  */
 public static function get_instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 /**
  * Init function to register plugin hook
  *
  * @since   0.1
  * @access  private
  */
 private function __construct()
 {
     self::$_instance = $this;
     // DB version for the current plugin version (only major version tags)
     $this->db_version = substr(OCS_PLUGIN_VERSION, 0, 3);
     $this->enable = true;
     // Added for possible use in future
     if ($this->enable == true) {
         // Lets start!
         add_action('init', array($this, 'init'));
         // Load the OCS API
         include_once 'includes/off-canvas-sidebars-api.class.php';
         $this->general_settings = get_option($this->general_key) ? get_option($this->general_key) : array();
         $this->maybe_db_update();
         // Merge DB settings with default settings
         $this->general_settings = $this->get_settings();
         $this->general_labels = $this->get_general_labels();
         // Register the widget
         include_once 'widgets/off-canvas-sidebars-widget.php';
         add_action('widgets_init', function () {
             register_widget('OCS_Off_Canvas_Sidebars_Control_Widget');
         });
         // Load menu-meta-box option
         include_once 'includes/off-canvas-sidebars-menu-meta-box.class.php';
         OCS_Off_Canvas_Sidebars_Menu_Meta_box::get_instance();
     } else {
         // Added for possible use in future
         add_action('admin_notices', array($this, 'compatibility_notice'));
         add_action('wp_ajax_' . $this->noticeKey, array($this, 'ignore_compatibility_notice'));
     }
 }