/**
  * 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->version = $vars['version'];
     $this->plugin_dir_url = $vars['plugin_dir_url'];
     $this->plugin_dir_path = $vars['plugin_dir_path'];
     $this->fancybox_version = $vars['fancybox_version'];
     // Access our class methods and properties in NGGOBASIC_Register_Scripts.
     $this->register_scripts = NGGOBASIC_Register_Scripts::get_instance();
     $vars = $this->register_scripts->get_vars();
     $this->jquery_version = $vars['jquery_version'];
     $this->jquery_migrate_version = $vars['jquery_migrate_version'];
     // Check if we have an active NextGEN widget.
     add_action('init', array($this, 'is_nextgen_widget_active'));
 }
 /**
  * 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;
 }
 /**
  * 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();
 }
 /**
  * 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()
 {
     // Access our methods in NGGOBASIC_Register_Scripts.
     $this->register_scripts = NGGOBASIC_Register_Scripts::get_instance();
     $this->shortcodes = array("nggallery" => false, "album" => false, "slideshow" => false, "nggtags_album" => false, "nggtags_gallery" => false, "imagebrowser" => false, "singlepic" => false, "thumb" => false, "random" => false, "recent" => false, "tagcloud" => false, "singlepic_link_attribute" => false);
     add_action('wp', array($this, 'get_shortcode_regex'));
     add_action('wp', array($this, 'check_nggallery_shortcode'));
     add_action('wp', array($this, 'check_nextgen_shortcodes'), 1000);
     add_action('get_header', array($this, 'check_album_gallery_page'));
     add_action('get_header', array($this, 'is_show_first_slideshow_setting'));
     add_action('get_header', array($this, 'is_show_as_slideshow_page'));
 }