#if($request.getParameter("indexFolder")) #set ($indexFolder = $request.getParameter("indexFolder")) #end #if(!$UtilMethods.isSet($w)) #set ($width = "&w=100") #else #set ($width = "&w=${w}") #end #if(!$UtilMethods.isSet($h)) #set ($height = "&h=100") #else #set ($height = "&h=${h}") #end #if(!$UtilMethods.isSet($showVideoTitle)) #set($showVideoTitle = true) #end #if(!$UtilMethods.isSet($showVideoDescription)) #set($showVideoDescription = true) #end #if(!$UtilMethods.isSet($r)) #set($r = "") #else #set($r = "&r=${r}") #end #if(!$UtilMethods.isSet($g)) #set($g = "") #else #set($g = "&g=${g}") #end #if(!$UtilMethods.isSet($b)) #set($b = "") #else #set($b = "&b=${b}") #end #if($UtilMethods.isSet($indexFolder)) #set ($videos = $video.getVideoGalleryByPath("$indexFolder", "$host.identifier")) #if(!$UtilMethods.isSet($galleriesToShow)) #set($galleriesToShow = $videos.size()) #else #end #if($videos.size() > 0)
#foreach ($vid in $videos) #set($cssClass = "videoGalleryItem") #if($velocityCount == $videos.size()) #set($cssClass = "videoGalleryItem last") #end #set ($videoURI = $vid.URI) #set($imageFileList = $video.getVideoImages("$videoURI", "$host.identifier")) #set($imgInode = "") #foreach ($img in $imageFileList) #set ($imgIdentifier = $img.identifier) #end

#if($UtilMethods.isSet($imgIdentifier)) #end #if($showVideoTitle== true)${vid.title}#end #if($showVideoDescription== true)${vid.friendlyName}#end

#end
#if($galleriesToShow != $videos.size()) Previous Next #end #end #else No parameters given #end