nggShowAlbum

The NextGEN Gallery nggShowAlbum function.

Description

nggShowAlbum( $albumID, (string) $template = 'extend', (string) $gallery_template = '' ); 

Parameters (3)

0. $albumid
The albumid.
1. $template — Optional. (string) => 'extend'
The template.
2. $gallery_template — Optional. (string) => ''
The gallery template.

Usage

  1. if ( !function_exists( 'nggShowAlbum' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/module.nextgen_basic_album.php'; 
  3.  
  4. // The albumid. 
  5. $albumid = null; 
  6.  
  7. // The template. 
  8. $template = 'extend'; 
  9.  
  10. // The gallery template. 
  11. $gallery_template = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = nggShowAlbum($albumid, $template, $gallery_template); 
  15.  

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_album/module.nextgen_basic_album.php  
  1. function nggShowAlbum($albumID, $template = 'extend', $gallery_template = '') 
  2. $renderer = C_Displayed_Gallery_Renderer::get_instance(); 
  3. $retval = $renderer->display_images(array( 
  4. 'album_ids' => array($albumID),  
  5. 'display_type' => 'photocrati-nextgen_basic_extended_album',  
  6. 'template' => $template,  
  7. 'gallery_display_template' => $gallery_template 
  8. )); 
  9.  
  10. return apply_filters('ngg_show_album_content', $retval, $albumID);