1.1 restoration
[mir.git] / etc / producer / startpage.template
1 <comment>
2   Template file for the front page.  
3   - virtually no CSS functions
4   - all paths relative to /
5   - no complicated freemarker code
6 </comment>
7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8 <html>
9 <head>
10   <meta http-equiv="Content-Type" content="text/html; charset=${config["Mir.DefaultHTMLCharset"]}"> 
11   <title>${config["Mir.Name"]}</title>
12   <meta name="keywords" content="indymedia,imc">
13   <meta name="description" content="indymedia,imc">
14   <meta http-equiv="expires" content="599">
15   <meta http-equiv="pragma" content="no-cache">
16   <style type="text/css">
17     body, h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote, div, span
18             {font-family:'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;}
19     a       {text-decoration:none;}
20     #searchfield  {font-size: 12px; width:113px; height:16px;  background-color:#aaaaaa;}
21     #searchselect {font-size: 12px; width:120px; height:22px;  background-color:#aaaaaa;}
22     #searchbutton   {font-size: 12px; width:120px; height:20px; background-color:#aaaaaa; text-align: right;}
23   </style>
24 </head>
25            
26 <body bgcolor="#dddddd" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" link="#003399" alink="#cc0033" vlink="#660033" >
27
28 <table border="0" cellpadding="0" cellspacing="0" width="100%">
29   <tr>
30     <td bgcolor="#cc0033"><img src="${config["Producer.DocRoot"]}/img/logo.gif" width="120" height="120" alt="((i))"></td>
31     <td colspan="4" valign="top" background="${config["Producer.DocRoot"]}/img/background2.jpg">
32       <table cellpadding="4" cellspacing="0" border="0" width="100%" bgcolor="#cc0033"><tr><td>
33         <font color="#dddddd" size="-1"><b>
34           <a href="${config["Producer.DocRoot"]}/${language.code}/static/mission.shtml"><font color="#dddddd">${lang("general.menu.missionStatement")}&nbsp;&gt;&gt;</font></a> &nbsp; 
35           <a href="${config["Producer.DocRoot"]}/${language.code}/static/moderation.shtml"><font color="#dddddd">${lang("general.menu.moderation")}&nbsp;&gt;&gt;</font></a>  &nbsp;
36           <a href="${config["Producer.DocRoot"]}/${language.code}/static/support.shtml"><font color="#dddddd">${lang("general.menu.support")}&nbsp;&gt;&gt;</font></a>  &nbsp;
37           <a href="${config["Producer.DocRoot"]}/${language.code}/static/mailinglists.shtml"><font color="#dddddd">${lang("general.menu.mailinglists")}&nbsp;&gt;&gt;</font></a> &nbsp;
38           <a href="${config["Producer.DocRoot"]}/${language.code}/static/participate.shtml"><font color="#dddddd">${lang("general.menu.participate")}&nbsp;&gt;&gt;</font></a>
39         </b></font>
40       </td></tr></table>
41       <br>
42       <br>
43       <font color="#cc0033" size="+3">&nbsp;&nbsp;&nbsp;<b><span id="indy">${config["Mir.Name"]}</span></b></font>
44     </td>
45   </tr>
46   <tr>
47     <td></td>
48     <td colspan="3">
49     </td>
50   </tr> 
51   <tr>
52     <td width="120"></td>
53     <td rowspan="100">&nbsp;&nbsp;&nbsp;&nbsp;</td>
54     <td width="100%">&nbsp;</td>
55     <td rowspan="100">&nbsp;&nbsp;&nbsp;&nbsp;</td>
56     <td width="200"><img src="${config["Producer.DocRoot"]}/img/space.gif" alt="" width="200" height="1"></td>
57   </tr>
58   
59   <tr>
60     <td valign="top">
61     
62     
63       <!--#include virtual="navigation.inc" -->
64       
65       
66       <table cellpadding="8" cellspacing="0" border="0" width="100%">
67         <tr>
68           <td bgcolor="#cc0033">
69             <b><font color="#dddddd" size="+1">${lang("startpage.imcs")}</font></b>
70           </td>
71         </tr>
72         <tr>
73           <td>
74             <font size="-1">
75               <include "cities.inc">
76             </font>
77           </td>
78         </tr>
79       </table>
80       <br>
81         
82
83   </td>
84   
85   <td  valign="top" width="100%"><a name="features"></a>
86   
87       <!-- breaking news -->
88       <if breakingnews && breakingnews[0].text!=".">
89         <table cellpadding="10" cellspacing="0" border="0" width="100%" bgcolor="#cccccc"><tr><td>
90           <font color="#cc0033" size="-1"><b>${lang("startpage.breakingnews")}</b></font> <font size="-2"><b>+++</b></font>
91             <assign stop="0">
92             <list breakingnews as bn>
93               <if bn.text=="."><assign stop="1"></if>
94               <if stop=="0">
95                 <font color="#cc0033" size="-2">${bn.creationdate.formatted["dd-MM-yyyy HH:mm"]}:</font> <font size="-1">${bn.text}</font> <font size="-2"><b>+++</b></font>
96               </if>
97             </list>
98         </td></tr></table>
99         <br>
100       </if>
101       <!-- /breaking news -->
102
103     <!--- start-special --->
104       <list startspecial as ss>
105         <assign sorig=ss.to_original>
106         <if languagepreference>
107           <assign s=ss.to_translation(languagepreference)>
108         <else>
109           <assign s=ss>
110         </if>
111  
112         <table width="100%" border="0" cellspacing="0" cellpadding="10" bgcolor="#eeeeee"><tr><td>
113              <p><font size="+2">
114              <a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.shtml"><b>${s.title}</b></a>
115              </font><br>
116                 <font size="-2">${sorig.creator} <if sorig.id!=s.id>(${lang("general.translatedby", s.creator)})</if><if s.creator || sorig.creator>, </if>  ${sorig.creationdate.formatted["dd.MM.yyyy - HH:mm"]}</font></p>
117              <p><font size="-1">
118               <if sorig.to_media_audio >
119                 <img align="left" vspace="4" hspace="8"
120                   src="${config["Producer.DocRoot"]}/img/${sorig.to_media_audio[0]["big_icon"]}">
121               </if>
122               <if sorig.to_media_video >
123                 <img align="left" vspace="4" hspace="8"
124                   src="${config["Producer.DocRoot"]}/img/${sorig.to_media_video[0]["big_icon"]}">
125               </if>
126               <if sorig.to_media_other >
127                 <img align="left" vspace="4" hspace="8"
128                    src="${config["Producer.DocRoot"]}/img/${sorig.to_media_other[0]["big_icon"]}">
129               </if>
130               <if sorig.to_media_images >
131                 <img align="left" vspace="4" hspace="8"
132                   src="${sorig.to_media_images[0]["icon_path"]}"
133                   width="${sorig.to_media_images[0]["icon_width"]}"
134                   height="${sorig.to_media_images[0]["icon_height"]}"
135                   border=0 alt="${sorig.to_media_images[0]["title"]}">
136               </if>
137               ${s.description_parsed}
138           <br clear="all">
139           <a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.shtml"><b>${lang("general.readmore")} &gt;&gt;</b></a>
140           </font></p>
141
142          </td></tr></table>
143       </list>
144     <!--- /start-special --->
145
146
147     <!--- features ---> <comment></comment>
148       <list features as f>
149         <assign forig=f.to_original>
150         <if languagepreference>
151           <assign i=f.to_translation(languagepreference)>
152         <else>
153           <assign i=f>
154         </if>
155
156         <p><font size="+1">
157         <a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.shtml"><b>${i.title}</b></a>
158         </font><br>
159            <font size="-2">${forig.creator} <if forig.id!=i.id>(${lang("general.translatedby", i.creator)})</if><if i.creator || forig.creator>, </if> ${forig.creationdate.formatted["dd.MM.yyyy -  HH:mm"]}</font></p>
160         <p><font size="-1">
161         <if forig.to_media_audio >
162         <img align="left" vspace="4" hspace="8"
163              src="${config["Producer.DocRoot"]}/img/${forig.to_media_audio[0]["big_icon"]}">
164         </if>
165         <if forig.to_media_video >
166         <img align="left" vspace="4" hspace="8"
167              src="${config["Producer.DocRoot"]}/img/${forig.to_media_video[0]["big_icon"]}">
168         </if>
169         <if forig.to_media_other >
170         <img align="left" vspace="4" hspace="8"
171              src="${config["Producer.DocRoot"]}/img/${forig.to_media_other[0]["big_icon"]}">
172         </if>
173         <if forig.to_media_images >
174         <img align="left" vspace="4" hspace="8"
175              src="${forig.to_media_images[0]["icon_path"]}"
176              width="${forig.to_media_images[0]["icon_width"]}"
177              height="${forig.to_media_images[0]["icon_height"]}"
178              border=0 alt="${forig.to_media_images[0]["title"]}">
179         </if>
180         ${i.description_parsed}
181         <br clear="all">
182           <a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.shtml"><b>${lang("general.readmore")} &gt;&gt; &gt;&gt;</b></a>
183         </font></p>
184
185         <br>
186       </list>
187     <!--- /features --->
188
189   </td>
190
191   <td valign="top">
192
193     <table cellpadding="8" cellspacing="0" border="0" width="100%">
194       <tr>
195         <td bgcolor="#cc0033">
196           <font size="+1" color="#dddddd"><b><a name="newswire">${lang("startpage.newswire")}</a></b></font>
197         </td>
198       </tr>
199       <tr>
200         <td>
201
202           <!-- newswire -->
203           <font size="-1">
204             <list newswire as nn>
205               <assign norig=nn.to_original>
206               <if languagepreference>
207                 <assign n=nn.to_translation(languagepreference)>
208               <else>
209                 <assign n=nn>
210               </if>
211             
212
213               <img src="${norig.to_media_icon.tiny_icon}" alt="${norig.to_media_icon.icon_alt}" height="10" width="12">
214               <a href="${config["Producer.DocRoot"]}/${language.code}/${n.date.formatted.yyyy}/${n.date.formatted.MM}/${n.id}.shtml">${n.title}</a>
215               <br>
216               <font size="-2">${n.creationdate.formatted["dd-MM-yyyy HH:mm"]}</font><br>
217               <br>
218             </list>
219           </font>
220           <!-- /newswire -->
221           <img src="/img/space.gif" width="184" height="1" border="0">
222
223         </td>
224       </tr>
225     </table>
226     <br>
227
228
229     </td>
230   </tr>
231
232 <!-- the rest -->
233   <tr><td colspan="5">&nbsp;</td></tr>
234
235   <tr>
236     <td>&nbsp;</td>
237     <td valign="top">
238       <p>
239
240       </p>
241     </td>
242     <td>&nbsp;</td>
243   </tr>
244 </table>
245 </body>
246 </html>
247