changed the way media handling works a little. now much less prone to ClassCastExcept...
[mir.git] / templates-dist / producer / topiclist.template
1 <html>
2 <head>
3 <title>mir.indymedia.de: ${topic.title}</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <link rel="stylesheet" href="/style/mir.css" type="text/css">
6 </head>
7
8 <body bgcolor="#CCCCCC">
9 <table width="760" border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#000000">
10   <tr bgcolor="#FFFFFF"> 
11     <td valign="top" align="left" width="150" bgcolor="#666666"> 
12       <table width="150" border="0" cellspacing="0" cellpadding="0">
13         <tr> 
14           <td width="140">
15              <a href="${config.productionhost}${config.docroot}">
16              <img src="images/mirlogo.jpg" width="150" height="205" border="0">
17              </a>
18           </td>
19         </tr>
20         <tr valign="top"> 
21           <td width="140" bgcolor="#666666"> 
22             <table width="100%" border="0" cellspacing="2" cellpadding="0">
23               <tr> 
24                 <td> 
25                 <!--# include virtual="navigation.inc" -->
26                 </td>
27               </tr>
28             </table>
29           </td>
30         </tr>
31       </table>
32     </td>
33     <td align="left" valign="top" colspan="2" height="100%">
34       <table width="100%" border="0" cellspacing="0" cellpadding="0">
35         <tr> 
36           <td> 
37             <table width="100%" border="0" cellspacing="0" cellpadding="0">
38               <tr> 
39                 <td><img src="images/mirfont.gif" width="600" height="68"></td>
40               </tr>
41             </table>
42           </td>
43         </tr>
44         <tr bgcolor="#000000"> 
45           <td height="1"><img src="images/1pixel.gif" width="1" height="1"></td>
46         </tr>
47         <tr> 
48           <td align="left" valign="top">
49             <h2> ${topic.title}</h2> 
50             <table width="100%" border="0" cellpadding="0" cellspacing="2" height="100%">
51               <tr> 
52                 <td width="100%" valign="top"> 
53                 <!--- start-special ---> 
54                   <if special> 
55                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
56                     <tr> 
57                       <td> 
58                         <h3>${special.title}</h3>
59                         <h4><i>${special.creator}, ${special.webdb_create_formatted}</i></h4>
60                         <p> 
61                 <if special.to_media_audio && special.to_media_audio[0]["is_published"]=="1"> 
62                   ${special.to_media_audio[0]["list"]}
63                 </if> 
64                                   <if special.to_media_video && special.to_media_video[0]["is_published"]=="1"> 
65                   ${special.to_media_video[0]["list"]}
66                 </if> 
67                                   <if special.to_media_other && special.to_media_other[0]["is_published"]=="1"> 
68                   ${special.to_media_other[0]["list"]}
69                 </if> 
70                 <p>
71                                   <if special.to_media_images && special.to_media_images[0]["is_published"]=="1"> 
72                   ${special.to_media_images[0]["list"]}
73                 </if> 
74                           ${special.description} </p>
75                         <p align="right">[<a href="${config.docroot}${special.publish_path}${special.id}.shtml">read</a>]</p>
76                       </td>
77                     </tr>
78                   </table>
79                   </if> 
80                   <!--- start-special --->
81                   <!--- features ---> 
82                   <list contentlist as i> 
83                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
84                     <tr> 
85                       <td> 
86                         <h3>${i.title}</h3>
87                         <h4><i>${i.creator}, ${i.webdb_create_formatted}</i></h4>
88                         <p>                      
89                 <if i.to_media_audio && i.to_media_audio[0]["is_published"]=="1"> 
90                   ${i.to_media_audio[0]["list"]}
91                 </if> 
92                                   <if i.to_media_video && i.to_media_video[0]["is_published"]=="1"> 
93                   ${i.to_media_video[0]["list"]}
94                 </if> 
95                                   <if i.to_media_other && i.to_media_other[0]["is_published"]=="1"> 
96                   ${i.to_media_other[0]["list"]}
97                 </if> 
98                 <p>
99                                   <if i.to_media_images && i.to_media_images[0]["is_published"]=="1"> 
100                   ${i.to_media_images[0]["list"]}
101                 </if> 
102                           ${i.description}</p>
103                         <p align="right">[<a href="${config.docroot}${i.publish_path}${i.id}.shtml">read</a>]</p>
104                       </td>
105                     </tr>
106                   </table>
107                   <br>
108                   </list> 
109                   <!--- features ---> 
110                   </td>
111               </tr>
112             </table>
113           </td>
114         </tr>
115       </table>
116     </td>
117   </tr>
118 </table>
119 <p>&nbsp;</p>
120 </body>
121 </html>