Initial revision
[nyc.indymedia.org.git] / etc / producer / newswireinclude.template
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html>
3 <head>
4 <title>newswire</title>
5 <link type="text/css" rel="stylesheet" title="default" href="/inc/default.css" />
6 <script type="text/javascript">
7 function resizeIframe() {
8         i = parent.document.getElementByName(window.name)
9 //      i = parent.document.getElementById(window.name)
10         iHeight = document.body.scrollHeight
11 //      i.height = iHeight + 10
12         i.style.height = iHeight + 10 + "px"
13 }
14 </script>
15 </head>
16 <body style="background-color: #D8E0C3" onload="resizeIframe()">
17
18 <div style="text-align: center">
19
20
21     <table cellpadding="8" cellspacing="0" border="0" width="100%">
22       <tr>
23         <td bgcolor="#cc0033">
24           <font size="+1" color="#dddddd"><b><a name="newswire">${whichnewswire}</a></b></font><br />
25         <a href="/${language.code}/newswireinclude.shtml">Open Publishing</a> |         <a href="/${language.code}/rssnewswireinclude.shtml">Community Blogs</a>
26         </td>
27       </tr>
28       <tr>
29         <td>
30
31           <!-- newswire -->
32           <font size="-1">
33             <list newswire as nn>
34               <assign norig=nn.to_original>
35               <if languagepreference>
36                 <assign n=nn.to_translation(languagepreference)>
37               <else>
38                 <assign n=nn>
39               </if>
40             
41
42               <img src="${norig.to_media_icon.tiny_icon}" alt="${norig.to_media_icon.icon_alt}" height="10" width="12">
43 <if n.to_original.to_article_type==articletype.newswire>
44               <a href="${config["Producer.DocRoot"]}/${language.code}/${n.date.formatted.yyyy}/${n.date.formatted.MM}/${n.id}.shtml">${n.title}</a>
45
46 <else>
47               <a href="${n.source}">${n.title}</a>
48 </if>
49               <br>
50               <font size="-2">${n.creationdate.formatted["dd-MM-yyyy HH:mm"]}</font><br>
51               <br>
52             </list>
53           </font>
54           <!-- /newswire -->
55           <img src="/img/space.gif" width="184" height="1" border="0">
56
57         </td>
58       </tr>
59     </table>
60     <br>
61
62     <table cellpadding="8" cellspacing="0" border="0" width="100%">
63       <tr>
64         <td bgcolor="#cc0033">
65           <font size="+1" color="#dddddd"><b><a name="newswire">${lang("startpage.rsswire")}</a></b></font>
66         </td>
67       </tr>
68 </table>
69 </div>
70 </body>
71 </html>