Arc-hive-omeka-theme/view/common/block-layout/list-of-sites.phtml

44 lines
1.1 KiB
PHTML
Raw Normal View History

2021-05-24 18:13:23 +02:00
<?php
$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
$collections = $archiveSiteHelper->getCollections();
?>
<div class="list-of-sites">
<div class="site-list">
<table>
<thead>
<tr>
2021-05-31 11:50:30 +02:00
<th>Title</th>
<th>Artist</th>
2021-05-24 18:13:23 +02:00
<th>Collection</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php
foreach($sites as $site):
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
//echo $this->partial('common/index/site-list-item', [
echo $this->partial('common/site-list-entry', [
'site' => $site,
'showSummary' => $summaries,
'site_meta_values' => $site_meta_values,
'archive_collections' => $archiveSiteHelper->getCollections(),
]);
endforeach;
?>
</tbody>
</table>
</div>
<?php
if ($pagination):
echo $this->pagination();
endif;
?>
</div>