fixed templates for MIR_1_1 release - well not beautyfull, but working -
[mir.git] / etc / producer / topicpage.template
index d723b26..756eb2a 100755 (executable)
@@ -10,7 +10,7 @@
   <meta name="dc:subject" content="${topic.title}">
   <meta name="dc:description" content="${topic.title}">
   <meta name="dc:publisher" content="">
-  <meta name="dc:date" content="${config.now.dc}">
+  <meta name="dc:date" content="${config.now.formatted.dc}">
   <meta name="dc:language" content="${language.code}">
   <meta name="dc:coverage" content="">
   <meta name="dc:rights" content="">
@@ -25,7 +25,7 @@
     #searchbutton  {font-size: 12px; width:120px; height:20px; background-color:#aaaaaa; text-align: right;}
   </style>
 </head>
-   
+
 <body bgcolor="#dddddd" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" link="#003399" alink="#cc0033" vlink="#660033" >
 
 <table border="0" cellpadding="0" cellspacing="0" width="100%">
@@ -50,7 +50,7 @@
           <td>
             &nbsp;&nbsp;
             <font color="#dddddd" size="-1"><b>
-          <a href="${config["Producer.DocRoot"]}/${language.code}/static/mission.shtml"><font color="#dddddd">${lang("general.menu.missionStatement")}&nbsp;&gt;&gt;</font></a> &nbsp; 
+          <a href="${config["Producer.DocRoot"]}/${language.code}/static/mission.shtml"><font color="#dddddd">${lang("general.menu.missionStatement")}&nbsp;&gt;&gt;</font></a> &nbsp;
           <a href="${config["Producer.DocRoot"]}/${language.code}/static/moderation.shtml"><font color="#dddddd">${lang("general.menu.moderation")}&nbsp;&gt;&gt;</font></a>  &nbsp;
           <a href="${config["Producer.DocRoot"]}/${language.code}/static/support.shtml"><font color="#dddddd">${lang("general.menu.support")}&nbsp;&gt;&gt;</font></a>  &nbsp;
           <a href="${config["Producer.DocRoot"]}/${language.code}/static/mailinglists.shtml"><font color="#dddddd">${lang("general.menu.mailinglists")}&nbsp;&gt;&gt;</font></a> &nbsp;
@@ -70,7 +70,7 @@
             <br>
           </td>
           <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
-          <td valign="top"><img src="${config["Producer.DocRoot"]}/img/space.gif" alt="" width="100" height="1">
+          <td valign="top">&nbsp;
           </td>
           <td>
           &nbsp;&nbsp;&nbsp;&nbsp;
           <td>
             <br>
               <!--- topic-special ---> <comment></comment>
-                <list special as s>
-                   <table width="100%" border="0" cellspacing="0" cellpadding="10" bgcolor="#eeeeee"><tr><td> 
+                               <if (batch.current.index==batch.first.index)>
+                               <list special as s>
+                   <table width="100%" border="0" cellspacing="0" cellpadding="10" bgcolor="#eeeeee"><tr><td>
                        <p><font size="+2">
                        <a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.shtml"><b>${s.title}</b></a>
                        </font><br>
-                          <font size="-2">${s.creator}, ${s.webdb_create_formatted}</font></p>
-                       <p><font size="-1">       
-                        <if s.to_media_audio > 
+                          <font size="-2">${s.creator}, ${s.creationdate.formatted["dd-MM-yyyy - HH:mm"]}</font></p>
+                       <p><font size="-1">
+                        <if s.to_media_audio >
                           <img align="left" vspace="4" hspace="8"
                             src="${config["Producer.DocRoot"]}/img/${s.to_media_audio[0]["big_icon"]}">
-                        </if> 
-                        <if s.to_media_video > 
+                        </if>
+                        <if s.to_media_video >
                           <img align="left" vspace="4" hspace="8"
                             src="${config["Producer.DocRoot"]}/img/${s.to_media_video[0]["big_icon"]}">
-                        </if> 
-                        <if s.to_media_other > 
+                        </if>
+                        <if s.to_media_other >
                           <img align="left" vspace="4" hspace="8"
                              src="${config["Producer.DocRoot"]}/img/${s.to_media_other[0]["big_icon"]}">
-                        </if> 
+                        </if>
                         <if s.to_media_images >
                           <img align="left" vspace="4" hspace="8"
                             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} 
+                        </if>
+                        ${s.description_parsed}
                     <br clear="all">
                     <a href="${config["Producer.DocRoot"]}${s.publish_path}${s.id}.shtml"><b>${lang("general.readmore")} &gt;&gt;</b></a>
                     </font></p>
-                  
+
                    </td></tr></table>
                 </list>
-              <!--- /topic-special --->     
-          
-              <!--- articles ---> <comment></comment>  
+                               </if>
+              <!--- /topic-special --->
+
+              <!--- articles ---> <comment></comment>
                 <list articles as i>
                   <p><font size="+1">
                   <a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.shtml"><b>${i.title}</b></a>
                   </font><br>
-                     <font size="-2">${i.creator}, ${i.webdb_create_formatted}</font></p>
-                  <p><font size="-1">      
-                  <if i.to_media_audio > 
+                     <font size="-2">${i.creator}, ${i.creationdate.formatted["dd-MM-yyyy - HH:mm"]}</font></p>
+                  <p><font size="-1">
+                  <if i.to_media_audio >
                   <img align="left" vspace="4" hspace="8"
                        src="${config["Producer.DocRoot"]}/img/${i.to_media_audio[0]["big_icon"]}">
-                  </if> 
-                  <if i.to_media_video > 
+                  </if>
+                  <if i.to_media_video >
                   <img align="left" vspace="4" hspace="8"
                        src="${config["Producer.DocRoot"]}/img/${i.to_media_video[0]["big_icon"]}">
-                  </if> 
-                  <if i.to_media_other > 
+                  </if>
+                  <if i.to_media_other >
                   <img align="left" vspace="4" hspace="8"
                        src="${config["Producer.DocRoot"]}/img/${i.to_media_other[0]["big_icon"]}">
-                  </if> 
+                  </if>
                   <if i.to_media_images >
                   <img align="left" vspace="4" hspace="8"
                        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> 
+                  </if>
                   ${i.description_parsed}
                   <br clear="all">
                   <a href="${config["Producer.DocRoot"]}${i.publish_path}${i.id}.shtml"><b>${lang("general.readmore")} &gt;&gt;</b></a>
                   </font></p>
-                  
+
                   <br>
-                </list> 
-              <!--- /articles ---> 
-              <if batch.current.index!=batch.first.index>
-                <a href="${docPrefix}${batch.previous.identifier}${docSuffix}"><font size="+1"><b>&lt;&lt; ${lang("general.page.prefix")} ${batch.previous.index}</b></font></a>
-              </if> 
-              <if batch.current.index!=batch.first.index && batch.current.index!=batch.last.index>
-                |
-              </if>
-              <if batch.next>
-                <a href="${docPrefix}${batch.next.identifier}${docSuffix}"><font size="+1"><b>${lang("general.page.prefix")} ${batch.next.index} &gt;&gt;</b></font></a>
-              </if>
-              
-              
+                </list>
+              <!--- /articles --->
+
+
           </td>
           <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
-          <td valign="top"><img src="${config["Producer.DocRoot"]}/img/space.gif" alt="" width="100" height="1">
-            <br>
-              ${lang("general.page.prefix")} <b>${batch.current.index}</b> ${lang("general.page.infix")}
-              <!--#include virtual="${docPrefix}nav${docSuffix}" -->
-          
+          <td valign="top">
+                       &nbsp;
           </td>
           <td>
           &nbsp;&nbsp;&nbsp;&nbsp;
       </table>
     </td>
   </tr>
-  
-<!-- the rest --> 
-  <tr><td colspan="2">&nbsp;</td></tr>
+
+<!-- the rest -->
+  <tr>
+  <td>&nbsp;</td>
+  <table width="100%">
+                       <!--- Page Navigation --->
+               <tr><td colspan="4" bgcolor="#CCCCCC"><br></td></tr>
+               <tr>
+                       <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
+                       <td align="left" valign="top">
+                         <if batch.current.index!=batch.first.index>
+                <a href="${docPrefix}${batch.previous.identifier}${docSuffix}"><font><b>&lt;&lt; ${lang("general.page.prefix")} ${batch.previous.index}</b></font></a>
+              </if>
+              <if batch.current.index!=batch.first.index && batch.current.index!=batch.last.index>
+                |
+              </if>
+              <if batch.next>
+                <a href="${docPrefix}${batch.next.identifier}${docSuffix}"><font><b>${lang("general.page.prefix")} ${batch.next.index} &gt;&gt;</b></font></a>
+              </if>
+                       </td>
+                       <td>
+                       &nbsp;
+                       </td>
+                       <td align="right" valign="top">
+                       <!--#include virtual="${docPrefix}nav${docSuffix}" -->
+                       </td>
+                       <td>&nbsp;<br><br><br></td>
+               </tr>
+  </table>
+
+
+  </tr>
 </table>
 </body>
 </html>