/**
  * Class initialization.
  *
  * Get and set required properties, and add our action hooks, function
  * calls and file includes to initialize this class.
  *
  * @wp-hook	void
  * @uses		add_action()
  * @since		2.0.0
  * @return 	void
  */
 public function init()
 {
     // Retrieve required properties from our main plugin class.
     $this->plugin = NextGEN_Gallery_Optimizer_Basic::get_instance();
     $vars = $this->plugin->get_vars();
     $this->db = $vars['db'];
     $this->prefix = $vars['prefix'];
     $this->plugin_dir_path = $vars['plugin_dir_path'];
     $this->nextgen_v1 = $vars['nextgen_v1'];
     $this->gallery_version = $vars['gallery_version'];
     add_action('init', array($this, 'remove_scripts_nextgen_v1'));
     add_action('wp_print_styles', array($this, 'remove_styles_nextgen_v1'), 1000);
     require_once $this->plugin_dir_path . 'public/nextgen-v1/class-' . $this->prefix . '-register-scripts.php';
     $this->register_scripts = NGGOBASIC_Register_Scripts::get_instance();
     $this->register_scripts->init();
     require_once $this->plugin_dir_path . 'public/nextgen-v1/class-' . $this->prefix . '-shortcode-regex.php';
     $this->shortcode_regex = NGGOBASIC_Shortcode_Regex::get_instance();
     $this->shortcode_regex->init();
     require_once $this->plugin_dir_path . 'public/nextgen-v1/class-' . $this->prefix . '-nextgen-widgets.php';
     $this->nextgen_widgets = NGGOBASIC_NextGEN_Widgets::get_instance();
     $this->nextgen_widgets->init();
 }
 /**
  * Access this class's working instance.
  * If the instance hasn't been set, set it now.
  *
  * @wp-hook	void
  * @uses		void
  * @since		2.0.0
  * @return		object of this class
  */
 public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }