M_Lightbox

The NextGEN Gallery M Lightbox class.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/lightbox/module.lightbox.php  
  1. class M_Lightbox extends C_Base_Module 
  2. function define($id = 'pope-module',  
  3. $name = 'Pope Module',  
  4. $description = '',  
  5. $version = '',  
  6. $uri = '',  
  7. $author = '',  
  8. $author_uri = '',  
  9. $context = FALSE) 
  10. parent::define( 
  11. 'photocrati-lightbox',  
  12. 'Lightbox',  
  13. "Provides integration with several JavaScript lightbox effect libraries",  
  14. '0.17',  
  15. 'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',  
  16. 'Imagely',  
  17. 'https://www.imagely.com' 
  18. ); 
  19.  
  20. /** 
  21. * Registers hooks for the WordPress framework 
  22. */ 
  23. function _register_hooks() 
  24. if (!is_admin()) 
  25. add_action('wp_enqueue_scripts', array(C_Lightbox_Library_Manager::get_instance(), 'maybe_enqueue')); 
  26. add_action('init', array(&$this, '_register_custom_post_type')); 
  27.  
  28. /** 
  29. * Registers the custom post type saved for lightbox libraries 
  30. */ 
  31. function _register_custom_post_type() 
  32. register_post_type('lightbox_library', array( 
  33. 'label' => 'Lightbox Library',  
  34. 'publicly_queryable' => FALSE,  
  35. 'exclude_from_search' => TRUE,  
  36. )); 
  37.  
  38. function get_type_list() 
  39. return array( 
  40. 'C_Lightbox_Installer' => 'class.lightbox_legacy_installer.php',  
  41. 'C_Lightbox_Library_Manager' => 'class.lightbox_library_manager.php',  
  42. 'C_NGG_Lightbox' => 'class.ngg_lightbox.php' 
  43. );