?:0: attempt to index a nil value

?:0: attempt to index a nil value

Switch View
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head><title>$model.nonCSS.pageTitle</title>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-16" />
  5. <meta name="Keywords" content="$model.nonCSS.metaKeys" >
  6. <meta name="Description" content="$model.nonCSS.metaDesc" />
  7. <meta name="generator" content="LRB Portfolio plugin for Adobe Photoshop Lightroom">
  8. <link rel="stylesheet" type="text/css" media="screen" href="content/custom.css" />
  9. <link rel="stylesheet" type="text/css" href="gallerystyle.css" />
  10. <style type="text/css"> #scroll { overflow:auto; padding:5px 0px 5px 0px; } </style><style type="text/css"><% if model.nonCSS.usebodyWidth then %>body{width: $model.nonCSS.fullbodyWidth;}<% else %><% end %> </style>
  11. <!--[if IE]><style type="text/css"> #scroll { overflow:visible; overflow-x:auto; overflow-y:hidden; padding-bottom:18px; padding-top:5px;} </style><![endif]-->
  12. <!--[if lt IE 7.]> <script defer type="text/javascript" src="resources/js/pngfix.js"></script> <![endif]-->
  13. <% if model.nonCSS.IE8Code then %><!--[if lt IE 8]>
  14. <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
  15. <![endif]--><%else%><%end%>
  16. <script type="text/javascript">
  17. window.AgMode = "$mode";
  18. <% if mode == 'preview' then %>
  19. window.AgOnLoad = function() {
  20. tellLightroomWhatImagesWeAreUsing();
  21. setActiveImageSize( "<%= mySize %>" );
  22. <% if image then %>
  23. callCallback( "showInPhotoBin", "$image.imageID" );
  24. <% end %>
  25. }
  26. <% end %>
  27. </script>
  28. <script type="text/javascript" src="resources/js/live_update.js">
  29. </script>
  30. <% if model.nonCSS.rightClickDisable then %><script language=JavaScript>
  31. <!--
  32. //Disable right click script III- By Renigade (renigade@mediaone.net)
  33. //For full source code, visit http://www.dynamicdrive.com
  34. var message="";
  35. ///////////////////////////////////
  36. function clickIE() {if (document.all) {(message);return false;}}
  37. function clickNS(e) {if
  38. (document.layers||(document.getElementById&&!document.all)) {
  39. if (e.which==2||e.which==3) {(message);return false;}}}
  40. if (document.layers)
  41. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  42. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  43. document.oncontextmenu=new Function("return false")
  44. // -->
  45. </script>
  46. <%else%><%end%>
  47. <!-- Do not edit IE conditional style below -->
  48. <!--[if gte IE 5.5]>
  49. <style type="text/css">
  50. #motioncontainer {
  51. width:expression(Math.min(this.offsetWidth, maxwidth)+'px');
  52. }
  53. </style>
  54. <![endif]-->
  55. <!-- End Conditional Style -->
  56. <script type="text/javascript" src="resources/js/motiongallery.js">
  57. /***********************************************
  58. * CMotion Image Gallery- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
  59. * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
  60. * This notice must stay intact for legal use
  61. * Modified by Jschuer1 for autowidth and optional starting positions
  62. ***********************************************/
  63. </script>
  64. </head>
  65. <%
  66. --[[ Define some variables to make locating other resources easier
  67. firstPage was defined in our manifest.]]
  68. local imageNumber=math.max(model.nonCSS.contactImage)
  69. local others = "content"
  70. local theRoot = "."
  71. local mySize = "large"
  72. %>
  73. <body>
  74. <%
  75. local function fixUrlIfRelative( url )
  76. url = tostring( url ) or ""
  77. if string.find( url, "[a-z]+:" ) then
  78. -- this url starts with something like http: or mailto:, so leave it alone
  79. else
  80. -- this url is probably relative, so we need to tack on theRoot to the beginning
  81. -- of it, so no matter where the page we're currently viewing is placed in the
  82. -- output hierarchy, this link will still point to the same page
  83. url = theRoot .. "/" .. url;
  84. end
  85. return url
  86. end
  87. --[[ Include the identity plate during preview to enable quick live update ]]
  88. local includeIdentityPlate = mode == 'preview' or model.appearance.logo.display
  89. if includeIdentityPlate then
  90. local url = fixUrlIfRelative( model.metadata.homePage.value )
  91. %>
  92. <div id="model.nonCSS.idplateEnabled">
  93. <div class="logo"> <a href="$url"> <img width="<%= getIdentityPlateSize().width %>" height="<%= getIdentityPlateSize().height %>" class="pngDelayDisplay" src="$others/logo.png" alt="Logo"> </a> </div>
  94. </div>
  95. <%
  96. end --[[ End conditionalize identity plate ]]
  97. %>
  98. <div id="aboutwrap">
  99. <div id="about">
  100. <% if model.nonCSS.useForm then %>
  101. <form action="mail.php" method="POST">
  102. <p><strong>Your Email Address</strong><br>
  103. <input type="text" name="email" size=40>
  104. <input type="hidden" name="recipient" value="$model.metadata.contactInfo.link">
  105. <p><strong>Your Name</strong><br>
  106. <input type="text" name="from" size=40>
  107. <p><strong>Subject</strong><br>
  108. <input type="text" name="subject" size=40>
  109. <p><strong>Comments</strong><br>
  110. <textarea cols=40 rows=6 name="message"></textarea>
  111. <p><input type="submit" value=" Send "></form>
  112. <% else %><% end %>
  113. <% if model.nonCSS.useContact then %>
  114. <% if model.nonCSS.useContactName then %><% if not model.nonCSS.useContactNameLink then %>
  115. <strong>Contact</strong>: <span onclick="clickTarget( this, 'metadata.contactInfo.value' );" id="metadata.contactInfo.value" class="textColor">$model.metadata.contactInfo.value</span><br /><% elseif model.nonCSS.useContactNameLink then %><strong>Contact</strong>: <a onclick="clickTarget( this, 'metadata.contactInfo.link' );" id="metadata.contactInfo.link" href="$model.metadata.contactInfo.link"><span onclick="clickTarget( this, 'metadata.contactInfo.value' );" id="metadata.contactInfo.value" class="textColor">$model.metadata.contactInfo.value</span></a><br /><% else %><% end %><% else %><% end %>
  116. <% if model.nonCSS.useEmail then %>
  117. <strong>Email</strong>: $model.nonCSS.email<br />
  118. <% else %><% end %>
  119. <% if model.nonCSS.usePhone then %>
  120. <strong>Phone</strong>: $model.nonCSS.phone<br />
  121. <% else %><% end %>
  122. <% if model.nonCSS.useMobile then %>
  123. <strong>Mobile/Cell</strong>: $model.nonCSS.mobile<br />
  124. <% else %><% end %>
  125. <% if model.nonCSS.useFax then %>
  126. <strong>Fax</strong>: $model.nonCSS.fax<br />
  127. <% else %><% end %>
  128. <% if model.nonCSS.useMyspace then %>
  129. <strong>MySpace</strong>: <a href="$model.nonCSS.Myspace">$model.nonCSS.Myspace</a><br />
  130. <% else %><% end %>
  131. <% if model.nonCSS.useFacebook then %>
  132. <strong>Facebook</strong>: <a href="$model.nonCSS.Facbook">$model.nonCSS.Facebook</a><br />
  133. <% else %><% end %>
  134. <% if model.nonCSS.useTwitter then %>
  135. <strong>Twitter</strong>: <a href="$model.nonCSS.Twitter">$model.nonCSS.Twitter</a><br />
  136. <% else %><% end %>
  137. <% if model.nonCSS.useblankCon then %>
  138. <strong>$model.nonCSS.blankConTitle</strong>: <% if model.nonCSS.useblankConLink then %><a href="$model.nonCSS.blankCon">$model.nonCSS.blankCon</a><% else %>$model.nonCSS.blankCon<% end %><br />
  139. <% else %><% end %>
  140. <% if model.nonCSS.useAddress then %>
  141. <strong>Address</strong>: $model.nonCSS.address<br />
  142. <% else %><% end %>
  143. <% else %><% end %>
  144. </div><div id="aboutleft"><% if model.nonCSS.usecontactText then %><p onclick="clickTarget (this, 'nonCSS.contactText');" id="nonCSS.contactText" class="textColor">$model.nonCSS.contactText</p><% else %><img src="large/<%= getImage(imageNumber).exportFilename %>.jpg" alt="<%= getImage( imageNumber ).metadata.title %>" title="<%= getImage( imageNumber ).metadata.title %>" /><% end %></div>
  145. </div>
  146. <div id="lrb"></div>
  147. <% includeFile ('menu.html') %>
  148. <% includeFile ('foot.html') %>
  1. write( [[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head><title>]] )write( model.nonCSS.pageTitle )write( [[</title>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-16" />
  5. <meta name="Keywords" content="]] )write( model.nonCSS.metaKeys )write( [[" >
  6. <meta name="Description" content="]] )write( model.nonCSS.metaDesc )write( [[" />
  7. <meta name="generator" content="LRB Portfolio plugin for Adobe Photoshop Lightroom">
  8. <link rel="stylesheet" type="text/css" media="screen" href="content/custom.css" />
  9. <link rel="stylesheet" type="text/css" href="gallerystyle.css" />
  10. <style type="text/css"> #scroll { overflow:auto; padding:5px 0px 5px 0px; } </style><style type="text/css">]] ) if model.nonCSS.usebodyWidth then write( [[body{width: ]] )write( model.nonCSS.fullbodyWidth )write( [[;}]] ) else end write( [[ </style>
  11. <!--]] .. "[" .. [[if IE]] .. "]" .. [[><style type="text/css"> #scroll { overflow:visible; overflow-x:auto; overflow-y:hidden; padding-bottom:18px; padding-top:5px;} </style><!]] .. "[" .. [[endif]] .. "]" .. [[-->
  12. <!--]] .. "[" .. [[if lt IE 7.]] .. "]" .. [[> <script defer type="text/javascript" src="resources/js/pngfix.js"></script> <!]] .. "[" .. [[endif]] .. "]" .. [[-->
  13. ]] ) if model.nonCSS.IE8Code then write( [[<!--]] .. "[" .. [[if lt IE 8]] .. "]" .. [[>
  14. <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
  15. <!]] .. "[" .. [[endif]] .. "]" .. [[-->]] ) else end write( [[
  16. <script type="text/javascript">
  17. window.AgMode = "]] )write( mode )write( [[";
  18. ]] ) if mode == 'preview' then write( [[
  19. window.AgOnLoad = function() {
  20. tellLightroomWhatImagesWeAreUsing();
  21. setActiveImageSize( "]] )write( mySize )write( [[" );
  22. ]] ) if image then write( [[
  23. callCallback( "showInPhotoBin", "]] )write( image.imageID )write( [[" );
  24. ]] ) end write( [[
  25. }
  26. ]] ) end write( [[
  27. </script>
  28. <script type="text/javascript" src="resources/js/live_update.js">
  29. </script>
  30. ]] ) if model.nonCSS.rightClickDisable then write( [[<script language=JavaScript>
  31. <!--
  32. //Disable right click script III- By Renigade (renigade@mediaone.net)
  33. //For full source code, visit http://www.dynamicdrive.com
  34. var message="";
  35. ///////////////////////////////////
  36. function clickIE() {if (document.all) {(message);return false;}}
  37. function clickNS(e) {if
  38. (document.layers||(document.getElementById&&!document.all)) {
  39. if (e.which==2||e.which==3) {(message);return false;}}}
  40. if (document.layers)
  41. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  42. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  43. document.oncontextmenu=new Function("return false")
  44. // -->
  45. </script>
  46. ]] ) else end write( [[
  47. <!-- Do not edit IE conditional style below -->
  48. <!--]] .. "[" .. [[if gte IE 5.5]] .. "]" .. [[>
  49. <style type="text/css">
  50. #motioncontainer {
  51. width:expression(Math.min(this.offsetWidth, maxwidth)+'px');
  52. }
  53. </style>
  54. <!]] .. "[" .. [[endif]] .. "]" .. [[-->
  55. <!-- End Conditional Style -->
  56. <script type="text/javascript" src="resources/js/motiongallery.js">
  57. /***********************************************
  58. * CMotion Image Gallery- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
  59. * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
  60. * This notice must stay intact for legal use
  61. * Modified by Jschuer1 for autowidth and optional starting positions
  62. ***********************************************/
  63. </script>
  64. </head>
  65. ]] )
  66. --[[ Define some variables to make locating other resources easier
  67. firstPage was defined in our manifest.]]
  68. local imageNumber=math.max(model.nonCSS.contactImage)
  69. local others = "content"
  70. local theRoot = "."
  71. local mySize = "large"
  72. write( [[
  73. <body>
  74. ]] )
  75. local function fixUrlIfRelative( url )
  76. url = tostring( url ) or ""
  77. if string.find( url, "[a-z]+:" ) then
  78. -- this url starts with something like http: or mailto:, so leave it alone
  79. else
  80. -- this url is probably relative, so we need to tack on theRoot to the beginning
  81. -- of it, so no matter where the page we're currently viewing is placed in the
  82. -- output hierarchy, this link will still point to the same page
  83. url = theRoot .. "/" .. url;
  84. end
  85. return url
  86. end
  87. --[[ Include the identity plate during preview to enable quick live update ]]
  88. local includeIdentityPlate = mode == 'preview' or model.appearance.logo.display
  89. if includeIdentityPlate then
  90. local url = fixUrlIfRelative( model.metadata.homePage.value )
  91. write( [[
  92. <div id="model.nonCSS.idplateEnabled">
  93. <div class="logo"> <a href="]] )write( url )write( [["> <img width="]] )write( getIdentityPlateSize().width )write( [[" height="]] )write( getIdentityPlateSize().height )write( [[" class="pngDelayDisplay" src="]] )write( others )write( [[/logo.png" alt="Logo"> </a> </div>
  94. </div>
  95. ]] )
  96. end --[[ End conditionalize identity plate ]]
  97. write( [[
  98. <div id="aboutwrap">
  99. <div id="about">
  100. ]] ) if model.nonCSS.useForm then write( [[
  101. <form action="mail.php" method="POST">
  102. <p><strong>Your Email Address</strong><br>
  103. <input type="text" name="email" size=40>
  104. <input type="hidden" name="recipient" value="]] )write( model.metadata.contactInfo.link )write( [[">
  105. <p><strong>Your Name</strong><br>
  106. <input type="text" name="from" size=40>
  107. <p><strong>Subject</strong><br>
  108. <input type="text" name="subject" size=40>
  109. <p><strong>Comments</strong><br>
  110. <textarea cols=40 rows=6 name="message"></textarea>
  111. <p><input type="submit" value=" Send "></form>
  112. ]] ) else end write( [[
  113. ]] ) if model.nonCSS.useContact then write( [[
  114. ]] ) if model.nonCSS.useContactName then if not model.nonCSS.useContactNameLink then write( [[
  115. <strong>Contact</strong>: <span onclick="clickTarget( this, 'metadata.contactInfo.value' );" id="metadata.contactInfo.value" class="textColor">]] )write( model.metadata.contactInfo.value )write( [[</span><br />]] ) elseif model.nonCSS.useContactNameLink then write( [[<strong>Contact</strong>: <a onclick="clickTarget( this, 'metadata.contactInfo.link' );" id="metadata.contactInfo.link" href="]] )write( model.metadata.contactInfo.link )write( [["><span onclick="clickTarget( this, 'metadata.contactInfo.value' );" id="metadata.contactInfo.value" class="textColor">]] )write( model.metadata.contactInfo.value )write( [[</span></a><br />]] ) else end else end write( [[
  116. ]] ) if model.nonCSS.useEmail then write( [[
  117. <strong>Email</strong>: ]] )write( model.nonCSS.email )write( [[<br />
  118. ]] ) else end write( [[
  119. ]] ) if model.nonCSS.usePhone then write( [[
  120. <strong>Phone</strong>: ]] )write( model.nonCSS.phone )write( [[<br />
  121. ]] ) else end write( [[
  122. ]] ) if model.nonCSS.useMobile then write( [[
  123. <strong>Mobile/Cell</strong>: ]] )write( model.nonCSS.mobile )write( [[<br />
  124. ]] ) else end write( [[
  125. ]] ) if model.nonCSS.useFax then write( [[
  126. <strong>Fax</strong>: ]] )write( model.nonCSS.fax )write( [[<br />
  127. ]] ) else end write( [[
  128. ]] ) if model.nonCSS.useMyspace then write( [[
  129. <strong>MySpace</strong>: <a href="]] )write( model.nonCSS.Myspace )write( [[">]] )write( model.nonCSS.Myspace )write( [[</a><br />
  130. ]] ) else end write( [[
  131. ]] ) if model.nonCSS.useFacebook then write( [[
  132. <strong>Facebook</strong>: <a href="]] )write( model.nonCSS.Facbook )write( [[">]] )write( model.nonCSS.Facebook )write( [[</a><br />
  133. ]] ) else end write( [[
  134. ]] ) if model.nonCSS.useTwitter then write( [[
  135. <strong>Twitter</strong>: <a href="]] )write( model.nonCSS.Twitter )write( [[">]] )write( model.nonCSS.Twitter )write( [[</a><br />
  136. ]] ) else end write( [[
  137. ]] ) if model.nonCSS.useblankCon then write( [[
  138. <strong>]] )write( model.nonCSS.blankConTitle )write( [[</strong>: ]] ) if model.nonCSS.useblankConLink then write( [[<a href="]] )write( model.nonCSS.blankCon )write( [[">]] )write( model.nonCSS.blankCon )write( [[</a>]] ) else write( model.nonCSS.blankCon ) end write( [[<br />
  139. ]] ) else end write( [[
  140. ]] ) if model.nonCSS.useAddress then write( [[
  141. <strong>Address</strong>: ]] )write( model.nonCSS.address )write( [[<br />
  142. ]] ) else end write( [[
  143. ]] ) else end write( [[
  144. </div><div id="aboutleft">]] ) if model.nonCSS.usecontactText then write( [[<p onclick="clickTarget (this, 'nonCSS.contactText');" id="nonCSS.contactText" class="textColor">]] )write( model.nonCSS.contactText )write( [[</p>]] ) else write( [[<img src="large/]] )write( getImage(imageNumber).exportFilename )write( [[.jpg" alt="]] )write( getImage( imageNumber ).metadata.title )write( [[" title="]] )write( getImage( imageNumber ).metadata.title )write( [[" />]] ) end write( [[</div>
  145. </div>
  146. <div id="lrb"></div>
  147. ]] ) includeFile ('menu.html') write( [[
  148. ]] ) includeFile ('foot.html')