custom article types made browsable from admin interface
[mir.git] / templates-dist / producer / startpage.template
index 3a46c73..f738c49 100755 (executable)
@@ -1,6 +1,6 @@
 <html>
 <head>
-<title>mir.indymedia.de: the mir-coders-website</title>
+<title>${lang("producer.startpage.htmltitle")}</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <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>
               <tr> 
                 <td width="457" valign="top"> 
                <!--- start-special ---> 
-               <list startspecial as s> 
+               <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 s.to_media && s.to_media[0]["is_published"]=="1"> 
-                          <img src="${s.to_media[0]["icon_path"]}" width="${s.to_media[0]["icon_width"]}" height="${s.to_media[0]["icon_height"]}" alt="${s.to_media[0]["title"]}" align="left" vspace="8" hspace="8"> 
-                          </if> 
-                       ${s.description} </p>
-                        <p align="right">[<a href="${config.docroot}${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>
                  <!--- start-special ---> 
                  <br>
                   <!--- features ---> 
-                 <list features as i> 
+                 <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 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="${i.to_media[0]["title"]}" align="left" vspace="8" hspace="8"> 
-                          </if> ${i.description} </p>
-                        <p align="right">[<a href="${config.docroot}${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>
                 <td> 
                  <!-- newswire --> 
                   <p> 
-                   <list newswire as n>
-                   <img alt=${n.icon_alt} border="0" height="10" src=${n.tiny_icon} width="12"> 
-                    <a href="${config.docroot}${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>