Towards a reasonable template set
[mir.git] / templates-dist / producer / startpage.template
index 158655d..458a27c 100755 (executable)
@@ -1,10 +1,10 @@
-
+<include "routines.template">
 
 <html>
   <head>
-    <title>${lang("producer.startpage.htmltitle")}</title>
+    <title>${lang("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">
+    <link rel="stylesheet" href="/${pathprefix}/style.css" type="text/css">
   </head>
 
   <body bgcolor="#CCCCCC">
@@ -14,7 +14,7 @@
           <table width="150" border="0" cellspacing="0" cellpadding="0">
             <tr> 
               <td width="140">
-                <img src="images/mirlogo.jpg" width="150" height="205">
+                <img src="/images/mirlogo.jpg" width="150" height="205">
               </td>
             </tr>
             <tr valign="top"> 
@@ -37,7 +37,7 @@
                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                   <tr> 
                     <td valign="top">
-                      <img src="images/mirfont.gif" width="600" height="68">
+                      <img src="/images/mirfont.gif" width="600" height="68">
                     </td>
                   </tr>
                 </table>
                   <tr> 
                     <td width="457" valign="top"> 
                       <!--- start-special ---> 
-                      <list data.startspecial as s> 
+                      <list startspecial as s> 
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                           <tr> 
                             <td> 
+                              <call showArticleAsFeature(s)>
+<comment>                      
                               <h3>${s.title}</h3>
                               <h4><i>${s.creator}, ${s.webdb_create_formatted}</i></h4>
                               <p>                       
                               </if> 
                               ${s.description_parsed} </p>
                               <p align="right">[<a href="${config["Producer.DocRoot"]}${s.publish_path}${s.id}.shtml">read</a>]</p>
+</comment>
                             </td>
                           </tr>
                         </table>
                       </list> 
-                      <!--- start-special ---> 
+                      <!--- /start-special ---> 
                       <br>
                       <!--- features ---> 
-                      <list data.features as i> 
+                      <list features as i>
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                           <tr> 
                             <td> 
+                              <call showArticleAsFeature(i)>
+<comment>                        
                               <h3>${i.title}</h3>
                               <h4><i>${i.creator}, ${i.webdb_create_formatted}</i></h4>
                               <p>                       
                               </if> 
                                 ${i.description_parsed} </p>
                               <p align="right">[<a href="${config["Producer.DocRoot"]}${i.publish_path}${i.id}.shtml">read</a>]</p>
+</comment>                        
                             </td>
                           </tr>
                         </table>
                         <br>
                       </list> 
-                             <!--- features ---> 
+                             <!--- /features ---> 
                     </td>
                   </tr>
                 </table>
                 <table width="150" border="0" cellspacing="2" cellpadding="0">
                   <tr> 
                     <td> 
-                                 <!-- newswire --> 
-                                  <p> 
-                                   <list data.newswire as n>
+                                   <!-- newswire --> 
+                        <p> 
+                                   <list newswire as n>
+                          <call showArticleAsNewswire(n)>
+<comment>                                  
                             <img alt=${n.to_media_icon["icon_alt"]} border="0" height="10"
                                  src="${n.to_media_icon["tiny_icon"]}" width="12"> 
                             <a href="${config["Producer.DocRoot"]}${n.publish_path}${n.id}.shtml"><b>${n.title}</b></a><br>
-                           <font size="-2"><b></b>${n.webdb_create_formatted}</font><br>
+                           <font size="-2"><b></b>${n.webdb_create_formatted}</font>
+                          <br>
+</comment>                           
                           <br>
-                                    </list> 
-                                   <!-- newswire -->
+                        </list> 
+                                   <!-- /newswire -->
                       </p>
                     </td>
                   </tr>