Salve a tutti,
ho un problema con un codice PHP, è il codice che mi genera una galleria carousel,

il codice funziona benissimo, ma la thumb list si trova al di spora della foto principale,
ho cercato in ogni modo di portarla sotto, ma non ci sono riuscito, ogni volta che riesco a mettere la thumblist sotto non mi funzionano più i tasti di " prev e Next " sotto alla foto principale


Il codice è questo:
codice:
<?php
/**
Template Page for the gallery carousel

Follow variables are useable :

	$gallery     : Contain all about the gallery
	$images      : Contain all images, path, title
	$pagination  : Contain the pagination content
	$current     : Contain the selected image
	$prev/$next  : Contain link to the next/previous gallery page

 You can check the content when you insert the tag <?php var_dump($variable) ?>
 If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
**/
?>
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
<?php $subnavi = array() ?>
<div class="ngg-galleryoverview">

	<ul class="ngg-gallery-list">

		
		<?php foreach ( $images as $image ) : ?>
		<?php if ( $image->hidden ) continue; ?>
		<?php $subnavi[] = $image->pidlink ;?>
		<li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" >
			<a href="<?php echo $image->pidlink ?>">
				[img]<?php echo $image->thumbnailURL ?>[/img]alttext ?>"   />
			</a>
		

	 	<?php endforeach; ?>

	[/list]
	<div class = "clear"></div>
</div>
<div id = "pic_top_line"></div>
<div class="ngg-galleryoverview">

	<div class="pic">[img]<?php echo $current->url; ?>[/img]alttext ?>" id="photofader"/></div>
<div id = "pic_bottom_line"></div>
	<div class = "clear"></div>
<div class = "center">
	<div class = "bildunterschrift"><span class = "left"><?php echo $current->alttext ?></span><?php echo $current->description ?></div>

<?php
$anzahl = count($subnavi);
$link = $current->pidlink;
$key = array_search($link, $subnavi);
$next=$key+1;
$back=$key-1;
?>

<div id = "subnavi">
<?php if ($back == -1) : ?>
<span class = "inaktive" >prev</span>
<?php else : ?>
prev
<?php endif; ?>
<?php if ($next == $anzahl) : ?>
<span class = "inaktive" > next</span>
<?php else : ?>
 next
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>

Qualcuno saprebbe come fare?

Grazie mille comunque a tutti
M.