replace hardcoded charset with config.defEncoding
[mir.git] / templates-dist / producer / startpage.template
index 7501769..3483698 100755 (executable)
@@ -1,7 +1,7 @@
 <html>
 <head>
-<title>mir.indymedia.de: the mir-coders-website</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>${lang("producer.startpage.htmltitle")}</title>
+<meta http-equiv="Content-Type" content="text/html; charset=${config.defEncoding}">
 <link rel="stylesheet" href="/style/mir.css" type="text/css">
 </head>
 
@@ -20,7 +20,7 @@
             <table width="100%" border="0" cellspacing="2" cellpadding="0">
               <tr> 
                 <td> 
-               <!--# include virtual="navigation.inc" -->
+               <!--#include virtual="navigation.inc" -->
                 </td>
               </tr>
             </table>
           <td align="left" valign="top"> 
             <table width="457" border="0" cellpadding="0" cellspacing="2" height="100%">
               <tr> 
-                <td width="457" valign="top"> <!--- start-special ---> <list start as s> 
+                <td width="457" valign="top"> 
+               <!--- start-special ---> 
+               <list data.startspecial as s> 
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                     <tr> 
                       <td> 
                         <h3>${s.title}</h3>
                         <h4><i>${s.creator}, ${s.webdb_create_formatted}</i></h4>
-                        <p> <if images[s.to_media] && images[s.to_media]["is_published"]=="1"> 
-                          <img src="${images[s.to_media]["icon_path"]}" width="${images[s.to_media]["icon_width"]}" height="${images[s.to_media]["icon_height"]}" alt="" align="left" vspace="8" hspace="8"> 
-                          </if> ${s.description} </p>
-                        <p align="right">[<a href="${producerDocRoot}${s.publish_path}${s.id}.shtml">read</a>]</p>
+                        <p>                     
+                        <if s.to_media_audio > 
+                          <img src="/img/${s.to_media_audio[0]["big_icon"]}">
+                        </if> 
+                        <if s.to_media_video > 
+                          <img src="/img/${s.to_media_video[0]["big_icon"]}">
+                        </if> 
+                        <if s.to_media_other > 
+                          <img src="/img/${s.to_media_other[0]["big_icon"]}">
+                        </if> 
+                        <p>
+                        <if s.to_media_images >
+                          <img src="${s.to_media_images[0]["icon_path"]}"
+                            width="${s.to_media_images[0]["icon_width"]}"
+                            height="${s.to_media_images[0]["icon_height"]}"
+                            border=0 alt="${s.to_media_images[0]["title"]}">
+                        </if> 
+                       ${s.description_parsed} </p>
+                        <p align="right">[<a href="${config.producerDocRoot}${s.publish_path}${s.id}.shtml">read</a>]</p>
                       </td>
                     </tr>
                   </table>
                   </list> 
-                 <!--- start-special ---> <br>
-                  <!--- features ---> <list items as i> 
+                 <!--- start-special ---> 
+                 <br>
+                  <!--- features ---> 
+                 <list data.features 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 images[i.to_media] && images[i.to_media]["is_published"]=="1"> 
-                          <img src="${images[i.to_media]["icon_path"]}" width="${images[i.to_media]["icon_width"]}" height="${images[i.to_media]["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>
+                        <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>
+                        <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>
               </tr>
             </table>
           </td>
-                 <td width=1 bgcolor="#000000"><img src="images/1pixel.gif" width="1" height="1"></td>
+          <td width=1 bgcolor="#000000">
+            <img src="images/1pixel.gif" width="1" height="1">
+         </td>
           <td width="150" bgcolor="#666666" valign="top" align="left"> 
             <table width="150" border="0" cellspacing="2" cellpadding="0">
               <tr> 
-                <td> <!-- newswire --> 
+                <td> 
+                 <!-- newswire --> 
                   <p> 
-                   <list newswire as n>
-                   <img alt="[Text]" border="0" height="10" src="/images/text_small.gif" width="12"> 
-                    <a href="${producerDocRoot}${n.publish_path}${n.id}.shtml"><b>${n.title}</b></a><br>
+                   <list data.newswire as n>
+                   <img alt=${n.to_media_icon["icon_alt"]} border="0" height="10"
+src="${n.to_media_icon["tiny_icon"]}" width="12"> 
+                    <a href="${config.producerDocRoot}${n.publish_path}${n.id}.shtml"><b>${n.title}</b></a><br>
                     <font size="-2"><b></b>${n.webdb_create_formatted}</font><br>
                     <br>
                     </list> 
     </td>
   </tr>
 </table>
-<p>&nbsp;</p>
 </body>
 </html>