ERROR
ERROR
Switch View
- <%
- local mySize = "large"
- local theRoot = "."
-
- local resolution = "";
- if (model.nonCSS.images_large.export) then resolution = "max" end
- if (model.nonCSS.images_medium.export and resolution == "") then resolution = "medium" end
- if (model.nonCSS.images_small and resolution == "") then resolution = "small" end
-
- local folder = "photos_" .. resolution
-
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <!-- This gallery has been generated using the 'Impact' Web Engine for Lightroom 2. See http://www.photographers-toolbox.com/ for more information -->
- <head>
-
-
- <title>$model.metadata.pageTitle.value</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="description" content="$model.metadata.description.value">
- <meta name="viewport" content="user-scalable=no, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5">
- <link rel="stylesheet" type="text/css" media="screen" title="Custom Settings" href="$theRoot/resources/custom.css" >
- <link rel="stylesheet" type="text/css" media="screen" href="$theRoot/resources/mainstyles.css">
- <link media="only screen and (max-device-width: 480px)" href="$theRoot/resources/smallscreen.css" type= "text/css" rel="stylesheet">
- <!-- Redirect this static page to the Javascript version if scripting is now enabled -->
-
- <script type="text/javascript" src="$theRoot/resources/mootools-1.2.5-core-yc.js"></script>
- <script type="text/javascript" src="$theRoot/resources/mootools-1.2.5.1-more.js"></script>
- <script type="text/javascript"><!--
-
- var uri = new URI(window.location);
- var filename = uri.get('file');
- var imagename = filename.substring(0, filename.length - 5);
- window.location.replace("index.html#" + imagename);
-
- --></script>
- <style type="text/css">
- #prevbutton1 { border-color: #000000 #FFFFFF #000000 #000000 }
- #prevbutton2 { border-color: #FFFFFF #000000 #FFFFFF #000000 }
- #nextbutton1 { border-color: #FFFFFF #000000 #FFFFFF #000000 }
- #nextbutton2 { border-color: #000000 #000000 #000000 #FFFFFF }
-
- #playbutton1 { border-color: #000000 #000000 #000000 #FFFFFF }
- #playbutton2 { border-color: #FFFFFF }
- #pausebutton1 { border-color: #FFFFFF }
- #playbutton1 { border-color: <%= model.nonCSS.playbutton1borderColor %> }
- #playbutton2 { border-color: <%= model.nonCSS.playbutton2borderColor %> }
- #nextbutton1 { border-color: <%= model.nonCSS.nextbutton1borderColor %> }
- #nextbutton2 { border-color: <%= model.nonCSS.nextbutton2borderColor %> }
- #prevbutton1 { border-color: <%= model.nonCSS.prevbutton1borderColor %> }
- #prevbutton2 { border-color: <%= model.nonCSS.prevbutton2borderColor %> }
- #pausebutton1 { border-color: <%= model.nonCSS.pausebuttonBorderColor %> }
- </style>
- <!--[if lt IE 7]>
- <% if mode ~= 'preview' then %>
- <link href="$theRoot/pngfix.css" media="screen" rel="stylesheet" type="text/css" />
- <% end %>
- <![endif]-->
-
- </head>
- <body>
- <%
- local loadingdots='<div class="loading">'
- local n
- for n = 1, model.nonCSS.loadingdots.number do
- loadingdots = loadingdots .. "<span>·</span>"
- end
- loadingdots = loadingdots .. "</div>"
- %>
- <div id="beltcontainer">
- <%
- if model.nonCSS.fittingType == "width" then
- fitClass = "fithorizontal"
- elseif model.nonCSS.fittingType == "height" then
- fitClass = "fitvertical"
- else
- -- We scale based on the orientation of the photo.
- --
- -- To do that we need to find a resolution that was actually exported...
-
- image = getImage(index)
- if model.nonCSS.images_large.export then
- width = image.renditions.large.width
- height = image.renditions.large.height
- elseif model.nonCSS.images_medium.export then
- width = image.renditions.medium.width
- height = image.renditions.medium.height
- else
- width = image.renditions.small.width
- height = image.renditions.small.height
- end
-
- if width > height then
- fitClass = "fithorizontal"
- else
- fitClass = "fitvertical"
- end
-
- end
-
- local desc = '<div class="descriptionWrapperWrapper"><div class="descriptionWrapper">'
- if image.metadata.description and #image.metadata.description > 0 then
- someInfo = true
- desc = desc .. '<div class="description">' .. image.metadata.description .. '</div>'
- end
- desc = desc .. '</div></div>'
- %>
- <div class="beltobjectwrapper <%= fitClass %>">$desc<div class="beltobjectcenterer"><div class="beltobject"><img src="<%= folder .. "/" .. image.exportFilename %>.jpg" alt="$image.metadata.seoAltText"></div></div></div>
- </div>
- <% if model.nonCSS.displayIdentityPlate then
- if #model.nonCSS.identityPlateLink > 0 then %>
- <div id="logo"><a href="<%= model.nonCSS.identityPlateLink %>"><img src="$theRoot/resources/logo.png" alt=""></a></div>
- <% else %>
- <div id="logo"><img src="$theRoot/resources/logo.png"></div>
- <% end %>
- <% end %>
-
- <div id="menuwrapper"><div id="menu">
- <table cellspacing="0" cellpadding="0" border="0">
- <tr>
- <td class="menubarleftpadding"></td>
- <td>
- <ul id="menuitems" class="<%= model.nonCSS.menuitems.layout %>">
- <% if model.nonCSS.menuitems.one.included then %><li><a href="<%= model.nonCSS.menuitems.one.url %>"><%= model.nonCSS.menuitems.one.title %></a></li><% end %>
- <% if model.nonCSS.menuitems.two.included then %><li><a href="<%= model.nonCSS.menuitems.two.url %>"><%= model.nonCSS.menuitems.two.title %></a></li><% end %>
- <% if model.nonCSS.menuitems.three.included then %><li><a href="<%= model.nonCSS.menuitems.three.url %>"><%= model.nonCSS.menuitems.three.title %></a></li><% end %>
- <% if model.nonCSS.menuitems.four.included then %><li><a href="<%= model.nonCSS.menuitems.four.url %>"><%= model.nonCSS.menuitems.four.title %></a></li><% end %>
- <% if model.nonCSS.menuitems.five.included then %><li><a href="<%= model.nonCSS.menuitems.five.url %>"><%= model.nonCSS.menuitems.five.title %></a></li><% end %>
- <% if model.nonCSS.menuitems.six.included then %><li><a href="<%= model.nonCSS.menuitems.six.url %>"><%= model.nonCSS.menuitems.six.title %></a></li><% end %>
- </ul>
- </td>
-
- <% if model.nonCSS.controlsEnabled then %>
- <lr:Pagination>
- <lr:PreviousEnabled>
- <td class="control">
- <div class="controlContainer" id="prevbutton">
- <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>
- </div>
- </td>
- <td class="control"></td>
- </lr:PreviousEnabled>
- <lr:NextEnabled>
- <td class="control">
- <div class="controlContainer" id="nextbutton">
- <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>
- </div>
- </td>
- <td class="menubarrightpadding"></td>
- </lr:NextEnabled>
- </lr:Pagination>
- <% end %>
- </tr>
- </table>
- </div></div>
-
- <% if model.nonCSS.dots.enabled then %>
- <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>
- <% end %>
-
- <script type="text/javascript"><!--
- document.write('<div id="pr1"><img src="resources/blank.gif"></div>');
- document.write('<div id="pr2"></div>');
- --></script>
-
- <noscript>
- <%
- img = '<img src="resources/blank.gif">'
- i = index + 1
- if i > numImages then i = 1 end
- if model.nonCSS.clickBehaviour == "advance" then
- img = '<a href="' .. getImage(i).exportFilename .. '.html">' .. img .. '</a>'
- elseif model.nonCSS.clickBehaviour == "url" then
- img = '<a href="' .. model.nonCSS.clickURL .. '">' .. img .. '</a>'
- end
- %>
-
- <div id="pr1"><%= img %></div>
- </noscript>
-
- <% --[[ Include the page footer]] %>
- </body>
- </html>
-
- local mySize = "large"
- local theRoot = "."
-
- local resolution = "";
- if (model.nonCSS.images_large.export) then resolution = "max" end
- if (model.nonCSS.images_medium.export and resolution == "") then resolution = "medium" end
- if (model.nonCSS.images_small and resolution == "") then resolution = "small" end
-
- local folder = "photos_" .. resolution
-
- write( [[
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <!-- This gallery has been generated using the 'Impact' Web Engine for Lightroom 2. See http://www.photographers-toolbox.com/ for more information -->
- <head>
-
-
- <title>]] )write( model.metadata.pageTitle.value )write( [[</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="description" content="]] )write( model.metadata.description.value )write( [[">
- <meta name="viewport" content="user-scalable=no, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5">
- <link rel="stylesheet" type="text/css" media="screen" title="Custom Settings" href="]] )write( theRoot )write( [[/resources/custom.css" >
- <link rel="stylesheet" type="text/css" media="screen" href="]] )write( theRoot )write( [[/resources/mainstyles.css">
- <link media="only screen and (max-device-width: 480px)" href="]] )write( theRoot )write( [[/resources/smallscreen.css" type= "text/css" rel="stylesheet">
- <!-- Redirect this static page to the Javascript version if scripting is now enabled -->
-
- <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/mootools-1.2.5-core-yc.js"></script>
- <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/mootools-1.2.5.1-more.js"></script>
- <script type="text/javascript"><!--
-
- var uri = new URI(window.location);
- var filename = uri.get('file');
- var imagename = filename.substring(0, filename.length - 5);
- window.location.replace("index.html#" + imagename);
-
- --></script>
- <style type="text/css">
- #prevbutton1 { border-color: #000000 #FFFFFF #000000 #000000 }
- #prevbutton2 { border-color: #FFFFFF #000000 #FFFFFF #000000 }
- #nextbutton1 { border-color: #FFFFFF #000000 #FFFFFF #000000 }
- #nextbutton2 { border-color: #000000 #000000 #000000 #FFFFFF }
-
- #playbutton1 { border-color: #000000 #000000 #000000 #FFFFFF }
- #playbutton2 { border-color: #FFFFFF }
- #pausebutton1 { border-color: #FFFFFF }
- #playbutton1 { border-color: ]] )write( model.nonCSS.playbutton1borderColor )write( [[ }
- #playbutton2 { border-color: ]] )write( model.nonCSS.playbutton2borderColor )write( [[ }
- #nextbutton1 { border-color: ]] )write( model.nonCSS.nextbutton1borderColor )write( [[ }
- #nextbutton2 { border-color: ]] )write( model.nonCSS.nextbutton2borderColor )write( [[ }
- #prevbutton1 { border-color: ]] )write( model.nonCSS.prevbutton1borderColor )write( [[ }
- #prevbutton2 { border-color: ]] )write( model.nonCSS.prevbutton2borderColor )write( [[ }
- #pausebutton1 { border-color: ]] )write( model.nonCSS.pausebuttonBorderColor )write( [[ }
- </style>
- <!--]] .. "[" .. [[if lt IE 7]] .. "]" .. [[>
- ]] ) if mode ~= 'preview' then write( [[
- <link href="]] )write( theRoot )write( [[/pngfix.css" media="screen" rel="stylesheet" type="text/css" />
- ]] ) end write( [[
- <!]] .. "[" .. [[endif]] .. "]" .. [[-->
-
- </head>
- <body>
- ]] )
- local loadingdots='<div class="loading">'
- local n
- for n = 1, model.nonCSS.loadingdots.number do
- loadingdots = loadingdots .. "<span>·</span>"
- end
- loadingdots = loadingdots .. "</div>"
- write( [[
- <div id="beltcontainer">
- ]] )
- if model.nonCSS.fittingType == "width" then
- fitClass = "fithorizontal"
- elseif model.nonCSS.fittingType == "height" then
- fitClass = "fitvertical"
- else
- -- We scale based on the orientation of the photo.
- --
- -- To do that we need to find a resolution that was actually exported...
-
- image = getImage(index)
- if model.nonCSS.images_large.export then
- width = image.renditions.large.width
- height = image.renditions.large.height
- elseif model.nonCSS.images_medium.export then
- width = image.renditions.medium.width
- height = image.renditions.medium.height
- else
- width = image.renditions.small.width
- height = image.renditions.small.height
- end
-
- if width > height then
- fitClass = "fithorizontal"
- else
- fitClass = "fitvertical"
- end
-
- end
-
- local desc = '<div class="descriptionWrapperWrapper"><div class="descriptionWrapper">'
- if image.metadata.description and #image.metadata.description > 0 then
- someInfo = true
- desc = desc .. '<div class="description">' .. image.metadata.description .. '</div>'
- end
- desc = desc .. '</div></div>'
- write( [[
- <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>
- </div>
- ]] ) if model.nonCSS.displayIdentityPlate then
- if #model.nonCSS.identityPlateLink > 0 then write( [[
- <div id="logo"><a href="]] )write( model.nonCSS.identityPlateLink )write( [["><img src="]] )write( theRoot )write( [[/resources/logo.png" alt=""></a></div>
- ]] ) else write( [[
- <div id="logo"><img src="]] )write( theRoot )write( [[/resources/logo.png"></div>
- ]] ) end write( [[
- ]] ) end write( [[
-
- <div id="menuwrapper"><div id="menu">
- <table cellspacing="0" cellpadding="0" border="0">
- <tr>
- <td class="menubarleftpadding"></td>
- <td>
- <ul id="menuitems" class="]] )write( model.nonCSS.menuitems.layout )write( [[">
- ]] ) 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( [[
- ]] ) 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( [[
- ]] ) 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( [[
- ]] ) 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( [[
- ]] ) 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( [[
- ]] ) 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( [[
- </ul>
- </td>
-
- ]] ) if model.nonCSS.controlsEnabled then write( [[
- ]] ) do local LrPaginationEntries = {}
- local oldWrite = write
- write = function( w )
- table.insert( LrPaginationEntries, function() oldWrite( w ) end )
- end
- write( [[
- ]] )LrPaginationEntries.PreviousEnabled = function( page, link ) write( [[
- <td class="control">
- <div class="controlContainer" id="prevbutton">
- <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>
- </div>
- </td>
- <td class="control"></td>
- ]] )end table.insert( LrPaginationEntries, 'Previous' ) write( [[
- ]] )LrPaginationEntries.NextEnabled = function( page, link ) write( [[
- <td class="control">
- <div class="controlContainer" id="nextbutton">
- <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>
- </div>
- </td>
- <td class="menubarrightpadding"></td>
- ]] )end table.insert( LrPaginationEntries, 'Next' ) write( [[
- ]] )write = oldWrite LrTagFuncs.PaginationFunc( _G, LrPaginationEntries ) end write( [[
- ]] ) end write( [[
- </tr>
- </table>
- </div></div>
-
- ]] ) if model.nonCSS.dots.enabled then write( [[
- <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>
- ]] ) end write( [[
-
- <script type="text/javascript"><!--
- document.write('<div id="pr1"><img src="resources/blank.gif"></div>');
- document.write('<div id="pr2"></div>');
- --></script>
-
- <noscript>
- ]] )
- img = '<img src="resources/blank.gif">'
- i = index + 1
- if i > numImages then i = 1 end
- if model.nonCSS.clickBehaviour == "advance" then
- img = '<a href="' .. getImage(i).exportFilename .. '.html">' .. img .. '</a>'
- elseif model.nonCSS.clickBehaviour == "url" then
- img = '<a href="' .. model.nonCSS.clickURL .. '">' .. img .. '</a>'
- end
- write( [[
-
- <div id="pr1">]] )write( img )write( [[</div>
- </noscript>
-
- ]] ) --[[ Include the page footer]] write( [[
- </body>
- </html>
- ]] )