ERROR

ERROR

Switch View
  1. <%
  2. local mySize = "large"
  3. local theRoot = "."
  4. local resolution = "";
  5. if (model.nonCSS.images_large.export) then resolution = "max" end
  6. if (model.nonCSS.images_medium.export and resolution == "") then resolution = "medium" end
  7. if (model.nonCSS.images_small and resolution == "") then resolution = "small" end
  8. local folder = "photos_" .. resolution
  9. %>
  10. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  11. "http://www.w3.org/TR/html4/loose.dtd">
  12. <html>
  13. <!-- This gallery has been generated using the 'Impact' Web Engine for Lightroom 2. See http://www.photographers-toolbox.com/ for more information -->
  14. <head>
  15. <title>$model.metadata.pageTitle.value</title>
  16. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  17. <meta name="description" content="$model.metadata.description.value">
  18. <meta name="viewport" content="user-scalable=no, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5">
  19. <link rel="stylesheet" type="text/css" media="screen" title="Custom Settings" href="$theRoot/resources/custom.css" >
  20. <link rel="stylesheet" type="text/css" media="screen" href="$theRoot/resources/mainstyles.css">
  21. <link media="only screen and (max-device-width: 480px)" href="$theRoot/resources/smallscreen.css" type= "text/css" rel="stylesheet">
  22. <!-- Redirect this static page to the Javascript version if scripting is now enabled -->
  23. <script type="text/javascript" src="$theRoot/resources/mootools-1.2.5-core-yc.js"></script>
  24. <script type="text/javascript" src="$theRoot/resources/mootools-1.2.5.1-more.js"></script>
  25. <script type="text/javascript"><!--
  26. var uri = new URI(window.location);
  27. var filename = uri.get('file');
  28. var imagename = filename.substring(0, filename.length - 5);
  29. window.location.replace("index.html#" + imagename);
  30. --></script>
  31. <style type="text/css">
  32. #prevbutton1 { border-color: #000000 #FFFFFF #000000 #000000 }
  33. #prevbutton2 { border-color: #FFFFFF #000000 #FFFFFF #000000 }
  34. #nextbutton1 { border-color: #FFFFFF #000000 #FFFFFF #000000 }
  35. #nextbutton2 { border-color: #000000 #000000 #000000 #FFFFFF }
  36. #playbutton1 { border-color: #000000 #000000 #000000 #FFFFFF }
  37. #playbutton2 { border-color: #FFFFFF }
  38. #pausebutton1 { border-color: #FFFFFF }
  39. #playbutton1 { border-color: <%= model.nonCSS.playbutton1borderColor %> }
  40. #playbutton2 { border-color: <%= model.nonCSS.playbutton2borderColor %> }
  41. #nextbutton1 { border-color: <%= model.nonCSS.nextbutton1borderColor %> }
  42. #nextbutton2 { border-color: <%= model.nonCSS.nextbutton2borderColor %> }
  43. #prevbutton1 { border-color: <%= model.nonCSS.prevbutton1borderColor %> }
  44. #prevbutton2 { border-color: <%= model.nonCSS.prevbutton2borderColor %> }
  45. #pausebutton1 { border-color: <%= model.nonCSS.pausebuttonBorderColor %> }
  46. </style>
  47. <!--[if lt IE 7]>
  48. <% if mode ~= 'preview' then %>
  49. <link href="$theRoot/pngfix.css" media="screen" rel="stylesheet" type="text/css" />
  50. <% end %>
  51. <![endif]-->
  52. </head>
  53. <body>
  54. <%
  55. local loadingdots='<div class="loading">'
  56. local n
  57. for n = 1, model.nonCSS.loadingdots.number do
  58. loadingdots = loadingdots .. "<span>·</span>"
  59. end
  60. loadingdots = loadingdots .. "</div>"
  61. %>
  62. <div id="beltcontainer">
  63. <%
  64. if model.nonCSS.fittingType == "width" then
  65. fitClass = "fithorizontal"
  66. elseif model.nonCSS.fittingType == "height" then
  67. fitClass = "fitvertical"
  68. else
  69. -- We scale based on the orientation of the photo.
  70. --
  71. -- To do that we need to find a resolution that was actually exported...
  72. image = getImage(index)
  73. if model.nonCSS.images_large.export then
  74. width = image.renditions.large.width
  75. height = image.renditions.large.height
  76. elseif model.nonCSS.images_medium.export then
  77. width = image.renditions.medium.width
  78. height = image.renditions.medium.height
  79. else
  80. width = image.renditions.small.width
  81. height = image.renditions.small.height
  82. end
  83. if width > height then
  84. fitClass = "fithorizontal"
  85. else
  86. fitClass = "fitvertical"
  87. end
  88. end
  89. local desc = '<div class="descriptionWrapperWrapper"><div class="descriptionWrapper">'
  90. if image.metadata.description and #image.metadata.description > 0 then
  91. someInfo = true
  92. desc = desc .. '<div class="description">' .. image.metadata.description .. '</div>'
  93. end
  94. desc = desc .. '</div></div>'
  95. %>
  96. <div class="beltobjectwrapper <%= fitClass %>">$desc<div class="beltobjectcenterer"><div class="beltobject"><img src="<%= folder .. "/" .. image.exportFilename %>.jpg" alt="$image.metadata.seoAltText"></div></div></div>
  97. </div>
  98. <% if model.nonCSS.displayIdentityPlate then
  99. if #model.nonCSS.identityPlateLink > 0 then %>
  100. <div id="logo"><a href="<%= model.nonCSS.identityPlateLink %>"><img src="$theRoot/resources/logo.png" alt=""></a></div>
  101. <% else %>
  102. <div id="logo"><img src="$theRoot/resources/logo.png"></div>
  103. <% end %>
  104. <% end %>
  105. <div id="menuwrapper"><div id="menu">
  106. <table cellspacing="0" cellpadding="0" border="0">
  107. <tr>
  108. <td class="menubarleftpadding"></td>
  109. <td>
  110. <ul id="menuitems" class="<%= model.nonCSS.menuitems.layout %>">
  111. <% if model.nonCSS.menuitems.one.included then %><li><a href="<%= model.nonCSS.menuitems.one.url %>"><%= model.nonCSS.menuitems.one.title %></a></li><% end %>
  112. <% if model.nonCSS.menuitems.two.included then %><li><a href="<%= model.nonCSS.menuitems.two.url %>"><%= model.nonCSS.menuitems.two.title %></a></li><% end %>
  113. <% if model.nonCSS.menuitems.three.included then %><li><a href="<%= model.nonCSS.menuitems.three.url %>"><%= model.nonCSS.menuitems.three.title %></a></li><% end %>
  114. <% if model.nonCSS.menuitems.four.included then %><li><a href="<%= model.nonCSS.menuitems.four.url %>"><%= model.nonCSS.menuitems.four.title %></a></li><% end %>
  115. <% if model.nonCSS.menuitems.five.included then %><li><a href="<%= model.nonCSS.menuitems.five.url %>"><%= model.nonCSS.menuitems.five.title %></a></li><% end %>
  116. <% if model.nonCSS.menuitems.six.included then %><li><a href="<%= model.nonCSS.menuitems.six.url %>"><%= model.nonCSS.menuitems.six.title %></a></li><% end %>
  117. </ul>
  118. </td>
  119. <% if model.nonCSS.controlsEnabled then %>
  120. <lr:Pagination>
  121. <lr:PreviousEnabled>
  122. <td class="control">
  123. <div class="controlContainer" id="prevbutton">
  124. <table cellspacing="0" cellpadding="0" border="0" align="center"><tr><td class="controlbit"><a href="$link" id="prevbutton1" class="slant"><!-- --></a></td><td class="controlbit"><a href="$link" id="prevbutton2" class="slant"><!-- --></a></td></tr></table>
  125. </div>
  126. </td>
  127. <td class="control"></td>
  128. </lr:PreviousEnabled>
  129. <lr:NextEnabled>
  130. <td class="control">
  131. <div class="controlContainer" id="nextbutton">
  132. <table cellspacing="0" cellpadding="0" border="0" align="center"><tr><td class="controlbit"><a href="$link" id="nextbutton1"class="slant"><!-- --></a></td><td class="controlbit"><a href="$link" id="nextbutton2" class="slant"><!-- --></a></td></tr></table>
  133. </div>
  134. </td>
  135. <td class="menubarrightpadding"></td>
  136. </lr:NextEnabled>
  137. </lr:Pagination>
  138. <% end %>
  139. </tr>
  140. </table>
  141. </div></div>
  142. <% if model.nonCSS.dots.enabled then %>
  143. <div id="dotswrapper"><div id="dots"><% for d = 1, numImages do %><a <% if d == index then write('class="selected"') end %> <% if d == 1 then write('class="first"') end %> href="<%= getImage(d).exportFilename %>.html"><% if model.nonCSS.dots.type == "squares" then write("" .. d) else write ('·') end%></a><% end %></div></div>
  144. <% end %>
  145. <script type="text/javascript"><!--
  146. document.write('<div id="pr1"><img src="resources/blank.gif"></div>');
  147. document.write('<div id="pr2"></div>');
  148. --></script>
  149. <noscript>
  150. <%
  151. img = '<img src="resources/blank.gif">'
  152. i = index + 1
  153. if i > numImages then i = 1 end
  154. if model.nonCSS.clickBehaviour == "advance" then
  155. img = '<a href="' .. getImage(i).exportFilename .. '.html">' .. img .. '</a>'
  156. elseif model.nonCSS.clickBehaviour == "url" then
  157. img = '<a href="' .. model.nonCSS.clickURL .. '">' .. img .. '</a>'
  158. end
  159. %>
  160. <div id="pr1"><%= img %></div>
  161. </noscript>
  162. <% --[[ Include the page footer]] %>
  163. </body>
  164. </html>