<% --[[ Define some variables to make locating other resources easier firstPage was defined in our manifest.]] local image = getImage( index ) local theRoot = ".." local others = "." local misc = "../resources/misc" local indexPage = "../index.html" local mySize = "large" local z = 10*math.floor(model.photoSizes.large.maxWidth/model.photoSizes.large.maxHeight) %> <% --[[ Include the page header]] %> <%@ include file="head.html" %> <% --[[ The main HTML page begins here ]] %> <% local function fixUrlIfRelative( url ) url = tostring( url ) or "" if string.find( url, "[a-z]+:" ) then -- this url starts with something like http: or mailto:, so leave it alone else -- this url is probably relative, so we need to tack on theRoot to the beginning -- of it, so no matter where the page we're currently viewing is placed in the -- output hierarchy, this link will still point to the same page url = theRoot .. "/" .. url; end return url end %>
<% --[[ Page header titles ]] %> <% local siteURL = fixUrlIfRelative( model.metadata.siteLink.value ) %>

$model.metadata.siteTitle.value $model.metadata.collectionTitle.value  

<% --[[ Pagination section ]] %>
<% --[[ can not have spaces here below since that will cause a space/border between images ]] %> PreviousPreviousIndex page<% if index >= z then %>Next<% else %>Next<% end %> Next
<% --[[ Main full frame area ]] %>
$index($numImages)
<% --[[ Calculate left margin for the image, then position the element manually ]] local imageBorderWidth = 0 local imgWidth = image.renditions.large.width local imgHeight = image.renditions.large.height if model.nonCSS.showImageBorderLarge then imageBorderWidth = model.nonCSS.imageBorderWidth end local imagePlusBorderDefinedWith = 2 * imageBorderWidth + model.photoSizes.large.width + 30 local previewX = math.floor( math.max( 15, ( imagePlusBorderDefinedWith - imgWidth ) / 2 ) ) - imageBorderWidth --[[ fullFrameImage holds class names for . IE6 & IE7 should invoke a special filter for shadows ]] local fullFrameImage = "fullFrameImage" if model.nonCSS.dropShadows then fullFrameImage = "fullFrameImage shadowIE67" -- class shadowIE67 used to invoke a filter in css for ie6, ie7 end %> <% --[[ need lr:Pagination stuff here in order to capture enabled/disabled ]] %>
<% local pathToANode="parentNode.parentNode" if model.nonCSS.dropShadows then pathToANode = "parentNode.parentNode.parentNode.parentNode" %> <% end %>
<% --[[ Captions ]] %>
$image.metadata.title
$image.metadata.caption
$image.metadata.description
<% --[[ End of Main full frame area ]] %>