コード例 #1
0
 function define()
 {
     parent::define('photocrati-nextgen', 'Photocrati NextGEN', 'Photocrati NextGEN', NGG_PLUGIN_VERSION, 'http://www.nextgen-gallery.com', 'Photocrati Media', 'http://www.photocrati.com');
     $module_path = implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), 'modules'));
     $this->get_registry()->set_product_module_path($this->module_id, $module_path);
     foreach ($this->get_modules_to_load() as $module_name) {
         $this->_get_registry()->load_module($module_name);
     }
     include_once 'class.nextgen_product_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_NextGen_Product_Installer');
 }
コード例 #2
0
 function define()
 {
     parent::define('photocrati-nextgen', 'Photocrati NextGEN', 'Photocrati NextGEN', '2.0.33', 'http://www.nextgen-gallery.com', 'Photocrati Media', 'http://www.photocrati.com');
     $module_path = path_join(dirname(__FILE__), 'modules');
     $this->get_registry()->set_product_module_path($this->module_id, $module_path);
     $this->get_registry()->add_module_path($module_path, TRUE, FALSE);
     foreach (self::$modules as $module_name) {
         $this->_get_registry()->load_module($module_name);
     }
     include_once 'class.nextgen_product_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_NextGen_Product_Installer');
 }
コード例 #3
0
 function define()
 {
     parent::define('ds-royalslider', 'RoyalSlider for NextGEN', 'RoyalSlider for NextGEN', '1.0', 'http://dimsemenov.com/plugins/royal-slider/wordpress/', 'Dmitry Semenov', 'http://dimsemenov.com');
     $module_path = path_join(dirname(__FILE__), 'modules');
     $registry = $this->get_registry();
     $registry->set_product_module_path($this->module_id, $module_path);
     $registry->add_module_path($module_path, TRUE, FALSE);
     foreach (self::$modules as $module_name) {
         $registry->load_module($module_name);
     }
     include_once 'class.ds_royalslider_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_Ds_RoyalSlider_Installer');
 }