A_Gallery_Display_View

Class A_Gallery_Display_View.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php  
  1. class A_Gallery_Display_View extends Mixin 
  2. /** 
  3. * Check whether to render certain kinds of extra additions to the view for a displayed gallery 
  4. * @param object $displayed_gallery 
  5. * @param string $template_id 
  6. * @param C_MVC_View_Element $root_element 
  7. * @param string $addition_type what kind of addition is being made 'layout', 'decoration', 'style', 'logic' etc. 
  8. * @return string|NULL 
  9. */ 
  10. function _check_addition_rendering($displayed_gallery, $template_id, $root_element, $addition_type) 
  11. $view = $root_element->get_object(); 
  12. $mode = $view->get_param('render_mode'); 
  13. $ret = true; 
  14. switch ($addition_type) { 
  15. case 'layout': 
  16. $ret = !in_array($mode, array('bare', 'basic')); 
  17. break; 
  18. case 'decoration': 
  19. break; 
  20. case 'style': 
  21. break; 
  22. case 'logic': 
  23. break; 
  24. return $ret;