added a link at the top of the page for printing an article.
[mir.git] / templates-dist / producer / content.template
index 702ae14..6b6fcb5 100755 (executable)
@@ -34,7 +34,7 @@
             <table width="100%" border="0" cellspacing="2" cellpadding="0">
               <tr> 
                 <td> 
-               <!--# include virtual="../../navigation.inc" -->
+               <!--#include virtual="../../navigation.inc" -->
                 </td>
               </tr>
             </table>
               <tr> 
                 <td width="100%" valign="top">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
-                    <tr> 
+
+       <if config.generateFO=="yes">
+         <tr><td align="right">          
+         <if config.generatePDF=="yes">
+           <a href="${data.content.id}.pdf">Print this article</a>
+          <else>
+            <a href="${config.openAction}?do=getpdf&id=${data.content.id}">Print this article</a>
+         </if>
+         </td></tr>
+       </if>
+            <tr> 
                       <td> 
                         <h2>${data.content.title}</h2>
                         <h4><i>${data.content.creator}, ${data.content.webdb_create_formatted}</i></h4>
               <p>
                 <img src="${image["publish_server"]}${image["publish_path"]}"
                  border="0" width="${image["img_width"]}"
-                 height="${image["img_width"]}" alt="${image["title"]}">
+                 height="${image["img_height"]}" alt="${image["title"]}">
                  <br><i>${image["title"]}</i>
               </p>
             </list>