Could be refined some more but you can see the idea.
( php ) ✂
foreach($projects as $project){
$location = 'http://dummy.domain.com/trac/'.$project.'/timeline?milestone=on&ticket=on&changeset=on&wiki=on&max=10&daysback=90&format=rss';
$feedXml = simplexml_load_file($location);
$dl = '';
foreach ($feedXml->channel->item as $article) {
$dl .=
_dt( _a(array( 'href' => (string)$article->link), (string)$article->title) . _span($article->pubDate)) .
_dd((string)$article->description);
}
echo
_a(array('href' => (string)$feedXml->channel->link), _h2((string)$feedXml->channel->title)) .
_div( array( 'class' => 'project', 'id' => $project),
_div( array( 'class' => 'BorderFix'),
_dl($dl)));
}
1 foreach($projects as $project){
2 $location = 'http://dummy.domain.com/trac/'.$project.'/timeline?milestone=on&ticket=on&changeset=on&wiki=on&max=10&daysback=90&format=rss';
3 $feedXml = simplexml_load_file($location);
4
5 $dl = '';
6 foreach ($feedXml->channel->item as $article) {
7 $dl .=
8 _dt( _a(array( 'href' => (string)$article->link), (string)$article->title) . _span($article->pubDate)) .
9 _dd((string)$article->description);
10 }
11
12 echo
13 _a(array('href' => (string)$feedXml->channel->link), _h2((string)$feedXml->channel->title)) .
14 _div( array( 'class' => 'project', 'id' => $project),
15 _div( array( 'class' => 'BorderFix'),
16 _dl($dl)));
17 }