M_Dynamic_Stylesheet

The NextGEN Gallery M Dynamic Stylesheet class.

Defined (1)

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

/products/photocrati_nextgen/modules/dynamic_stylesheet/module.dynamic_stylesheet.php  
  1. class M_Dynamic_Stylesheet extends C_Base_Module 
  2. function define($context=FALSE) 
  3. parent::define( 
  4. 'photocrati-dynamic_stylesheet',  
  5. 'Dynamic Stylesheet',  
  6. 'Provides the ability to generate and enqueue a dynamic stylesheet',  
  7. '0.3',  
  8. 'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',  
  9. 'Photocrati Media',  
  10. 'https://www.imagely.com',  
  11. $context 
  12. ); 
  13.  
  14. C_Photocrati_Installer::add_handler($this->module_id, 'C_Dynamic_Stylesheet_Installer'); 
  15.  
  16. function _register_utilities() 
  17. $this->get_registry()->add_utility( 
  18. "I_Dynamic_Stylesheet", 'C_Dynamic_Stylesheet_Controller' 
  19. ); 
  20.  
  21. function _register_hooks() 
  22. add_action('ngg_routes', array(&$this, 'define_routes')); 
  23. add_filter('ngg_non_minified_files', array(&$this, 'do_not_minify'), 10, 2); 
  24.  
  25. function do_not_minify($path, $module) 
  26. $retval = FALSE; 
  27.  
  28. if ($module == $this->module_id) $retval = TRUE; 
  29.  
  30. return $retval; 
  31.  
  32. function define_routes($router) 
  33. $app = $router->create_app('/nextgen-dcss'); 
  34. $app->rewrite('/{\d}/{*}', '/index--{1}/data--{2}'); 
  35. $app->route('/', 'I_Dynamic_Stylesheet#index'); 
  36.  
  37. function get_type_list() 
  38. return array( 
  39. 'C_Dynamic_Stylesheet_Installer' => 'class.dynamic_stylesheet_installer.php',  
  40. 'C_Dynamic_Stylesheet_Controller' => 'class.dynamic_stylesheet_controller.php' 
  41. );