<table class="separated-vertical">
<?php
$odd = true;
foreach ($this->instanceInfo as $instance){
    $author = null;
    if (isset($this->instanceData[$instance['uri']]['creator'][0]['value'])) {
        $author = $this->instanceData[$instance['uri']]['creator'][0]['value'];
    }
    $options = array(
        'author'        => $author,
        'comment'       => $instance['uri'],
        'commentUrl'    => $instance['url'],
        'content'       => $this->instanceData[$instance['uri']]['content'][0]['value'],
        'date'          => OntoWiki_Utils::dateDifference(strtotime($this->instanceData[$instance['uri']]['date'][0]['value']), time()),
        'odd'           => $odd,
    );
    if (!$this->other->singleResource) {
        $options['resource']        = $this->instanceData[$instance['uri']]['about'][0]['uri'];
        $options['resourceUrl']     = $this->instanceData[$instance['uri']]['about'][0]['url'];
        $options['resourceName']    = $this->instanceData[$instance['uri']]['about'][0]['value'];
    }
    echo $this->partial('partials/list_community_item.phtml', $options);
    $odd = !$odd;
}
?>
</table>
