<%~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%>
<%~loop photos_loop%>
<%row_num%> of <%photos_loop.length%> photo<%if photos_loop.length > 1%>s<%endif%>
<%~if $photos_loop.length%>
<
>
<%~endif%>
<%caption || ''%>
<%~endloop%>
<%~if photos_loop.length%>
PREV
NEXT
1 of <%photos_loop.length%> photo<%if photos_loop.length > 1%>s<%endif%>
<%~loop photos_loop%>
<%~endloop%>
>
<
<%~endif%>