Mixin_NGG_Lightbox_Instance_Methods

The NextGEN Gallery Mixin NGG Lightbox Instance Methods class.

Defined (1)

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

/products/photocrati_nextgen/modules/lightbox/package.module.lightbox.php  
  1. class Mixin_NGG_Lightbox_Instance_Methods extends Mixin 
  2. /** 
  3. * Returns true/false whether or not the lightbox supports displaying entities from the displayed gallery object 
  4. * @param $displayed_gallery. By default, lightboxes don't support albums 
  5. * @return bool 
  6. */ 
  7. function is_supported($displayed_gallery) 
  8. $retval = TRUE; 
  9. if (in_array($displayed_gallery->source, array('album', 'albums')) && !isset($displayed_gallery->display_settings['open_gallery_in_lightbox'])) { 
  10. $retval = FALSE; 
  11. return $retval;