looks like i’m learning PHP the hard way…
i’ve used a dirty solution, modifying the GALLERY CAROUSEL TEMPLATE and fetching the titles of the gallery and the list of the images “by hand”
i don’t understand how the variable “$current” is valorized, looks like i can list the pictures in multiple galleries but not display all of them throught the “$current” value…
i’m a bit ashamed of my code, but just in case…
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
<?php var_dump($current) ?>$current
<!-- PRIMA COLLEZIONE !! -->
<div class="collection-list list-1">
<?php /** TITOLO **/ ?>
<strong><?php /** RACCOLGO LA GALLERIA **/ $galleryFirst = nggdb::find_gallery( 2 ) ;
echo($galleryFirst->title); ?>
</strong>
<?php /** RACCOLGO LE IMMAGINI **/
$imagesFirst = nggdb::get_gallery( 2 ); ?>
<?php /** SCORRO LE IMMAGINI **/
foreach ( $imagesFirst as $image ) : ?>
<ul>
<li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" >
<?php if ( $image->hidden ) continue; ?>
<a href="?pid=<?php echo $image->pid ?>" title="<?php echo $image->alttext ?>" >
<?php echo $image->alttext ?>
</a>
</li>
</ul>
<?php endforeach; ?>
</div>
<!-- SECONDA COLLEZIONE !! -->
<div class="collection-list list-2">
<?php /** TITOLO **/ ?>
<strong><?php /** RACCOLGO LA GALLERIA **/ $galleryFirst = nggdb::find_gallery( 3 ) ;
echo($galleryFirst->title); ?>
</strong>
<?php /** RACCOLGO LE IMMAGINI **/
$imagesFirst = nggdb::get_gallery( 3 ); ?>
<?php /** SCORRO LE IMMAGINI **/
foreach ( $imagesFirst as $image ) : ?>
<ul>
<li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" >
<?php if ( $image->hidden ) continue; ?>
<a href="?pid=<?php echo $image->pid ?>" title="<?php echo $image->alttext ?>" >
<?php echo $image->alttext ?>
</a>
</li>
</ul>
<?php endforeach; ?>
</div>
<!-- TERZA COLLEZIONE !! -->
<div class="collection-list list-3">
<?php /** TITOLO **/ ?>
<strong><?php /** RACCOLGO LA GALLERIA **/ $galleryFirst = nggdb::find_gallery( 4 ) ;
echo($galleryFirst->title); ?>
</strong>
<?php /** RACCOLGO LE IMMAGINI **/
$imagesFirst = nggdb::get_gallery( 4 ); ?>
<?php /** SCORRO LE IMMAGINI **/
foreach ( $imagesFirst as $image ) : ?>
<ul>
<li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" >
<?php if ( $image->hidden ) continue; ?>
<a href="?pid=<?php echo $image->pid ?>" title="<?php echo $image->alttext ?>" >
<?php echo $image->alttext ?>
</a>
</li>
</ul>
<?php endforeach; ?>
</div>
<div class="bottom-collection">
<div class="collection-element">
<div class="pic"><img title="<?php echo $current->alttext ?>" alt="<?php echo $current->alttext ?>" src="<?php echo $current->url; ?>" height="250" width="790" /></div>
</div>
</div>
</div>
<?php endif; ?>