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() 
  6. parent::define( 
  7. 'photocrati-widget',  
  8. 'Widget',  
  9. 'Handles clearing of NextGen Widgets',  
  10. '0.5',  
  11. 'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',  
  12. 'Photocrati Media',  
  13. 'https://www.imagely.com' 
  14. ); 
  15.  
  16. /** 
  17. * Register utilities 
  18. */ 
  19. function _register_utilities() 
  20. $this->get_registry()->add_utility('I_Widget', 'C_Widget'); 
  21.  
  22. /** 
  23. * Register hooks 
  24. */ 
  25. function _register_hooks() 
  26. add_action('widgets_init', create_function('', 'return register_widget("C_Widget_Gallery");')); 
  27. add_action('widgets_init', create_function('', 'return register_widget("C_Widget_MediaRSS");')); 
  28. add_action('widgets_init', create_function('', 'return register_widget("C_Widget_Slideshow");')); 
  29.  
  30. function get_type_list() 
  31. return array( 
  32. 'C_Widget' => 'class.widget.php',  
  33. 'C_Widget_Gallery' => 'class.widget_gallery.php',  
  34. 'C_Widget_Mediarss' => 'class.widget_mediarss.php',  
  35. 'C_Widget_Slideshow' => 'class.widget_slideshow.php' 
  36. ); 
  37.