Shuffle
Posted: Tue Oct 09, 2012 1:43 pm
Hi, is it possible to make the images appear in a random order? to have them on a shuffle setting?
This is the official forum of the Admiror Joomla! Community. Here you can get help with Admiror Joomla! extensions. Join us in an effort to make Admiror Joomla! Extensions better.
https://www.vasiljevski.com/forum/
Code: Select all
shuffle($AG->images);
// Loops over the array of images inside target gallery folder, adding wrapper with SPAN tag and write Popup thumbs inside this wrapper
if(!empty($AG->images)){
foreach ($AG->images as $imageKey => $imageName){
$html.= '<span class="ag_thumb'.$AG->params['template'].'">';
$html.= $AG->writePopupThumb($imageName);
$html.='</span>';
}
}