79 lines
1.9 KiB
PHTML
79 lines
1.9 KiB
PHTML
<?php
|
|
|
|
$translate = $this->plugin('translate');
|
|
|
|
$this->htmlElement('body')->appendAttribute('class', 'site browse front');
|
|
$title = $this->setting('installation_title', 'Omeka S');
|
|
|
|
$subtitle = $translate('Sites');
|
|
$this->headTitle($subtitle);
|
|
?>
|
|
<h1><?php echo $this->hyperlink($title, $this->url('top', ['action' => 'index'])); ?></h1>
|
|
|
|
|
|
omeka/site/index.phtml
|
|
|
|
<?php if ($sites): ?>
|
|
|
|
<?php echo $this->partial(
|
|
'common/cross-site-search/fulltext-form.phtml',
|
|
['action' => $this->url('search', ['action' => 'results'], true)]
|
|
); ?>
|
|
|
|
<?php
|
|
$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
|
|
$collections = $archiveSiteHelper->getCollections();
|
|
?>
|
|
<!--
|
|
<h2>Collections</h2>
|
|
<hr />
|
|
<p>
|
|
<?php foreach($collections as $collection_label => $collection_name){ ?>
|
|
<a href="/c/<?= $collection_label ?>"><?= $collection_name ?></a>
|
|
<br />
|
|
<?php } ?>
|
|
</p>
|
|
-->
|
|
|
|
<!-- <h2 class="site-list-heading"><?php echo $subtitle; ?></h2> -->
|
|
|
|
|
|
|
|
<div class="site-list">
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Site</th>
|
|
<th>Curator</th>
|
|
<th>Collection</th>
|
|
<th>Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($sites as $site):
|
|
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
|
|
echo $this->partial('common/site-list-entry', [
|
|
'site' => $site,
|
|
'site_meta_values' => $site_meta_values,
|
|
'archive_collections' => $archiveSiteHelper->getCollections(),
|
|
'showSummary' => true
|
|
]);
|
|
endforeach;
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
<?php echo $this->pagination(); ?>
|
|
|
|
<?php endif; ?>
|
|
<p><?php echo sprintf(
|
|
$translate('Go to the %1$s to start working with %2$s.'),
|
|
$this->hyperlink($translate('Admin dashboard'), $this->url('admin')),
|
|
$title
|
|
); ?></p>
|