2015-07-22, 06:48:57
if you want to play with it your output would be something like this.
load it with dynpages plugin or get_component
I think you have to have the auto thumbnails setup before you create the gallery, in the plugins/settings
load it with dynpages plugin or get_component
PHP Code:
// component {% gallery %}
$galleryItems = eg_return_gallery('Test');
debugLog($galleryItems);
echo "<h2>Gallery ".$galleryItems['title']."</h2>";
echo "<ul>";
array_walk($galleryItems['items'],'output');
echo "</ul>";
function output($item,$key){
GLOBAL $SITEURL;
echo "<div>";
echo '<a href="'.$SITEURL.'/data/'.$item['filename'].'" rel="lightbox">';
echo '<img src="'.$SITEURL.'/data/'.$item['thumb-0']['filename'].'">';
echo "</a>";
echo "</div>";
}
I think you have to have the auto thumbnails setup before you create the gallery, in the plugins/settings