*** empty log message ***
[nyc.indymedia.org.git] / etc / producer / newswireinclude.template
index a04027a..f7ebe25 100755 (executable)
@@ -1,71 +1,41 @@
-<!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>
+                     <p class="title">
+                       <if n.to_media_images >
+                             <img src="http://sarai.indymedia.org/~patrick/mir.nyc/img/photo.gif" class="icon" width="10" height="8" alt="" />
+                                       </if>
+                        <if n.to_media_audio >
+                                      <img src="http://sarai.indymedia.org/~patrick/mir.nyc/img/audio.gif" class="icon" width="10" height="8" alt="" />
+                                               </if>
+                               <if n.to_media_video >
+                                                       <img src="http://sarai.indymedia.org/~patrick/mir.nyc/img/video.gif" class="icon" width="10" height="8" alt="" />
+                                               </if>
+                        <a href="${config["Producer.DocRoot"]}/${language.code}/${n.date.formatted.yyyy}/${n.date.formatted.MM}/${n.id}.html">${n.title}</a>
+                     </p>
+                     <p class="datestamp">
+                        ${n.creationdate.formatted["MMM d h:mm'<span>'a'</span>'"]}
+                        <if (n.commentcount != 0) ><span class="comments">${n.commentcount} Comments</span></if>
+                     </p>
+                  </li>
+               <else>
+                  <li>
+                     <p class="title">
+                        <span class="blogURL"> <a href="${n.creator_main_url}">${n.creator}</a>:</span>
+                        <a href="${n.source}">${n.title}</a>
+                     </p>
+                     <p class="datestamp">
+                        ${n.creationdate.formatted["MMM d h:mm'<span>'a'</span>'"]}
+                        <if (n.commentcount != 0) ><span class="comments">${n.commentcount} Comments</span></if>
+                     </p>
+                  </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>