<% --[[ Variables to make locating other resources easier:]] local others = "content" local theRoot = "." local misc = "./resources/misc" local mySize = "thumb" %> <% --[[ 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  

<% --[[ Include the identity plate during preview to enable quick live update ]] %> <% local includeIdentityPlate = mode == 'preview' or model.appearance.logo.display if includeIdentityPlate then local contactURL = fixUrlIfRelative( model.metadata.idPlate.link ) %> <% end --[[ End conditionalize identity plate ]] %> <% --[[ Collection description ]] %>

$model.metadata.collectionDescription.value

<% --[[ Start slideshow ]] %>
Start
<% --[[ Main grid area ]] %> <% --[[ thumbImage holds class names for . IE6 & IE7 should invoke a special filter for shadows ]] local thumbImage = "thumbImage" if model.nonCSS.dropShadows then thumbImage = "thumbImage shadowIE67" -- class shadowIE67 used to invoke a filter in css for ie6, ie7 end %>
$cellIndex
<% if model.nonCSS.dropShadows then %>
<% end %> <% if model.nonCSS.dropShadows then %>
<% end %>
<% --[[ Contact Info ]] %> <% local contactURL = fixUrlIfRelative( model.metadata.contactInfo.link ) %> <% local contactURLPlugin = fixUrlIfRelative( model.metadata.contactInfoPlugin.link ) %>

$model.metadata.contactInfo.value
$model.metadata.contactInfoPlugin.value