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 <link rel="stylesheet" type="text/css" href="/css/main.css" />
\r
20 <!--#include virtual="navigation.html" -->
\r
22 <table class="featuredArticleTable" cellspacing="0">
\r
24 <td class="content"><!--
\r
25 begin featured articles
\r
31 <if breakingnews && breakingnews[0].text!=".">
\r
32 <div class="breakingNews">
\r
34 <b>${lang("startpage.breakingnews")}</b>
\r
37 <list breakingnews as bn>
\r
39 <if bn.text=="."><assign stop="1"></if>
\r
42 <span class="datestamp">${bn.creationdate.formatted["MMM dd hh:mm'<span>'a'</span>'"]}:</span>
\r
57 <div class="featuredArticles">
\r
58 <list features as f>
\r
59 <assign forig=f.to_original>
\r
60 <if languagepreference>
\r
61 <assign i=f.to_translation(languagepreference)>
\r
65 <p class="headline">
\r
67 href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html"
\r
71 <small class="author">${forig.creator} |</small>
\r
72 <span class="lead">${i.subtitle}</span>
\r
73 <small><span class="comments">${i.commentcount} Comments</span>
\r
74 <a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html" class="readMore">${lang("general.readmore")}</a></small>
\r
83 end featured articles
\r
85 <td class="margin"><div><!-- --></div></td>
\r
86 <td class="image"><!--
\r
87 begin featured image
\r
88 --><div class="wrap">
\r
90 <!--#include virtual="/fpincludes/fpimage.rand" -->
\r
98 <table class="mostDiscussed" cellspacing="0">
\r
101 <div class="mostDiscussedWrap">
\r
102 <list mostcomments as mc>
\r
103 <div class="storyWrap">
\r
105 <!-- placeholder image for now, need icon per meta-category -->
\r
106 <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
107 <span class="comments">${mc.commentcount} Comments</span>
\r
108 <a href="${config["Producer.DocRoot"]}/${language.code}/${mc.date.formatted["yyyy'/'MM"]}/${mc.id}.html">${mc.title}</a>
\r
114 <div style="spacer" style="clear: both"><!-- --></div>
\r
119 <table class="featuredPhotoStory" cellspacing="0">
\r
123 <list startspecial as ss>
\r
124 <assign sorig=ss.to_original>
\r
125 <if languagepreference>
\r
126 <assign s=ss.to_translation(languagepreference)>
\r
131 <if s.to_media_images >
\r
132 <table class="imageWrap" cellspacing="0">
\r
134 <td class="image" style="background: url(/images/${s.to_media_images[0]["publish_path"]}) no-repeat top center;"><br /></td>
\r
137 <td><small>${s.to_media_images[0]["title"]}</small></td>
\r
143 <b><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html">${s.title}</a></b>
\r
145 <p class="summary">
\r
146 <small class="author">${s.creator} |</small>
\r
147 ${s.description_parsed}
\r
148 <small><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html" class="readMore">more...</a></small>
\r
153 <div style="spacer" style="clear: both"><!-- --></div>
\r
158 <table class="featuredCategories" cellspacing="0">
\r
161 <div class="listWrap">
\r
162 <!--#include virtual="/${language.code}/randomcats/random1.html" -->
\r
163 <!--#include virtual="/${language.code}/randomcats/random2.html" -->
\r
164 <!--#include virtual="/${language.code}/randomcats/random3.html" -->
\r
165 <!--#include virtual="/${language.code}/randomcats/random4.html" -->
\r
166 <!--#include virtual="/${language.code}/randomcats/random5.html" -->
\r
170 <td class="margin"><div><!-- --></div></td>
\r
172 <div class="listWrap">
\r
173 <!--#include virtual="/${language.code}/randomcats/random6.html" -->
\r
174 <!--#include virtual="/${language.code}/randomcats/random7.html" -->
\r
175 <!--#include virtual="/${language.code}/randomcats/random8.html" -->
\r
176 <!--#include virtual="/${language.code}/randomcats/random9.html" -->
\r
177 <!--#include virtual="/${language.code}/randomcats/random10.html" -->
\r
186 <td class="margin"><div><!-- --></div></td>
\r
187 <td class="rightColumn"><!--
\r
189 --><div class="wrap">
\r
191 <div class="listWrap">
\r
193 <div class="newswireWrap">
\r
194 <b><a href="/${language.code}/">Newswire</a> | <a href="?category">Blogwire</a> |
\r
195 <a href="https://nyc.traven.indymedia.org.uk/nyc/servlet/OpenMir">publish</a></b>
\r
198 <!-- #if expr="\"$DOCUMENT_URI\" = /?category/"
\r
199 --><!-- #include virtual="/${language.code}/languagebar.html"
\r
201 --><!-- #include virtual="/${language.code}/newswireinclude.html"
\r
204 <!-- <iframe name="shazbot" id="shazbot" src="/${language.code}/newswireinclude.html" frameborder="0" style="overflow: hidden;"></iframe> -->
\r
206 <!--#if expr="\"$QUERY_STRING\" = /category/" -->
\r
207 <!--#include virtual="/${language.code}/rssnewswireinclude.html" -->
\r
209 <b><!--#echo var="QUERY_STRING" --></b>
\r
210 <!--#include virtual="/${language.code}/newswireinclude.html" -->
\r
218 <td class="margin"><div><!-- --></div></td>
\r
222 <!--#include virtual="/${language.code}/footer.html" -->
\r