#if($request.getParameter("indexFolder"))
#set ($indexFolder = $request.getParameter("indexFolder"))
#end
#if(!$photoWidth)
#set ($photoWidth = "600")
#end
#if(!$photoHeight)
#set ($photoHeight = "450")
#end
#if(!$thumbnailWidth)
#set ($thumbnailWidth = "90")
#end
#if(!$thumbnailHeight)
#set ($thumbnailHeight = "90")
#end
#if(!$UtilMethods.isSet($showSubgalleryTitle))
#set($showSubgalleryTitle = true)
#end
#if(!$UtilMethods.isSet($showPhotoTitle))
#set($showPhotoTitle = true)
#end
#if($UtilMethods.isSet($indexFolder))
#if(!$UtilMethods.isSet($doNotIncludeCSS) || $doNotIncludeCSS == false)
#end
#if (!($UtilMethods.isSet($dontShowIndexFolderImages) && ($dontShowIndexFolderImages == 'true')))
#if($folderImages.size() > 0)
#foreach ($img in $folderImages)
#if($showPhotoGalleryCSS)
#set($cssClass = "photoGalleryGridView")
#if($velocityCount == $images.size())
#set($cssClass = "photoGalleryGridView last")
#end
#else
#set($cssClass = "photoList")
#if($velocityCount == $images.size())
#set($cssClass = "photoList last")
#end
#end

#if($showPhotoTitle)
${img.friendlyName}
#end
#end
#end
#end
#if($images.size() > 0)
#foreach ($img in $images)
#if($showPhotoGalleryCSS)
#set($cssClass = "photoGalleryGridIndex")
#if($velocityCount == $images.size())
#set($cssClass = "photoGalleryGridIndex last")
#end
#else
#set($cssClass = "photoList")
#if($velocityCount == $images.size())
#set($cssClass = "photoList last")
#end
#end
#end
#end
#else
No parameters given
#end