<% if CurrentGalleryItems %>
<% control PrevGalleryItems %> rel="$JSMedia"<% end_if %> href="$ViewLink" title="$Title" caption="<% if Content %>$Content - <% end_if %><% if HasDimensions %>$Width x $Height - <% end_if %>$Size"<% if PopupParams %> params="$PopupParams"<% end_if %>/> <% end_control %>

$AlbumTitle

<% if AdminGallery %> <% include AdminGallery %> <% else %> <% include UserGallery %> <% end_if %>
<% control NextGalleryItems %> rel="$JSMedia"<% end_if %> href="$ViewLink" title="$Title" caption="<% if Content %>$Content - <% end_if %><% if HasDimensions %>$Width x $Height - <% end_if %>$Size"<% if PopupParams %> params="$PopupParams"<% end_if %>/> <% end_control %>
<% if MediaPerPageLimit %> <% if CurrentGalleryItems.MoreThanOnePage %> <% end_if %> <% end_if %>
<% end_if %>