nggShowSlideshow

Wrapper to I_Displayed_Gallery_Renderer->display_images(); this will display a basic slideshow gallery.

Description

nggShowSlideshow( (int) $galleryID, (int) $width, (int) $height ); 

Parameters (3)

0. $galleryid (int)
The galleryid.
1. $width (int)
Gallery width
2. $height (int)
Gallery height

Usage

  1. if ( !function_exists( 'nggShowSlideshow' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/module.nextgen_basic_gallery.php'; 
  3.  
  4. // The galleryid. 
  5. $galleryid = -1; 
  6.  
  7. // Gallery width 
  8. $width = -1; 
  9.  
  10. // Gallery height 
  11. $height = -1; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = nggShowSlideshow($galleryid, $width, $height); 
  15.  

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_gallery/module.nextgen_basic_gallery.php  
  1. function nggShowSlideshow($galleryID, $width, $height) 
  2. $args = array( 
  3. 'source' => 'galleries',  
  4. 'container_ids' => $galleryID,  
  5. 'gallery_width' => $width,  
  6. 'gallery_height' => $height,  
  7. 'display_type' => NGG_BASIC_SLIDESHOW 
  8. ); 
  9.  
  10. echo C_Displayed_Gallery_Renderer::get_instance()->display_images($args);