nggShowSlideshow
Wrapper to I_Displayed_Gallery_Renderer->display_images(); this will display a basic slideshow gallery.
Description
Parameters (3)
- 0. $galleryid (int)
- The galleryid.
- 1. $width (int)
- Gallery width
- 2. $height (int)
- Gallery height
Usage
if ( !function_exists( 'nggShowSlideshow' ) ) { require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/module.nextgen_basic_gallery.php'; } // The galleryid. $galleryid = -1; // Gallery width $width = -1; // Gallery height $height = -1; // NOTICE! Understand what this does before running. $result = nggShowSlideshow($galleryid, $width, $height);
Defined (1)
The function is defined in the following location(s).
- /products/photocrati_nextgen/modules/nextgen_basic_gallery/module.nextgen_basic_gallery.php
- function nggShowSlideshow($galleryID, $width, $height)
- {
- $args = array(
- 'source' => 'galleries',
- 'container_ids' => $galleryID,
- 'gallery_width' => $width,
- 'gallery_height' => $height,
- 'display_type' => NGG_BASIC_SLIDESHOW
- );
- echo C_Displayed_Gallery_Renderer::get_instance()->display_images($args);
- }