[Plugin: NextGEN Gallery] Show gallery title and description in slideshow view
-
Took me some time, but managed to figure out how to show the gallery title and description in the slideshow view.
You will need to edit the nggfunctions.php file.
This is how the extended version looks like starting from line 201:// 2nd look for slideshow if ( $show == 'slide' ) { $args['show'] = "gallery"; // Lines for displaying gallery title and description in slideshow view - PC-MAGE, 2012-04-07 // Getting the picture ID of the first picture foreach( $picturelist as $kulcs => $ertek ) { $num = $kulcs; break; } // using the picture id of the first picture to get the name and description of the gallery // Display gallery title $out = '<div class="gallery-name">'; $out .= '<h1>' . $picturelist[$num]->title . '</h1>'; $out .= '</div>'; // Display gallery description $out .= '<div class="gallery-description">'; $out .= $picturelist[$num]->galdesc; $out .= '</div>'; // END $out .= '<div class="ngg-galleryoverview">'; $out .= '<div class="slideshowlink"><a class="slideshowlink" href="' . $nggRewrite->get_permalink($args) . '">'.nggGallery::i18n($ngg_options['galTextGallery']).'</a></div>'; $out .= nggShowSlideshow($galleryID, $ngg_options['irWidth'], $ngg_options['irHeight']); $out .= '</div>'."\n"; $out .= '<div class="ngg-clear"></div>'."\n"; return $out; }
https://www.ads-software.com/extend/plugins/nextgen-gallery/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: NextGEN Gallery] Show gallery title and description in slideshow view’ is closed to new replies.