added a link at the top of the page for printing an article.
[mir.git] / templates-dist / producer / content.template
index d50c5c1..6b6fcb5 100755 (executable)
@@ -1,6 +1,6 @@
 <html>
 <head>
-<title>mir.indymedia.de: ${content.title}</title>
+<title>${lang("producer.content.htmltitle")}${content.title}</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <link rel="stylesheet" href="/style/mir.css" type="text/css">
                        <if data.content.to_media_images>
@@ -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><b>${data.content.description_parsed}</b>
-                       <!-- media -->
-                       <list data.content.to_media_audio as media>
-                       <p>
-                            ${media["url"]}
-                       </p>
+          <!-- media -->
+          <list data.content.to_media_audio as media>
+            <list media["url"] as audio>
+              <p>
+                <img src="/img/${media["big_icon"]}" border="0" alt="">
+                <a href="${audio["publish_server"]}${audio["publish_path"]}">
+                ${audio["title"]} - ${media["descr"]}</a>
+              </p>
+            </list>
+          </list>
+          <list data.content.to_media_video as media>
+            <list media["url"] as video>
+              <p>
+                <img src="/img/${media["big_icon"]}" border="0" alt="">
+                <a href="${video["publish_server"]}${video["publish_path"]}">
+                ${video["title"]} - ${media["descr"]}</a>
+              </p>
+            </list>
+          </list>
+          <list data.content.to_media_other as media>
+            <list media["url"] as other>
+              <p>
+                <img src="/img/${media["big_icon"]}" border="0" alt="">
+                <a href="${other["publish_server"]}${other["publish_path"]}">
+                ${other["title"]} - ${media["descr"]}</a>
+              </p>
+            </list>
+          </list>
+          <list data.content.to_media_images as media>
+            <list media["url"] as image>
+              <p>
+                <img src="${image["publish_server"]}${image["publish_path"]}"
+                 border="0" width="${image["img_width"]}"
+                 height="${image["img_height"]}" alt="${image["title"]}">
+                 <br><i>${image["title"]}</i>
+              </p>
             </list>
-                       <list data.content.to_media_video as media>
-                       <p>
-                            ${media["url"]}
-                       </p>
-                       </list>
-                       <list data.content.to_media_other as media>
-                       <p>
-                            ${media["url"]}
-                       </p>
-                       </list>
-                       <list data.content.to_media_images as media>
-                       <p> I
-                            ${media["url"]}
-                       </p>
-                       </list>
-                       <!-- media -->
-                       <p>${data.content.content_data_parsed}</p>
-                       <if content.creator_main_url || content.creator_email>
+          </list>
+          <!-- media -->
+          <p>${data.content.content_data_parsed}</p>
+          <if content.creator_main_url || content.creator_email>
                         <table width="100%" bgcolor="#FFFFFF">
                         <tr>
                            <td>
                             <font size="-1">
                             <if content.creator_email>
-                            <img src="/images/mail_small.gif" width="12" height="10" border="0" alt="-"> eMail: <a href="mailto:${data.content.creator_email}">${data.content.creator_email}</a><br>
+                            <img src="/images/mail_small.gif" width="12" height="10" border="0" alt="-"> ${lang("producer.content.email")}: <a href="mailto:${data.content.creator_email}">${data.content.creator_email}</a><br>
                             </if>
                             <if content.creator_main_url>
-                            <img src="/images/link_small.gif" width="12" height="10" border="0" alt=""> Homepage: <a href="${data.content.creator_main_url}" target="extern">${data.content.creator_main_url}</a><br>
+                            <img src="/images/link_small.gif" width="12" height="10" border="0" alt=""> ${lang("producer.content.homepage")}: <a href="${data.content.creator_main_url}" target="extern">${data.content.creator_main_url}</a><br>
                             </if>
                             </font>
                            </td>
                     <tr><td>&nbsp;</td></tr>
                     <tr>
                       <td><a href="${config.openAction}?do=addcomment&aid=${data.content.id}">
-                          Make a quick comment on this article</a>
+                          ${lang("producer.content.comment")}</a>
                       </td>                
                     </tr>
                     <if data.content.to_comments>
                         <if c.email || c.main_url> 
                           <if c.email>
                            <br>
-                           <img src="/images/mail_small.gif" width="12" height="10" border="0" alt="">eMail: <a href="mailto:${c.email}"> ${c.email}</a>
+                           <img src="/images/mail_small.gif" width="12" height="10" border="0" alt="">${lang("producer.content.email")}: <a href="mailto:${c.email}"> ${c.email}</a>
                            </if>
                           <if c.main_url>
                            <br>
                            <img src="/images/link_small.gif" width="12" height="10" border="0" alt="">
-                           Homepage: <a href="${c.main_url}" target="extern"> ${c.main_url}</a>
+                           ${lang("producer.content.homepage")}: <a href="${c.main_url}" target="extern"> ${c.main_url}</a>
                            </if>
                          </if>
                         </td>