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=${lang("htmlcharset")}">
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.to_media_images>
15 <meta name="keywords" content="images"></meta>
17 <if article.to_media_audio>
18 <meta name="keywords" content="audio"></meta>
20 <if article.to_media_video>
21 <meta name="keywords" content="video"></meta>
23 <if article.to_media_other>
24 <meta name="keywords" content="other"></meta>
26 <style type="text/css">
27 body, h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote, div, span
28 {font-family:'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;}
29 a {text-decoration:none;}
30 #searchfield {font-size: 12px; width:113px; height:16px; background-color:#aaaaaa;}
31 #searchselect {font-size: 12px; width:120px; height:22px; background-color:#aaaaaa;}
32 #searchbutton {font-size: 12px; width:120px; height:20px; background-color:#aaaaaa; text-align: right;}
34 <script language="javascript">
35 function addToNewsletter(id){
36 var previousValue=getCookie("myNewsletter");
37 document.cookie="myNewsletter="+previousValue+","+id + ";path=/";
38 alert("Added article id to cookie!");
41 function getCookie(name){
43 var cookies = document.cookie;
45 if (cookies.indexOf(name) != -1){
46 var startpos = cookies.indexOf(name)+name.length+1;
47 var endpos = cookies.indexOf(";",startpos)-1;
48 if (endpos == -2) endpos = cookies.length;
49 return unescape(cookies.substring(startpos,endpos));
52 return false; // the cookie couldn't be found! it was never set before, or it expired.
60 <body bgcolor="#dddddd" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" link="#003399" alink="#cc0033" vlink="#660033" >
61 <table border="0" cellpadding="0" cellspacing="0" width="100%">
64 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#cc0033">
66 <td><a href="../../"><img src="../../../img/logo.gif" width="120" height="120" alt="((i))" border="0"></a></td>
69 <table cellpadding="4" cellspacing="0" border="0" width="100%" bgcolor="#cc0033">
71 <td><a href="../../"> <font size="-1" color="#dddddd"><b>${lang("general.start")}</b></font></a></td>
76 <!--#include virtual="../../navigation.inc" -->
78 <table cellpadding="6" cellspacing="0" border="0" width="100%"><tr><td>
81 <td valign="top" width="100%">
82 <table cellpadding="4" cellspacing="0" border="0" width="100%" bgcolor="#cc0033"><tr><td>
84 <font color="#dddddd" size="-1"><b>
85 <a href="${config["Producer.DocRoot"]}/${language.code}/static/mission.shtml"><font color="#dddddd">${lang("general.menu.missionStatement")} >></font></a>
86 <a href="${config["Producer.DocRoot"]}/${language.code}/static/moderation.shtml"><font color="#dddddd">${lang("general.menu.moderation")} >></font></a>
87 <a href="${config["Producer.DocRoot"]}/${language.code}/static/support.shtml"><font color="#dddddd">${lang("general.menu.support")} >></font></a>
88 <a href="${config["Producer.DocRoot"]}/${language.code}/static/mailinglists.shtml"><font color="#dddddd">${lang("general.menu.mailinglists")} >></font></a>
89 <a href="${config["Producer.DocRoot"]}/${language.code}/static/participate.shtml"><font color="#dddddd">${lang("general.menu.participate")} >></font></a>
92 <table cellpadding="30" cellspacing="0" border="0" width="80%"><tr><td>
94 <h2>${article.title}</h2>
96 <p><i><font size="-1">${article.creator}, ${article.creationdate.formatted["dd.MM.yyyy HH:mm"]}</font></i></p>
98 <p>${article.description_parsed}</p>
100 <list article.to_media_audio as media>
102 <a href="${media["publish_server"]}${media["publish_path"]}">
103 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}
107 <list article.to_media_video as media>
109 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
110 <a href="${media["publish_server"]}${media["publish_path"]}">
111 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
114 <list article.to_media_other as media>
116 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
117 <a href="${media["publish_server"]}${media["publish_path"]}">
118 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
122 <list article.to_media_images as image>
124 <img src="${image["publish_server"]}${image["publish_path"]}"
125 border="0" width="${image["img_width"]}"
126 height="${image["img_height"]}" alt="${image["title"]}">
127 <br><i>${image["title"]}</i>
132 <p><font size="-1">${article.content_data_parsed}</font></p>
134 <if article.creator_main_url || article.creator_email>
137 <if article.creator_email>
138 <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>
140 <if article.creator_main_url>
141 <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>
149 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#669999">
150 <a href="${config["Producer.OpenAction"]}?do=getpdf&id=${article.id}&forIE=.pdf">
151 <font color="#dddddd" size="+1"><b>${lang("article.get_as_pdf")}>></b></font></a>
154 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#669999">
155 <a href="javascript:addToNewsletter(${article.id})">
156 <font color="#dddddd" size="+1"><b>${lang("article.add_to_pdf")}>></b></font></a>
159 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#669999">
160 <a href="${config["Producer.OpenAction"]}?do=mail&mail_aid=${article.id}&mail_language=${language.code}">
161 <font color="#dddddd" size="+1"><b>${lang("article.send_as_email")}>></b></font></a>
164 <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td bgcolor="#669999">
165 <a href="${config["Producer.OpenAction"]}?do=addcomment&aid=${article.id}&language=${language.code}">
166 <font color="#dddddd" size="+1"><b>${lang("article.addcomment")}>></b></font></a>
168 <if article.to_comments>
169 <table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td bgcolor="#99cccc">
170 <list article.to_comments as c>
172 <font size="+1"><b>${utility.encodeHTML(c.title)}</b></font><br>
173 <i>${c.creationdate.formatted["dd.MM.yyyy HH:mm"]}</i><br>
175 <list c.to_media_audio as media>
176 <a href="${media["publish_server"]}${media["publish_path"]}">
177 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}
180 <list c.to_media_video as media>
181 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
182 <a href="${media["publish_server"]}${media["publish_path"]}">
183 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
185 <list c.to_media_other as media>
186 <img src="../../../img/${media["big_icon"]}" border="0" alt="">
187 <a href="${media["publish_server"]}${media["publish_path"]}">
188 ${media["title"]} - ${media["media_descr"]} ${media["human_readable_size"]}</a>
191 <list c.to_media_images as image>
192 <img src="${image["publish_server"]}${image["publish_path"]}"
193 border="0" width="${image["img_width"]}"
194 height="${image["img_height"]}" alt="${image["title"]}">
195 <br><i>${image["title"]}</i>
199 ${c.description_parsed}
200 <if c.email || c.main_url || c.address || c.phone || c.creator>
204 ${utility.encodeHTML(c.creator)}>
208 <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>
212 <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.email)}</a>