da99494eaf5787baf7cab3f94bb315f3f752a2f0
[nyc.indymedia.org.git] / etc / producer / startpage.template
1 <comment>\r
2   Template file for the front page.  \r
3   - all paths relative to /\r
4   - no complicated freemarker code\r
5 </comment><!DOCTYPE HTML PUBLIC \r
6    "-//W3C//DTD HTML 4.01 Transitional//EN" \r
7    "http://www.w3.org/TR/html4/loose.dtd">\r
8 <html>\r
9 <head>\r
10    <title>${config["Mir.Name"]}</title>\r
11    <meta http-equiv="Content-Type" content="text/html; charset=${config["Mir.DefaultHTMLCharset"]}"> \r
12    <meta name="keywords" content="">\r
13    <meta name="description" content="">\r
14    <!-- <meta http-equiv="expires" content="599"> -->\r
15    <meta http-equiv="pragma" content="no-cache">\r
16    <link rel="stylesheet" type="text/css" href="/css/main.css" />\r
17 \r
18 </head>\r
19 \r
20 <body>\r
21 \r
22 <!--#include virtual="navigation.html" -->\r
23 \r
24          <table class="featuredArticleTable" cellspacing="0">\r
25             <tr>\r
26                <td class="content"><!--\r
27                begin featured articles\r
28                -->\r
29 \r
30                   <comment>\r
31                      begin breaking news\r
32                   </comment>\r
33                   <if breakingnews && breakingnews[0].text!=".">\r
34                      <div class="breakingNews">\r
35                         <p class="title">\r
36                            <b>${lang("startpage.breakingnews")}</b>\r
37                         </p>\r
38                         <assign stop="0">\r
39                         <list breakingnews as bn>\r
40                           <div>\r
41                           <if bn.text=="."><assign stop="1"></if>\r
42                           <if stop=="0">\r
43                               <p>\r
44                                  <span class="datestamp">${bn.creationdate.formatted["MMM dd hh:mm'<span>'a'</span>'"]}:</span>\r
45                                  ${bn.text}\r
46                               </p>\r
47                           </if>\r
48                           </div>\r
49                         </list>\r
50                      </div>\r
51                   </if>\r
52                   <comment>\r
53                      end breaking news\r
54                      begin features\r
55                   </comment>\r
56                   <comment>\r
57                      begin features\r
58                   </comment>\r
59                   <div class="featuredArticles">\r
60                      <list features as f>\r
61                         <assign forig=f.to_original>\r
62                            <if languagepreference>\r
63                               <assign i=f.to_translation(languagepreference)>\r
64                            <else>\r
65                               <assign i=f>\r
66                            </if>\r
67                            <p class="headline">\r
68                               <b><a\r
69                               href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html" \r
70                               >${i.title}</a></b>\r
71                            </p>\r
72                            <p class="summary">\r
73                               <small class="author">${forig.creator}&#160;|</small>\r
74                               <span class="lead">${i.subtitle}</span>\r
75                               <small><span class="comments">${i.commentcount} Comments</span>\r
76                               <a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html" class="readMore">${lang("general.readmore")}</a></small>\r
77                            </p>\r
78                      </list>\r
79                   </div>\r
80                   <comment>\r
81                      end features\r
82                   </comment>\r
83 \r
84                <!--\r
85                end featured articles\r
86                --></td>\r
87                <td class="margin"><div><!-- --></div></td>\r
88                <td class="image"><!--\r
89                begin featured image \r
90                --><div class="wrap">\r
91 \r
92                   <!--#include virtual="/fpincludes/fpimage.rand" -->\r
93 \r
94                   </div><!--\r
95                end featured image \r
96                --></td>\r
97             </tr>\r
98          </table>\r
99 \r
100          <table class="mostDiscussed" cellspacing="0">\r
101             <tr>\r
102                <td>\r
103                   <div class="mostDiscussedWrap">\r
104                      <list mostcomments as mc>\r
105                      <div class="storyWrap">      \r
106                         <p class="story">\r
107                            <!-- placeholder image for now, need icon per meta-category -->\r
108                            <a href="${config["Producer.DocRoot"]}/${language.code}/${mc.date.formatted["yyyy'/'MM"]}/${mc.id}.html"><img src="/img/placeholder.mds.gif" class="icon" width="30" height="30" alt="Most discussed stories" /></a>\r
109                            <span class="comments">${mc.commentcount}&#160;Comments</span>\r
110                            <a href="${config["Producer.DocRoot"]}/${language.code}/${mc.date.formatted["yyyy'/'MM"]}/${mc.id}.html">${mc.title}</a>\r
111                         </p>\r
112                      </div>\r
113                      </list>\r
114                \r
115                   </div>\r
116                   <div style="spacer" style="clear: both"><!-- --></div>\r
117                </td>\r
118             </tr>\r
119          </table>\r
120          \r
121          <table class="featuredPhotoStory" cellspacing="0">\r
122             <tr>\r
123                <td>\r
124                   <div class="wrap">\r
125                      <list startspecial as ss>\r
126                         <assign sorig=ss.to_original>\r
127                            <if languagepreference>\r
128                               <assign s=ss.to_translation(languagepreference)>\r
129                            <else>\r
130                               <assign s=ss>\r
131                            </if>\r
132   \r
133                           <if s.to_media_images >\r
134                                 <table class="imageWrap" cellspacing="0">\r
135                                  <tr>\r
136                                   <td class="image" style="background: url(/images/${s.to_media_images[0]["publish_path"]}) no-repeat top center;"><br /></td>\r
137                                  </tr>\r
138                                  <tr>\r
139                                   <td><small>${s.to_media_images[0]["title"]}</small></td>\r
140                                  </tr>\r
141                                 </table>\r
142                           </if>\r
143    \r
144                            <p class="title">\r
145                               <b><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html">${s.title}</a></b>\r
146                            </p>\r
147                            <p class="summary">\r
148                               <small class="author">${s.creator}&#160;|</small> \r
149                               ${s.description_parsed}\r
150                               <small><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html" class="readMore">more...</a></small>\r
151                            </p> \r
152                      </list>\r
153 \r
154                   </div>\r
155                   <div style="spacer" style="clear: both"><!-- --></div>\r
156                </td>\r
157             </tr>\r
158          </table>\r
159                \r
160          <table class="featuredCategories" cellspacing="0">\r
161             <tr>\r
162                <td>\r
163                   <div class="listWrap">\r
164                      <!--#include virtual="/${language.code}/randomcats/random1.html" -->\r
165                      <!--#include virtual="/${language.code}/randomcats/random2.html" -->\r
166                      <!--#include virtual="/${language.code}/randomcats/random3.html" -->\r
167                      <!--#include virtual="/${language.code}/randomcats/random4.html" -->\r
168                      <!--#include virtual="/${language.code}/randomcats/random5.html" -->\r
169                \r
170                 </div>\r
171                </td>\r
172                <td class="margin"><div><!-- --></div></td>\r
173                <td>\r
174                   <div class="listWrap">\r
175                      <!--#include virtual="/${language.code}/randomcats/random6.html" -->\r
176                      <!--#include virtual="/${language.code}/randomcats/random7.html" -->\r
177                      <!--#include virtual="/${language.code}/randomcats/random8.html" -->\r
178                      <!--#include virtual="/${language.code}/randomcats/random9.html" -->\r
179                      <!--#include virtual="/${language.code}/randomcats/random10.html" -->\r
180                   </div>\r
181                </td>\r
182             </tr>\r
183          </table>\r
184          \r
185       <!-- \r
186       end center column\r
187       --></td>\r
188       <td class="margin"><div><!-- --></div></td>\r
189       <td class="rightColumn"><!-- \r
190       begin right column\r
191       --><div class="wrap">\r
192 \r
193       <div class="listWrap">\r
194 \r
195          <div class="newswireWrap">\r
196             <b><a href="/${language.code}/">Newswire</a> | <a href="?category">Blogwire</a> |\r
197             <a href="https://nyc.traven.indymedia.org.uk/nyc/servlet/OpenMir">publish</a></b>\r
198          </div>\r
199 <comment>\r
200             <!-- #if expr="\"$DOCUMENT_URI\" = /?category/" \r
201             --><!-- #include virtual="/${language.code}/languagebar.html"\r
202             --><!-- #else\r
203             --><!-- #include virtual="/${language.code}/newswireinclude.html"\r
204             --><!-- #endif\r
205             -->\r
206             <!-- <iframe name="shazbot" id="shazbot" src="/${language.code}/newswireinclude.html" frameborder="0" style="overflow: hidden;"></iframe> -->\r
207 </comment>\r
208                 <!--#if expr="\"$QUERY_STRING\" = /category/" -->\r
209                 <!--#include virtual="/${language.code}/rssnewswireinclude.html" -->\r
210                 <!--#else -->\r
211                 <b><!--#echo var="QUERY_STRING" --></b>\r
212                 <!--#include virtual="/${language.code}/newswireinclude.html" -->               \r
213                 <!--#endif -->\r
214 \r
215 \r
216 \r
217       </div><!-- \r
218       end right column\r
219       --></td>\r
220       <td class="margin"><div><!-- --></div></td>\r
221    </tr>\r
222 </table>\r
223 \r
224 <!--#include virtual="/${language.code}/footer.html" -->\r