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