nggCreateImageBrowser
Create an image browser from a list of image objects.
Description
Ngglegacy function
Parameters (2)
- 0. $picturelist
- The picturelist.
- 1. $template — Optional. (string) =>
''
- The template.
Usage
if ( !function_exists( 'nggCreateImageBrowser' ) ) { require_once '/products/photocrati_nextgen/modules/nextgen_basic_imagebrowser/module.nextgen_basic_imagebrowser.php'; } // The picturelist. $picturelist = null; // The template. $template = ''; // NOTICE! Understand what this does before running. $result = nggCreateImageBrowser($picturelist, $template);
Defined (1)
The function is defined in the following location(s).
- /products/photocrati_nextgen/modules/nextgen_basic_imagebrowser/module.nextgen_basic_imagebrowser.php
- function nggCreateImageBrowser($picturelist, $template = '')
- {
- $renderer = C_Displayed_Gallery_Renderer::get_instance();
- $image_ids = array();
- foreach ($picturelist as $image) $image_ids[] = $image->pid;
- return $renderer->display_images(array(
- 'image_ids' => $image_ids,
- 'display_type' => 'photocrati-nextgen_basic_imagebrowser',
- 'template' => $template
- ));
- }