copied in newswire code that used to just be in the startpage
authormtopper <mtopper>
Wed, 8 Jun 2005 17:25:57 +0000 (17:25 +0000)
committermtopper <mtopper>
Wed, 8 Jun 2005 17:25:57 +0000 (17:25 +0000)
etc/producer/newswireinclude.template

index a04027a..5974626 100755 (executable)
@@ -1,71 +1,19 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
-<head>
-<title>newswire</title>
-<link type="text/css" rel="stylesheet" title="default" href="/inc/default.css" />
-<script type="text/javascript">
-function resizeIframe() {
-       i = parent.document.getElementByName(window.name)
-//     i = parent.document.getElementById(window.name)
-       iHeight = document.body.scrollHeight
-//     i.height = iHeight + 10
-       i.style.height = iHeight + 10 + "px"
-}
-</script>
-</head>
-<body style="background-color: #D8E0C3" onload="resizeIframe()">
-
-<div style="text-align: center">
-
-
-    <table cellpadding="8" cellspacing="0" border="0" width="100%">
-      <tr>
-        <td bgcolor="#cc0033">
-          <font size="+1" color="#dddddd"><b><a name="newswire">${whichnewswire}</a></b></font><br />
-       <a href="/${language.code}/newswireinclude.shtml">Open Publishing</a> |         <a href="/${language.code}/rssnewswireinclude.shtml">Community Blogs</a>
-        </td>
-      </tr>
-      <tr>
-        <td>
-
-          <!-- newswire -->
-          <font size="-1">
+         <ul class="newswire">
             <list newswire as nn>
-             <assign norig=nn.to_original>
-             <if languagepreference>
-               <assign n=nn.to_translation(languagepreference)>
-             <else>
-                <assign n=nn>
-             </if>
-           
-
-             <img src="${norig.to_media_icon.tiny_icon}" alt="${norig.to_media_icon.icon_alt}" height="10" width="12">
-<if n.to_original.to_article_type==articletype.newswire>
-              <a href="${config["Producer.DocRoot"]}/${language.code}/${n.date.formatted.yyyy}/${n.date.formatted.MM}/${n.id}.shtml">${n.title}</a>
-
-<else>
-              <a href="${n.source}">${n.title}</a>
-</if>
-              <br>
-              <font size="-2">${n.creationdate.formatted["dd-MM-yyyy HH:mm"]}</font><br>
-              <br>
+               <assign norig=nn.to_original>
+               <if languagepreference>
+                  <assign n=nn.to_translation(languagepreference)>
+               <else>
+                  <assign n=nn>
+               </if>
+               <if n.to_original.to_article_type==articletype.newswire>
+                  <li>
+                     <a href="${config["Producer.DocRoot"]}/${language.code}/${n.date.formatted.yyyy}/${n.date.formatted.MM}/${n.id}.shtml">${n.title}</a>
+                  </li>
+               <else>
+                  <li>
+                     <a href="${n.source}">${n.title}</a>
+                  </li>
+               </if>
             </list>
-          </font>
-          <!-- /newswire -->
-          <img src="/img/space.gif" width="184" height="1" border="0">
-
-        </td>
-      </tr>
-    </table>
-    <br>
-
-    <table cellpadding="8" cellspacing="0" border="0" width="100%">
-      <tr>
-        <td bgcolor="#cc0033">
-          <font size="+1" color="#dddddd"><b><a name="newswire">${lang("startpage.rsswire")}</a></b></font>
-        </td>
-      </tr>
-</table>
-</div>
-</body>
-</html>
+         </ul>