took out publish_path because it doesn't exist for content only for media
[nyc.indymedia.org.git] / etc / producer / topicpage.template
index d30b89f..fef5c3d 100755 (executable)
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC 
+   "-//W3C//DTD HTML 4.01 Transitional//EN" 
+   "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
-  <meta http-equiv="Content-Type" content="text/html; charset=${config["Mir.DefaultHTMLCharset"]}">
-    <title>${config["Mir.Name"]} | ${topic.title}</title>
-  <meta name="keywords" content="${lang("general.keywords")}">
-  <meta name="description" content="${topic.description}">
-  <meta name="dc:title" content="${topic.title}">
-  <meta name="dc:creator" content="">
-  <meta name="dc:subject" content="${topic.title}">
-  <meta name="dc:description" content="${topic.title}">
-  <meta name="dc:publisher" content="">
-  <meta name="dc:date" content="${config.now.formatted.dc}">
-  <meta name="dc:language" content="${language.code}">
-  <meta name="dc:coverage" content="">
-  <meta name="dc:rights" content="">
-  <meta http-equiv="expires" content="599">
-  <meta http-equiv="pragma" content="no-cache">
-  <style type="text/css">
-    body, h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote, div, span
-                   {font-family:'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;}
-    a              {text-decoration:none;}
-    #searchfield   {font-size: 12px; width:113px; height:16px;  background-color:#aaaaaa;}
-    #searchselect  {font-size: 12px; width:120px; height:22px;  background-color:#aaaaaa;}
-    #searchbutton  {font-size: 12px; width:120px; height:20px; background-color:#aaaaaa; text-align: right;}
-  </style>
-</head>
+   <meta http-equiv="Content-Type" content="text/html; charset=${config["Mir.DefaultHTMLCharset"]}">
+   <title>${config["Mir.Name"]} | ${topic.title}</title>
+   <meta name="keywords" content="${lang("general.keywords")}">
+   <meta name="description" content="${topic.description}">
+   <meta name="dc:title" content="${topic.title}">
+   <meta name="dc:creator" content="">
+   <meta name="dc:subject" content="${topic.title}">
+   <meta name="dc:description" content="${topic.title}">
+   <meta name="dc:publisher" content="">
+   <meta name="dc:date" content="${config.now.formatted.dc}">
+   <meta name="dc:language" content="${language.code}">
+   <meta name="dc:coverage" content="">
+   <meta name="dc:rights" content="">
+   <meta http-equiv="expires" content="599">
+   <meta http-equiv="pragma" content="no-cache">
+   <link rel="stylesheet" type="text/css" href="http://sarai.indymedia.org/~patrick/mir.nyc/css/main.css" />
 
-<body bgcolor="#dddddd" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" link="#003399" alink="#cc0033" vlink="#660033" >
+</head>
 
-<table border="0" cellpadding="0" cellspacing="0" width="100%">
-  <tr>
-    <td valign="top">
-      <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#cc0033">
-        <tr>
-          <td><a href="${config["Producer.DocRoot"]}/${language.code}/"><img src="${config["Producer.DocRoot"]}/img/logo.gif" width="120" height="120" alt="((i))" border="0"></a></td>
-        </tr>
-      </table>
-      <table cellpadding="4" cellspacing="0" border="0" width="100%" bgcolor="#cc0033">
-        <tr>
-          <td><a href="${config["Producer.DocRoot"]}/${language.code}/">&nbsp;<font color="#dddddd" size="-1"><b>${lang("general.start")}</b></font></a></td>
-        </tr>
-      </table>
-      <br>
-      <!--#include virtual="../navigation.inc" -->
-    </td>
-    <td valign="top" width="100%">
-      <table cellpadding="4" cellspacing="0" border="0" width="100%" bgcolor="#cc0033">
-        <tr>
-          <td>
-            &nbsp;&nbsp;
-            <font color="#dddddd" size="-1"><b>
-          <a href="${config["Producer.DocRoot"]}/${language.code}/static/mission.shtml"><font color="#dddddd">${lang("general.menu.missionStatement")}&nbsp;&gt;&gt;</font></a> &nbsp;
-          <a href="${config["Producer.DocRoot"]}/${language.code}/static/moderation.shtml"><font color="#dddddd">${lang("general.menu.moderation")}&nbsp;&gt;&gt;</font></a>  &nbsp;
-          <a href="${config["Producer.DocRoot"]}/${language.code}/static/support.shtml"><font color="#dddddd">${lang("general.menu.support")}&nbsp;&gt;&gt;</font></a>  &nbsp;
-          <a href="${config["Producer.DocRoot"]}/${language.code}/static/mailinglists.shtml"><font color="#dddddd">${lang("general.menu.mailinglists")}&nbsp;&gt;&gt;</font></a> &nbsp;
-          <a href="${config["Producer.DocRoot"]}/${language.code}/static/participate.shtml"><font color="#dddddd">${lang("general.menu.participate")}&nbsp;&gt;&gt;</font></a>
-            </b></font>
-          </td>
-        </tr>
-      </table>
-      <table cellpadding="0" cellspacing="0" border="0" width="100%">
-        <tr>
-          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
-          <td width="100%">
-            <br>
-            <br>
-            <font color="#cc0033" size="+2"><b>${topic.title}</b></font>
-            <br>
-            <br>
-          </td>
-          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
-          <td valign="top">&nbsp;
-          </td>
-          <td>
-          &nbsp;&nbsp;&nbsp;&nbsp;
-          </td>
-        </tr>
-        <tr>
-          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
-          <td>
-            <br>
-              <!--- topic-special ---> <comment></comment>
-                               <if (batch.current.index==batch.first.index)>
-                               <list special as ss>
-                                 <assign sorig=ss.to_original> 
-                                 <if languagepreference>
-                                   <assign s=ss.to_translation(languagepreference)>
-                                 <else>
-                                   <assign s=ss>
-                                 </if>
+<body class="interior" class="topicPage">
 
-                   <table width="100%" border="0" cellspacing="0" cellpadding="10" bgcolor="#eeeeee"><tr><td>
-                       <p><font size="+2">
-                       <a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.shtml"><b>${s.title}</b></a>
-                       </font><br>
-                          <font size="-2">${sorig.creator} <if sorig.id!=s.id>(${lang("general.translatedby", s.creator)})</if><if s.creator || sorig.creator>, </if> ${sorig.creationdate.formatted["dd-MM-yyyy - HH:mm"]}</font></p>
-                       <p><font size="-1">
-                        <if sorig.to_media_audio >
-                          <img align="left" vspace="4" hspace="8"
-                            src="${config["Producer.DocRoot"]}/img/${sorig.to_media_audio[0]["big_icon"]}">
-                        </if>
-                        <if sorig.to_media_video >
-                          <img align="left" vspace="4" hspace="8"
-                            src="${config["Producer.DocRoot"]}/img/${sorig.to_media_video[0]["big_icon"]}">
-                        </if>
-                        <if sorig.to_media_other >
-                          <img align="left" vspace="4" hspace="8"
-                             src="${config["Producer.DocRoot"]}/img/${sorig.to_media_other[0]["big_icon"]}">
-                        </if>
-                        <if sorig.to_media_images >
-                          <img align="left" vspace="4" hspace="8"
-                            src="${sorig.to_media_images[0]["icon_path"]}"
-                            width="${sorig.to_media_images[0]["icon_width"]}"
-                            height="${sorig.to_media_images[0]["icon_height"]}"
-                            border=0 alt="${sorig.to_media_images[0]["title"]}">
-                        </if>
-                        ${s.description_parsed}
-                    <br clear="all">
-                    <a href="${config["Producer.DocRoot"]}/${language.code}${s.publish_path}${s.id}.shtml"><b>${lang("general.readmore")} &gt;&gt;</b></a>
-                    </font></p>
+<!--#include virtual="/${language.code}/navigation.html" -->
 
-                   </td></tr></table>
-                </list>
-                               </if>
-              <!--- /topic-special --->
+         <p class="pageTitle">
+            ${topic.title}
+         </p>
+         <div class="featuredArticles">
 
-              <!--- articles ---> <comment></comment>
-                <list articles as a>
-                 <assign aorig=a.to_original>
-               <if languagepreference>
-                 <assign i=a.to_translation(languagepreference)>
-               <else>
-                 <assign i=a>
-               </if>
+         <!-- begin topic special -->
+         <if (batch.current.index==batch.first.index)>
+            <list special as ss>
+               <assign sorig=ss.to_original>
+               <if languagepreference>
+                  <assign s=ss.to_translation(languagepreference)>
+               <else>
+                  <assign s=ss>
+               </if>
+         
+            <p class="title">
+               <b><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html">${s.title}</a></b>
+            </p>
+            <p class="summary">
+               <small class="author">${sorig.creator}<if sorig.id!=s.id>(${lang("general.translatedby", s.creator)})</if>&#160;|</small> ${s.description_parsed}
+               <small><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html" class="readMore">${lang("general.readmore")}</a>&#160; 
+               <span class="comments">${s.commentcount}&#160;Comments</span></small>
+            </p>
 
-                  <p><font size="+1">
-                  <a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.shtml"><b>${i.title}</b></a>
-                  </font><br>
-                     <font size="-2">${aorig.creator} <if aorig.id!=i.id>(${lang("general.translatedby", i.creator)})</if><if i.creator || aorig.creator>, </if> ${aorig.creationdate.formatted["dd-MM-yyyy - HH:mm"]}</font></p>
-                  <p><font size="-1">
-                  <if aorig.to_media_audio >
-                  <img align="left" vspace="4" hspace="8"
-                       src="${config["Producer.DocRoot"]}/img/${aorig.to_media_audio[0]["big_icon"]}">
-                  </if>
-                  <if aorig.to_media_video >
-                  <img align="left" vspace="4" hspace="8"
-                       src="${config["Producer.DocRoot"]}/img/${aorig.to_media_video[0]["big_icon"]}">
-                  </if>
-                  <if aorig.to_media_other >
-                  <img align="left" vspace="4" hspace="8"
-                       src="${config["Producer.DocRoot"]}/img/${aorig.to_media_other[0]["big_icon"]}">
-                  </if>
-                  <if aorig.to_media_images >
-                  <img align="left" vspace="4" hspace="8"
-                       src="${aorig.to_media_images[0]["icon_path"]}"
-                       width="${aorig.to_media_images[0]["icon_width"]}"
-                       height="${aorig.to_media_images[0]["icon_height"]}"
-                       border=0 alt="${aorig.to_media_images[0]["title"]}">
-                  </if>
-                  ${i.description_parsed}
-                  <br clear="all">
-                  <a href="${config["Producer.DocRoot"]}/${language.code}${i.publish_path}${i.id}.shtml"><b>${lang("general.readmore")} &gt;&gt;</b></a>
-                  </font></p>
+            </list>
+         </if>
+         <!-- end topic-special -->
+         
+         <!-- begin articles -->
+         <list articles as a>
+            <assign aorig=a.to_original>
+            <if languagepreference>
+               <assign i=a.to_translation(languagepreference)>
+            <else>
+               <assign i=a>
+            </if>
 
-                  <br>
-                </list>
-              <!--- /articles --->
+            <p class="title">
+               <b><a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html">${i.title}</a></b>
+            </p>
+            <p class="summary">
+               <small class="author">${aorig.creator}<if aorig.id!=i.id>(${lang("general.translatedby", i.creator)})</if>&#160;|</small> ${i.description_parsed}
+               <small><a href="${config["Producer.DocRoot"]}/${language.code}/${i.date.formatted["yyyy'/'MM"]}/${i.id}.html" class="readMore">${lang("general.readmore")}</a>&#160; 
+               <span class="comments">${i.commentcount}&#160;Comments</span></small>
+            </p>
+        </list>
+         <!-- end articles -->
+         
+         <!-- begin next/previous -->
+         <if batch.current.index!=batch.first.index>
+            <a href="${docPrefix}${batch.previous.identifier}${docSuffix}">${lang("general.page.prefix")} ${batch.previous.index}</a>
+         </if>
+         <if batch.current.index!=batch.first.index && batch.current.index!=batch.last.index>
+            |
+         </if>
+         <if batch.next>
+            <a href="${docPrefix}${batch.next.identifier}${docSuffix}">${lang("general.page.prefix")} ${batch.next.index}</a>
+         </if>
+         <!-- end next/previous -->
+         
+         <!--#include virtual="${docPrefix}nav${docSuffix}" -->
 
+         </div>
 
-          </td>
-          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
-          <td valign="top">
-                       &nbsp;
-          </td>
-          <td>
-          &nbsp;&nbsp;&nbsp;&nbsp;
-          </td>
-        </tr>
-      </table>
-    </td>
-  </tr>
+      <!-- 
+      end center column
+      --></td>
+      <td class="margin"><div><!-- --></div></td>
+      <td class="rightColumn"><!-- 
+      begin right column
+      --><div class="wrap">
 
-<!-- the rest -->
-  <tr>
-  <td>&nbsp;</td>
-  <table width="100%">
-                       <!--- Page Navigation --->
-               <tr><td colspan="4" bgcolor="#CCCCCC"><br></td></tr>
-               <tr>
-                       <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
-                       <td align="left" valign="top">
-                         <if batch.current.index!=batch.first.index>
-                <a href="${docPrefix}${batch.previous.identifier}${docSuffix}"><font><b>&lt;&lt; ${lang("general.page.prefix")} ${batch.previous.index}</b></font></a>
-              </if>
-              <if batch.current.index!=batch.first.index && batch.current.index!=batch.last.index>
-                |
-              </if>
-              <if batch.next>
-                <a href="${docPrefix}${batch.next.identifier}${docSuffix}"><font><b>${lang("general.page.prefix")} ${batch.next.index} &gt;&gt;</b></font></a>
-              </if>
-                       </td>
-                       <td>
-                       &nbsp;
-                       </td>
-                       <td align="right" valign="top">
-                       <!--#include virtual="${docPrefix}nav${docSuffix}" -->
-                       </td>
-                       <td>&nbsp;<br><br><br></td>
-               </tr>
-  </table>
+      <div class="listWrap">
 
+         <ul class="newswire">
+            <list newswire as nn>
+               <assign norig=nn.to_original>
+               <if languagepreference>
+                  <assign n=nn.to_translation(languagepreference)>
+               <else>
+                  <assign n=nn>
+               </if>
+               <if n.to_original.to_article_type==articletype.newswire>
+                  <li>
+                     <p class="title">
+                        <img src="http://sarai.indymedia.org/~patrick/mir.nyc/img/video.666.gif" class="icon" width="10" height="8" alt="" />
+                        <a href="${config["Producer.DocRoot"]}/${language.code}/${n.date.formatted.yyyy}/${n.date.formatted.MM}/${n.id}.html"
+                     </p>
+                     <p class="datestamp">
+                        ${n.date.formatted.MMM} ${n.date.formatted.dd}th,
+                        <span class="comments">${n.commentcount} Comments</span>
+                     </p>
+                  </li>
+               </if>
+            </list>
+         </ul>
 
-  </tr>
+      </div><!-- 
+      end right column
+      --></td>
+      <td class="margin"><div><!-- --></div></td>
+   </tr>
 </table>
-</body>
-</html>
+
+<!--#include virtual="/${language.code}/footer.html" -->
+