M_Widget

The NextGEN Gallery M Widget class.

Defined (1)

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

/products/photocrati_nextgen/modules/widget/module.widget.php  
  1. class M_Widget extends C_Base_Module 
  2. /** 
  3. * Defines the module name & version 
  4. */ 
  5. function define($id = 'pope-module',  
  6. $name = 'Pope Module',  
  7. $description = '',  
  8. $version = '',  
  9. $uri = '',  
  10. $author = '',  
  11. $author_uri = '',  
  12. $context = FALSE) 
  13. parent::define( 
  14. 'photocrati-widget',  
  15. 'Widget',  
  16. 'Handles clearing of NextGen Widgets',  
  17. '0.6',  
  18. 'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',  
  19. 'Imagely',  
  20. 'https://www.imagely.com' 
  21. ); 
  22.  
  23. /** 
  24. * Register utilities 
  25. */ 
  26. function _register_utilities() 
  27. $this->get_registry()->add_utility('I_Widget', 'C_Widget'); 
  28.  
  29. /** 
  30. * Register hooks 
  31. */ 
  32. function _register_hooks() 
  33. add_action('widgets_init', create_function('', 'return register_widget("C_Widget_Gallery");')); 
  34. add_action('widgets_init', create_function('', 'return register_widget("C_Widget_MediaRSS");')); 
  35. add_action('widgets_init', create_function('', 'return register_widget("C_Widget_Slideshow");')); 
  36.  
  37. function get_type_list() 
  38. return array( 
  39. 'C_Widget' => 'class.widget.php',  
  40. 'C_Widget_Gallery' => 'class.widget_gallery.php',  
  41. 'C_Widget_Mediarss' => 'class.widget_mediarss.php',  
  42. 'C_Widget_Slideshow' => 'class.widget_slideshow.php' 
  43. ); 
  44.