<assign.. not needed anymore
[mir.git] / templates-dist / producer / openposting.template
index 68dc832..577490d 100755 (executable)
                         <h3>${i.title}</h3>
                         <h4><i>${i.creator}, ${i.webdb_create_formatted}</i></h4>
                         <p>                     
-                      <assign audio = i.to_media_audio>
-                      <assign video = i.to_media_video>
-                      <assign images = i.to_media_images>
-                      <assign other = i.to_media_other>
-                                 <if audio && audio[0]["is_published"]=="1"> 
-                  ${audio[0]["list"]}
-                </if> 
-                                 <if video && video[0]["is_published"]=="1"> 
-                  ${video[0]["list"]}
-                </if> 
-                                 <if other && other[0]["is_published"]=="1"> 
-                  ${other[0]["list"]}
-                </if> 
-                <p>
-                                 <if images && images[0]["is_published"]=="1">
-                  ${images[0]["list"]}
-                </if> 
+                      <if i.to_media_audio > 
+                          ${i.to_media_audio[0]["list"]}
+                      </if> 
+                                 <if i.to_media_video > 
+                          ${i.to_media_video[0]["list"]}
+                      </if> 
+                                 <if i.to_media_other > 
+                          ${i.to_media_other[0]["list"]}
+                      </if> 
+                      <p>
+                                 <if i.to_media_images >
+                          ${i.to_media_images[0]["list"]}
+                      </if> 
                          ${i.description}</p>
                         <p align="right">[<a href="${config.docroot}${i.publish_path}${i.id}.shtml">read</a>]</p>
                       </td>