Arc-hive-omeka-theme/view/common/site-list-entry.phtml

44 lines
1.2 KiB
PHTML
Raw Normal View History

2021-05-08 14:09:02 +02:00
<?php
// publish as a table the content
2021-05-08 14:09:02 +02:00
$summary = $showSummary ? $site->summary() : null;
//
2021-05-08 14:09:02 +02:00
?>
2021-05-24 18:13:23 +02:00
<li class="accordion-item" data-accordion-item>
<a href="#" class="accordion-title">
<ul class="">
<li class="title">
<?= $site->title() ?>
</li>
<li class="curator">
<?php if ($site_meta_values != null): ?>
<?= $site_meta_values['currator']; ?><br />
<?php endif; ?>
</li>
<li class="collection-name">
<?php if ($site_meta_values != null): ?>
<?= $archive_collections[$site_meta_values['collection']]; ?>
<?php endif; ?>
</li>
<li class="date">
<?php if ($site_meta_values != null): ?>
<?= $site_meta_values['project_date']; ?>
<?php endif; ?>
</li>
</ul>
</a>
<aside class="accordion-content" data-tab-content>
<figure>
2021-05-08 14:09:02 +02:00
<?php if ($site_meta_values != null): ?>
2021-05-31 15:50:08 +02:00
<img src="<?= $site_meta_values['thumbnail']; ?>" />
2021-05-08 14:09:02 +02:00
<?php endif; ?>
</figure>
<p>
2021-05-08 14:09:02 +02:00
<?php if ($summary): ?>
<?php echo nl2br($this->escapeHtml($summary)); ?>
2021-05-08 14:09:02 +02:00
<?php endif; ?>
<a class="button small" href="<?= $site->siteUrl() ?>">View</a>
</p>
</aside>
</li>