69 lines
1.9 KiB
PHTML
69 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>
|
|
|
|
|
|
<?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>
|
|
|
|
|
|
<hr />
|
|
<div class="site-list">
|
|
|
|
<?php
|
|
foreach ($sites as $site):
|
|
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
|
|
?>
|
|
|
|
<div class="site">
|
|
<?php echo $this->hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?>
|
|
<p class="site-summary"><?php echo nl2br($site->summary()); ?></p>
|
|
<p class="site-summary"><?php echo $site->siteUrl(); ?></p>
|
|
|
|
<?php if ($site_meta_values != null) { ?>
|
|
currator = <?= $site_meta_values['currator']; ?><br />
|
|
thumbnail = <?= $site_meta_values['thumbnail']; ?><br />
|
|
project_date = <?= $site_meta_values['project_date']; ?><br />
|
|
collection = <?= $collections[$site_meta_values['collection']]; ?><br />
|
|
<?php } ?>
|
|
</div>
|
|
<?php
|
|
endforeach;
|
|
?>
|
|
</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>
|