Arc-hive-omeka-theme/view/omeka/site/index.phtml

81 lines
1.9 KiB
PHTML
Raw Normal View History

2021-04-26 16:08:13 +02:00
<?php
2021-05-08 14:09:02 +02:00
2021-04-26 16:08:13 +02:00
$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);
?>
2021-05-17 16:26:51 +02:00
<h1>
<?php echo $this->hyperlink($title, $this->url('top', ['action' => 'index'])); ?>
</h1>
2021-04-26 16:08:13 +02:00
2021-05-08 14:09:02 +02:00
omeka/site/index.phtml
2021-04-26 16:08:13 +02:00
<?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();
?>
2021-05-08 14:09:02 +02:00
<!--
<h2>Collections</h2>
<hr />
<p>
<?php foreach($collections as $collection_label => $collection_name){ ?>
<a href="/c/<?= $collection_label ?>"><?= $collection_name ?></a>
<br />
<?php } ?>
</p>
2021-05-08 14:09:02 +02:00
-->
<!-- <h2 class="site-list-heading"><?php echo $subtitle; ?></h2> -->
2021-04-26 16:08:13 +02:00
<div class="site-list">
2021-05-08 14:09:02 +02:00
<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>
2021-04-26 16:08:13 +02:00
</div>
2021-05-08 14:09:02 +02:00
2021-04-26 16:08:13 +02:00
<?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>