%~init array photos_loop%> <%~set index = 0%> <%~loop 1 .. 20%> <%~set image_path = Plugins::UI::retrieve_param("Image_largest_path", $loop_value)%> <%~set image_caption = Plugins::UI::retrieve_param('Image_description', $loop_value)%> <%~set thumbnail_path = Plugins::UI::retrieve_param("Image_thumbnail_path", $loop_value)%> <%~if image_path%> <%~init hash image%><%set image.path = $image_path%><%set image.caption = $image_caption%><%set image.thumb = $thumbnail_path%> <%~set photos_loop.$index = $image%> <%~set index += 1%> <%~endif%> <%~endloop%>