Esempio n. 1
0
 function define()
 {
     parent::define('photocrati-ajax', 'AJAX', 'Provides AJAX functionality', '0.4', 'http://www.photocrati.com', 'Photocrati Media', 'http://www.photocrati.com');
     include_once 'class.ajax_option_handler.php';
     C_NextGen_Settings::add_option_handler('C_Ajax_Option_Handler', array('ajax_slug', 'ajax_url', 'ajax_js_url'));
     include_once 'class.ajax_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_Ajax_Installer');
 }
Esempio n. 2
0
 /**
  * Defines the module
  */
 function define()
 {
     parent::define('photocrati-nextgen_admin', 'NextGEN Administration', 'Provides a framework for adding Administration pages', '0.5', 'http://www.nextgen-gallery.com', 'Photocrati Media', 'http://www.photocrati.com');
     include_once 'class.nextgen_admin_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_NextGen_Admin_Installer');
     include_once 'class.nextgen_admin_option_handler.php';
     C_NextGen_Settings::add_option_handler('C_NextGen_Admin_Option_Handler', array('jquery_ui_theme', 'jquery_ui_theme_version', 'jquery_ui_theme_url'));
 }
Esempio n. 3
0
 function define()
 {
     parent::define("photocrati-mvc", "MVC Framework", "Provides an MVC architecture for the plugin to use", "0.4", "http://www.photocrati.com", "Photocrati Media", "http://www.photocrati.com");
     include_once 'class.mvc_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_Mvc_Installer');
     include_once 'class.mvc_option_handler.php';
     C_NextGen_Settings::add_option_handler('C_Mvc_Option_Handler', array('mvc_template_dir'));
 }
 /**
  * Defines the module
  * @param string|bool $context
  */
 function define($context = FALSE)
 {
     parent::define('photocrati-attach_to_post', 'Attach To Post', 'Provides the "Attach to Post" interface for displaying galleries and albums', '0.6', 'http://www.nextgen-gallery.com', 'Photocrati Media', 'http://www.photocrati.com', $context);
     include_once 'class.attach_to_post_option_handler.php';
     C_NextGen_Settings::add_option_handler('C_Attach_To_Post_Option_Handler', array('attach_to_post_url', 'gallery_preview_url', 'attach_to_post_display_tab_js_url'));
     include_once 'class.attach_to_post_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_Attach_To_Post_Installer');
 }
Esempio n. 5
0
 /**
  * Defines the module
  * @param string|bool $context
  */
 function define($context = FALSE)
 {
     parent::define('photocrati-attach_to_post', 'Attach To Post', 'Provides the "Attach to Post" interface for displaying galleries and albums', '0.7', 'http://www.nextgen-gallery.com', 'Photocrati Media', 'http://www.photocrati.com', $context);
     include_once 'class.attach_to_post_option_handler.php';
     C_NextGen_Settings::add_option_handler('C_Attach_To_Post_Option_Handler', array('attach_to_post_url', 'gallery_preview_url', 'attach_to_post_display_tab_js_url'));
     include_once 'class.attach_to_post_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_Attach_To_Post_Installer');
     $uri = strtolower($_SERVER['REQUEST_URI']);
     if (strpos($uri, '/nextgen-attach_to_post') !== false) {
         define('WP_ADMIN', true);
     }
 }
Esempio n. 6
0
 /**
  * Defines the module
  * @param string|bool $context
  */
 function define($context = FALSE)
 {
     parent::define('photocrati-attach_to_post', 'Attach To Post', 'Provides the "Attach to Post" interface for displaying galleries and albums', '0.10', 'http://www.nextgen-gallery.com', 'Photocrati Media', 'http://www.photocrati.com', $context);
     include_once 'class.attach_to_post_option_handler.php';
     C_NextGen_Settings::add_option_handler('C_Attach_To_Post_Option_Handler', array('attach_to_post_url', 'gallery_preview_url', 'attach_to_post_display_tab_js_url'));
     include_once 'class.attach_to_post_installer.php';
     C_Photocrati_Installer::add_handler($this->module_id, 'C_Attach_To_Post_Installer');
     // Set WP_ADMIN=true for better compatibility with certain themes & plugins.
     // Unfortunately as of 3.9 in a multisite environment this causes problems.
     if (self::is_atp_url() && (!defined('MULTISITE') || defined('MULTISITE') && !MULTISITE)) {
         define('WP_ADMIN', true);
     }
 }