2 Template file for an article.
5 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8 <meta http-equiv="Content-Type" content="text/html; charset=${config["Mir.DefaultHTMLCharset"]}">
9 <title>${config["Mir.Name"]} | ${article.title}</title>
10 <meta name="keywords" content="indymedia,imc">
11 <meta name="description" content="indymedia,imc">
12 <meta http-equiv="expires" content="599">
13 <meta http-equiv="pragma" content="no-cache">
14 <if article.mediacount!=0>
15 <if article.to_media_images>
16 <meta name="keywords" content="images"></meta>
18 <if article.to_media_audio>
19 <meta name="keywords" content="audio"></meta>
21 <if article.to_media_video>
22 <meta name="keywords" content="video"></meta>
24 <if article.to_media_other>
25 <meta name="keywords" content="other"></meta>
28 <style type="text/css">
29 body, h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote, div, span
30 {font-family:'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;}
31 a {text-decoration:none;}
32 #searchfield {font-size: 12px; width:113px; height:16px; background-color:#aaaaaa;}
33 #searchselect {font-size: 12px; width:120px; height:22px; background-color:#aaaaaa;}
34 #searchbutton {font-size: 12px; width:120px; height:20px; background-color:#aaaaaa; text-align: right;}
36 <script language="javascript">
37 function addToNewsletter(id){
38 var previousValue=getCookie("myNewsletter");
39 document.cookie="myNewsletter="+previousValue+","+id + ";path=/";
40 alert("Added article id to cookie!");
43 function clearNewsletter(){
44 document.cookie="myNewsletter= ;path=/";
45 alert("newsletter erased!");
48 function getNewsletter(){
49 var cookieValue=getCookie("myNewsletter");
51 location.replace('${config["Producer.OpenAction"]}?do=getpdf&id='+cookieValue+'&forIE=.pdf');
53 location.href = '${config["Producer.OpenAction"]}?do=getpdf&id='+cookieValue+'&forIE=.pdf';
56 function getCookie(name){
58 var cookies = document.cookie;
60 if (cookies.indexOf(name) != -1){
61 var startpos = cookies.indexOf(name)+name.length+1;
62 var endpos = cookies.indexOf(";",startpos)-1;
63 if (endpos == -2) endpos = cookies.length;
64 return unescape(cookies.substring(startpos,endpos));
67 return false; // the cookie couldn't be found! it was never set before, or it expired.
75 <body bgcolor="#dddddd" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" link="#003399" alink="#cc0033" vlink="#660033" >
76 <table border="0" cellpadding="0" cellspacing="0" width="100%">
79 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#cc0033">
81 <td><a href="../../"><img src="../../../img/logo.gif" alt="((i))" width="120" height="120" border="0"></a>
86 <td bgcolor="#CC6666">
87 <a href="../../"> <font size="-1" color="#DDDDDD"><b>${lang("general.start")}</b></font></a>
94 <!--#include virtual="../../navigation.inc" -->
96 <table cellpadding="6" cellspacing="0" border="0" width="100%"><tr><td>
99 <td valign="top" width="100%">
100 <table cellpadding="4" cellspacing="0" border="0" width="100%" bgcolor="#cc0033"><tr><td>
101 <font color="#dddddd" size="-1"><b>
102 <a href="${config["Producer.DocRoot"]}/${language.code}/static/mission.shtml"><font color="#dddddd">${lang("general.menu.missionStatement")} >></font></a>
103 <a href="${config["Producer.DocRoot"]}/${language.code}/static/moderation.shtml"><font color="#dddddd">${lang("general.menu.moderation")} >></font></a>
104 <a href="${config["Producer.DocRoot"]}/${language.code}/static/support.shtml"><font color="#dddddd">${lang("general.menu.support")} >></font></a>
105 <a href="${config["Producer.DocRoot"]}/${language.code}/static/mailinglists.shtml"><font color="#dddddd">${lang("general.menu.mailinglists")} >></font></a>
106 <a href="${config["Producer.DocRoot"]}/${language.code}/static/participate.shtml"><font color="#dddddd">${lang("general.menu.participate")} >></font></a>
109 <table cellpadding="30" cellspacing="0" border="0" width="80%"><tr><td>
111 <h2>${article.title}</h2>
113 <p><i><font size="-1">${article.creator}, ${article.creationdate.formatted["dd.MM.yyyy HH:mm"]}</font></i></p>
115 <p>${article.description_parsed}</p>
117 <if article.mediacount!=0>
119 <list article.to_media_audio as media>
121 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
122 <a href="${media["publish_server"]}${media["publish_path"]}">
123 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}
128 <list article.to_media_video as media>
130 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
131 <a href="${media["publish_server"]}${media["publish_path"]}">
132 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
136 <list article.to_media_other as media>
138 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
139 <a href="${media["publish_server"]}${media["publish_path"]}">
140 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
144 <list article.to_media_images as image>
146 <img src="${image["publish_server"]}${image["publish_path"]}"
147 border="0" width="${image["img_width"]}"
148 height="${image["img_height"]}" alt="${image["title"]}">
149 <br><i>${image["title"]}</i>
155 <p><font size="-1">${article.content_data_parsed}</font></p>
157 <if article.creator_main_url || article.creator_email>
160 <if article.creator_email>
161 <img src="../../../img/mail_small.gif" width="12" height="10" border="0" alt="-"> ${lang("article.email.prefix")}: <a href="mailto:${article.creator_email}">${article.creator_email}</a><br>
163 <if article.creator_main_url>
164 <img src="../../../img/link_small.gif" width="12" height="10" border="0" alt=""> ${lang("article.homepage.prefix")}: <a href="${article.creator_main_url}" target="extern">${article.creator_main_url}</a><br>
172 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#669999">
173 <a href="${config["Producer.OpenAction"]}?do=getpdf&id=${article.id}&forIE=.pdf">
174 <font color="#dddddd" size="-1"><b>${lang("article.get_as_pdf")} >></b></font></a>
177 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#669999">
178 <a href="javascript:addToNewsletter(${article.id})">
179 <font color="#dddddd" size="-1"><b>${lang("article.add_to_pdf")} >></b></font></a>
182 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#669999">
183 <a href="javascript:getNewsletter()">
184 <font color="#dddddd" size="-1"><b>${lang("article.newsletter_checkout")} >></b></font></a>
187 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#83B0B0">
188 <a href="${config["Producer.OpenAction"]}?do=mail&mail_aid=${article.id}&mail_language=${language.code}">
189 <font color="#dddddd" size="+1"><b>${lang("article.send_as_email")} >></b></font></a>
192 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#83B0B0">
193 <a href="${config["Producer.OpenAction"]}?do=opensession&sessiontype=comment&to_media=${article.id}&language=${language.code}">
194 <font color="#dddddd" size="+1"><b>${lang("article.addcomment")} >></b></font></a>
196 <if article.to_comments>
197 <table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td bgcolor="#A8D0D0">
198 <list article.to_comments as c>
200 <font size="+1"><b>${utility.encodeHTML(c.title)}</b></font><br>
201 <i><font size="-1">${c.creationdate.formatted["dd.MM.yyyy - HH:mm"]}</font></i><br>
203 <list c.to_media_audio as media>
204 <a href="${media["publish_server"]}${media["publish_path"]}">
205 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}
208 <list c.to_media_video as media>
209 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
210 <a href="${media["publish_server"]}${media["publish_path"]}">
211 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
213 <list c.to_media_other as media>
214 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
215 <a href="${media["publish_server"]}${media["publish_path"]}">
216 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
219 <list c.to_media_images as image>
220 <img src="${image["publish_server"]}${image["publish_path"]}"
221 border="0" width="${image["img_width"]}"
222 height="${image["img_height"]}" alt="${image["title"]}">
223 <br><i>${image["title"]}</i>
227 ${c.description_parsed}
228 <if c.email || c.main_url || c.address || c.phone || c.creator>
232 ${utility.encodeHTML(c.creator)}>
236 <img src="../../../img/mail_small.gif" width="12" height="10" border="0" alt="">${lang("article.email.prefix")}: <a href="mailto:${utility.encodeHTML(c.email)}">${utility.encodeHTML(c.email)}</a>
240 <img src="../../../img/link_small.gif" width="12" height="10" border="0" alt="">${lang("article.homepage.prefix")}: <a href="${utility.encodeHTML(c.main_url)}" target="_blank">${utility.encodeHTML(c.main_url)}</a>