first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / templates-dist / producer / topiclist.template
index dc14c1f..1b75e66 100755 (executable)
@@ -12,7 +12,7 @@
       <table width="150" border="0" cellspacing="0" cellpadding="0">
         <tr> 
           <td width="140">
-             <a href="/">
+             <a href="${config.productionhost}${config.docroot}">
              <img src="images/mirlogo.jpg" width="150" height="205" border="0">
              </a>
           </td>
               <tr> 
                 <td width="100%" valign="top"> 
                 <!--- start-special ---> 
-                <list special as s
+                  <if special
                   <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 specialimage[s.to_media] && specialimage[s.to_media]["is_published"]=="1"> 
-                          <img src="${specialimage[s.to_media]["icon_path"]}" width="${specialimage[s.to_media]["icon_width"]}" height="${specialimage[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>
+                        <h3>${special.title}</h3>
+                        <h4><i>${special.creator}, ${special.webdb_create_formatted}</i></h4>
+                        <p> 
+                <if special.to_media_audio && special.to_media_audio[0]["is_published"]=="1"> 
+                  ${special.to_media_audio[0]["list"]}
+                </if> 
+                                 <if special.to_media_video && special.to_media_video[0]["is_published"]=="1"> 
+                  ${special.to_media_video[0]["list"]}
+                </if> 
+                                 <if special.to_media_other && special.to_media_other[0]["is_published"]=="1"> 
+                  ${special.to_media_other[0]["list"]}
+                </if> 
+                <p>
+                                 <if special.to_media_images && special.to_media_images[0]["is_published"]=="1"> 
+                  ${special.to_media_images[0]["list"]}
+                </if> 
+                          ${special.description} </p>
+                        <p align="right">[<a href="${config.docroot}${special.publish_path}${special.id}.shtml">read</a>]</p>
                       </td>
                     </tr>
                   </table>
-                  </list> <!--- start-special ---> <br>
+                  </if> 
+                 <!--- start-special --->
                   <!--- features ---> 
                   <list contentlist as i> 
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                       <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]["list"]}
+                </if> 
+                                 <if i.to_media_video && i.to_media_video[0]["is_published"]=="1"> 
+                  ${i.to_media_video[0]["list"]}
+                </if> 
+                                 <if i.to_media_other && i.to_media_other[0]["is_published"]=="1"> 
+                  ${i.to_media_other[0]["list"]}
+                </if> 
+                <p>
+                                 <if i.to_media_images && i.to_media_images[0]["is_published"]=="1"> 
+                  ${i.to_media_images[0]["list"]}
+                </if> 
+                         ${i.description}</p>
+                        <p align="right">[<a href="${config.docroot}${i.publish_path}${i.id}.shtml">read</a>]</p>
                       </td>
                     </tr>
                   </table>