/**
  * Primary class constructor
  */
 function __construct()
 {
     parent::__construct();
     //load all hooks
     $this->setup_actions();
     //init skin
     //create skin selector
     if (class_exists('HW_SKIN')) {
         // instance skin, note: if use create instance from class you should use property 'skin'
         $this->skin = new HW_SKIN($this, HW_GALLERY_PLUGIN_PATH, 'hw_gallery_skins', 'hw-gallery-skin.php', 'skins');
         $this->skin->plugin_url = HW_GALLERY_PLUGIN_URL;
         //set plugin url or url to app that use hw_skin
         $this->skin->enable_external_callback = false;
         //turn off/on external callback
         $this->skin->enable_template_engine(true, true);
     }
 }
 /**
  * main constructor method
  */
 public function __construct()
 {
     parent::__construct();
     //load hooks
     $this->setup_hooks();
 }
 /**
  * main class constructor
  */
 public function __construct()
 {
     parent::__construct();
     add_shortcode('hw_gallery', array(&$this, '_gallery_shortcode'));
 }