a new db-cache with max-load, not documented yet
[mir.git] / templates-dist / producer / startpage.template
index 7501769..3a44bb0 100755 (executable)
           <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 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 && s.to_media_audio[0]["is_published"]=="1"> 
+                          ${s.to_media_audio[0]["url"]}
+                        </if> 
+                        <if s.to_media_video && s.to_media_video[0]["is_published"]=="1"> 
+                          ${s.to_media_video[0]["url"]}
+                        </if> 
+                        <if s.to_media_other && s.to_media_other[0]["is_published"]=="1"> 
+                          ${s.to_media_other[0]["url"]}
+                        </if> 
+                        <p>
+                        <if s.to_media_images && s.to_media_images[0]["is_published"]=="1"> 
+                          ${s.to_media_images[0]["url"]}
+                        </if> 
+                       ${s.description} </p>
+                        <p align="right">[<a href="${config.docroot}${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 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 && i.to_media_audio[0]["is_published"]=="1"> 
+                          ${i.to_media_audio[0]["url"]}
+                        </if> 
+                        <if i.to_media_video && i.to_media_video[0]["is_published"]=="1"> 
+                          ${i.to_media_video[0]["url"]}
+                        </if> 
+                        <if i.to_media_other && i.to_media_other[0]["is_published"]=="1"> 
+                          ${i.to_media_other[0]["url"]}
+                        </if> 
+                        <p>
+                        <if i.to_media_images && i.to_media_images[0]["is_published"]=="1"> 
+                          ${i.to_media_images[0]["url"]}
+                        </if> 
+                          ${i.description} </p>
+                        <p align="right">[<a href="${config.docroot}${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>
+                   <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>
                     <font size="-2"><b></b>${n.webdb_create_formatted}</font><br>
                     <br>
                     </list> 
     </td>
   </tr>
 </table>
-<p>&nbsp;</p>
 </body>
 </html>