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
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
22 <!--#include virtual="navigation.html" -->
\r
24 <table class="featuredArticleTable" cellspacing="0">
\r
26 <td class="content"><!--
\r
27 begin featured articles
\r
33 <if breakingnews && breakingnews[0].text!=".">
\r
34 <p class="breakingNews">
\r
35 <b class="title">${lang("startpage.breakingnews")}</b>
\r
37 <list breakingnews as bn>
\r
38 <if bn.text=="."><assign stop="1"></if>
\r
40 ${bn.creationdate.formatted["dd-MM-yyyy HH:mm"]}:
\r
53 <div class="featuredArticles">
\r
54 <list features as f>
\r
55 <assign forig=f.to_original>
\r
56 <if languagepreference>
\r
57 <assign i=f.to_translation(languagepreference)>
\r
61 <p class="headline">
\r
63 href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html"
\r
67 <small class="author">${forig.creator} |</small>
\r
68 <span class="lead">${i.subtitle}</span>
\r
69 <small><span class="comments">${i.commentcount} Comments</span>
\r
70 <a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html" class="readMore">${lang("general.readmore")}</a></small>
\r
79 end featured articles
\r
81 <td class="margin"><div><!-- --></div></td>
\r
82 <td class="image"><!--
\r
83 begin featured image
\r
84 --><div class="wrap">
\r
86 <!--#include virtual="/fpincludes/fpimage.rand" -->
\r
94 <table class="mostDiscussed" cellspacing="0">
\r
97 <div class="mostDiscussedWrap">
\r
98 <list mostcomments as mc>
\r
99 <div class="storyWrap">
\r
101 <!-- placeholder image for now, need icon per meta-category -->
\r
102 <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
103 <span class="comments">${mc.commentcount} Comments</span>
\r
104 <a href="${config["Producer.DocRoot"]}/${language.code}/${mc.date.formatted["yyyy'/'MM"]}/${mc.id}.html">${mc.title}</a>
\r
110 <div style="spacer" style="clear: both"><!-- --></div>
\r
115 <table class="featuredPhotoStory" cellspacing="0">
\r
119 <list startspecial as ss>
\r
120 <assign sorig=ss.to_original>
\r
121 <if languagepreference>
\r
122 <assign s=ss.to_translation(languagepreference)>
\r
127 <if s.to_media_images >
\r
128 <table class="imageWrap" cellspacing="0">
\r
130 <td class="image" style="background: url(/images/${s.to_media_images[0]["publish_path"]}) no-repeat top center;"><br /></td>
\r
133 <td><small>${s.to_media_images[0]["title"]}</small></td>
\r
139 <b><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html">${s.title}</a></b>
\r
141 <p class="summary">
\r
142 <small class="author">${s.creator} |</small>
\r
143 ${s.description_parsed}
\r
144 <small><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html" class="readMore">more...</a></small>
\r
149 <div style="spacer" style="clear: both"><!-- --></div>
\r
154 <table class="featuredCategories" cellspacing="0">
\r
157 <div class="listWrap">
\r
158 <!--#include virtual="/${language.code}/randomcats/random1.html" -->
\r
159 <!--#include virtual="/${language.code}/randomcats/random2.html" -->
\r
160 <!--#include virtual="/${language.code}/randomcats/random3.html" -->
\r
161 <!--#include virtual="/${language.code}/randomcats/random4.html" -->
\r
162 <!--#include virtual="/${language.code}/randomcats/random5.html" -->
\r
166 <td class="margin"><div><!-- --></div></td>
\r
168 <div class="listWrap">
\r
169 <!--#include virtual="/${language.code}/randomcats/random6.html" -->
\r
170 <!--#include virtual="/${language.code}/randomcats/random7.html" -->
\r
171 <!--#include virtual="/${language.code}/randomcats/random8.html" -->
\r
172 <!--#include virtual="/${language.code}/randomcats/random9.html" -->
\r
173 <!--#include virtual="/${language.code}/randomcats/random10.html" -->
\r
182 <td class="margin"><div><!-- --></div></td>
\r
183 <td class="rightColumn"><!--
\r
185 --><div class="wrap">
\r
187 <div class="listWrap">
\r
189 <div class="newswireWrap">
\r
190 <b><a href="/${language.code}/">Newswire</a> | <a href="?category">Blogwire</a> |
\r
191 <a href="https://nyc.traven.indymedia.org.uk/nyc/servlet/OpenMir">publish</a></b>
\r
194 <!-- #if expr="\"$DOCUMENT_URI\" = /?category/"
\r
195 --><!-- #include virtual="/${language.code}/languagebar.html"
\r
197 --><!-- #include virtual="/${language.code}/newswireinclude.html"
\r
200 <!-- <iframe name="shazbot" id="shazbot" src="/${language.code}/newswireinclude.html" frameborder="0" style="overflow: hidden;"></iframe> -->
\r
202 <!--#if expr="\"$QUERY_STRING\" = /category/" -->
\r
203 <!--#include virtual="/${language.code}/rssnewswireinclude.html" -->
\r
205 <b><!--#echo var="QUERY_STRING" --></b>
\r
206 <!--#include virtual="/${language.code}/newswireinclude.html" -->
\r
214 <td class="margin"><div><!-- --></div></td>
\r
218 <!--#include virtual="/${language.code}/footer.html" -->
\r