ERREUR

ERREUR

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