replace hardcoded charset with config.defEncoding
[mir.git] / templates-dist / producer / topiclist.template
index 6de81d3..aaa02a7 100755 (executable)
@@ -1,7 +1,7 @@
 <html>
 <head>
-<title>mir.indymedia.de: ${topic.title}</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>${lang("producer.topiclist.htmltitle")}${topic.title}</title>
+<meta http-equiv="Content-Type" content="text/html; charset=${config.defEncoding}">
 <link rel="stylesheet" href="/style/mir.css" type="text/css">
 </head>
 
@@ -12,7 +12,7 @@
       <table width="150" border="0" cellspacing="0" cellpadding="0">
         <tr> 
           <td width="140">
-             <a href="/">
+             <a href="${config.productionHost}${config.producerDocRoot}/">
              <img src="images/mirlogo.jpg" width="150" height="205" border="0">
              </a>
           </td>
@@ -22,7 +22,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"> 
                 <!--- start-special ---> 
-                  <if special> 
+                  <if data.special> 
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                     <tr> 
                       <td> 
-                        <h3>${special.title}</h3>
-                        <h4><i>${special.creator}, ${special.webdb_create_formatted}</i></h4>
-                        <p> <if special.to_media && special.to_media[0]["is_published"]=="1"> 
-                          <img src="${special.to_media[0]["icon_path"]}" width="${special.to_media[0]["icon_width"]}" height="${special.to_media[0]["icon_height"]}" alt="" align="left" vspace="8" hspace="8"> 
-                          </if> ${special.description} </p>
-                        <p align="right">[<a href="${producerDocRoot}${special.publish_path}${special.id}.shtml">read</a>]</p>
+                        <h3>${data.special.title}</h3>
+                        <h4><i>${data.special.creator}, ${data.special.webdb_create_formatted}</i></h4>
+                        <p> 
+                        <if data.special.to_media_audio > 
+                          <img src="/img/${data.special.to_media_audio[0]["big_icon"]}">
+                        </if> 
+                        <if data.special.to_media_video > 
+                          <img src="/img/${data.special.to_media_video[0]["big_icon"]}">
+                        </if> 
+                        <if data.special.to_media_other > 
+                          <img src="/img/${data.special.to_media_other[0]["big_icon"]}">
+                        </if> 
+                        <p>
+                        <if data.special.to_media_images >
+                          <img src="${data.special.to_media_images[0]["icon_path"]}"
+                            width="${data.special.to_media_images[0]["icon_width"]}"
+                            height="${data.special.to_media_images[0]["icon_height"]}"
+                            border=0 alt="${data.special.to_media_images[0]["title"]}">
+                        </if> 
+                          ${data.special.description_parsed} </p>
+                        <p align="right">[<a href="${config.producerDocroot}${data.special.publish_path}${data.special.id}.shtml">read</a>]</p>
                       </td>
                     </tr>
                   </table>
                   </if> 
                  <!--- start-special --->
                   <!--- features ---> 
-                  <list contentlist as i> 
+                  <list data.contentlist as i> 
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                     <tr> 
                       <td> 
                         <h3>${i.title}</h3>
                         <h4><i>${i.creator}, ${i.webdb_create_formatted}</i></h4>
+                        <p>                     
+                        <if i.to_media_audio > 
+                          <img src="/img/${i.to_media_audio[0]["big_icon"]}">
+                        </if> 
+                        <if i.to_media_video > 
+                          <img src="/img/${i.to_media_video[0]["big_icon"]}">
+                        </if> 
+                        <if i.to_media_other > 
+                          <img src="/img/${i.to_media_other[0]["big_icon"]}">
+                        </if> 
                         <p>
-                         <img src="${i.to_media[0]["icon_path"]}" width="${i.to_media[0]["icon_width"]}" height="${i.to_media[0]["icon_height"]}" alt="" align="left" vspace="8" hspace="8">  
-                         <if i.to_media && i.to_media[0]["is_published"]=="1"> 
-                          <img src="${i.to_media[0]["icon_path"]}" width="${i.to_media[0]["icon_width"]}" height="${i.to_media[0]["icon_height"]}" alt="" align="left" vspace="8" hspace="8"> 
-                          </if> 
-                         ${i.description}</p>
-                        <p align="right">[<a href="${producerDocRoot}${i.publish_path}${i.id}.shtml">read</a>]</p>
+                        <if i.to_media_images >
+                          <img src="${i.to_media_images[0]["icon_path"]}"
+                            width="${i.to_media_images[0]["icon_width"]}"
+                            height="${i.to_media_images[0]["icon_height"]}"
+                            border=0 alt="${i.to_media_images[0]["title"]}">
+                        </if> 
+                         ${i.description_parsed}</p>
+                        <p align="right">[<a href="${config.producerDocroot}${i.publish_path}${i.id}.shtml">read</a>]</p>
                       </td>
                     </tr>
                   </table>