diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 63b4ec95..811f3d33 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -275,8 +275,12 @@ class DataController extends Zend_Controller_Action $timexml=''; foreach($rows as $row) { $timexml.=''.htmlspecialchars($row['description']).''; + if ($row['timeend']!='') $timexml.=' end="'.date($dateformat,strtotime($row['timeend'])).'" isDuration="true"'; + $timexml.= ' title="'.$row['title'].'" image="/images/westdc_40w.gif" link="/data/'.$row['uuid'].'">'; + $desc_length=mb_strlen($row['description'],"UTF-8"); + $desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8"); + if ($desc_length>300) $desc.=" ..."; + $timexml.=htmlspecialchars($desc).''; } $timexml.=''; $fp=fopen('time.xml','w');