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($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-dynamic_stylesheet',  
  12. 'Dynamic Stylesheet',  
  13. 'Provides the ability to generate and enqueue a dynamic stylesheet',  
  14. '0.4',  
  15. 'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',  
  16. 'Imagely',  
  17. 'https://www.imagely.com',  
  18. $context 
  19. ); 
  20.  
  21. C_Photocrati_Installer::add_handler($this->module_id, 'C_Dynamic_Stylesheet_Installer'); 
  22.  
  23. function _register_utilities() 
  24. $this->get_registry()->add_utility( 
  25. "I_Dynamic_Stylesheet", 'C_Dynamic_Stylesheet_Controller' 
  26. ); 
  27.  
  28. function _register_hooks() 
  29. add_action('ngg_routes', array(&$this, 'define_routes')); 
  30. add_filter('ngg_non_minified_files', array(&$this, 'do_not_minify'), 10, 2); 
  31.  
  32. function do_not_minify($path, $module) 
  33. $retval = FALSE; 
  34.  
  35. if ($module == $this->module_id) $retval = TRUE; 
  36.  
  37. return $retval; 
  38.  
  39. function define_routes($router) 
  40. $app = $router->create_app('/nextgen-dcss'); 
  41. $app->rewrite('/{\d}/{*}', '/index--{1}/data--{2}'); 
  42. $app->route('/', 'I_Dynamic_Stylesheet#index'); 
  43.  
  44. function get_type_list() 
  45. return array( 
  46. 'C_Dynamic_Stylesheet_Installer' => 'class.dynamic_stylesheet_installer.php',  
  47. 'C_Dynamic_Stylesheet_Controller' => 'class.dynamic_stylesheet_controller.php' 
  48. );