Ok I did it but it’s a huge modification of the widgets.php file.
In fact, what I did is a non reversible modification ?? and it cut definitely the whole encapsulation of the image, keeping only the url or the img tag, depending of the output you choose.
Here’s what I did (between lines 386 and 420 of widgets.php) :
– comment encapsulation
– adding an else if
for the case I choose just the image URL
echo $before_widget . $before_title . $title . $after_title;
//echo "\n" . '<div class="ngg-widget entry-content">'. "\n";
if (is_array($imageList)){
foreach($imageList as $image) {
// get the URL constructor
$image = new nggImage($image);
// get the effect code
$thumbcode = $image->get_thumbcode("sidebar_".$number);
// enable i18n support for alttext and description
$alttext = htmlspecialchars( stripslashes( nggGallery::i18n($image->alttext) ));
$description = htmlspecialchars( stripslashes( nggGallery::i18n($image->description) ));
//TODO:For mixed portrait/landscape it's better to use only the height setting, if widht is 0 or vice versa
//$out = 'imageURL . '" title="' . $description . '" ' . $thumbcode .'>';
// Typo fix for the next updates (happend until 1.0.2)
$options[$number]['show'] = ( $options[$number]['show'] == 'orginal' ) ? 'original' : $options[$number]['show'];
if ( $options[$number]['show'] == 'original' )
$out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&width='.$options[$number]['width'].'&height='.$options[$number]['height']. '" title="'.$alttext.'" alt="'.$alttext.'" />';
else if ( $options[$number]['show'] == 'imageurl' )
$out .= NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid;
else
$out .= '<img src="'.$image->thumbURL.'" width="'.$options[$number]['width'].'" height="'.$options[$number]['height'].'" title="'.$alttext.'" alt="'.$alttext.'" />';
//echo $out . ''."\n";
echo $out;
}
}
//echo '</div>'."\n";
echo $after_widget;
Hope this could help !