44 lines
1.2 KiB
PHTML
44 lines
1.2 KiB
PHTML
<?php
|
|
// publish as a table the content
|
|
$summary = $showSummary ? $site->summary() : null;
|
|
//
|
|
?>
|
|
|
|
<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>
|
|
<div class="accordion-content" data-tab-content>
|
|
<figure>
|
|
<?php if ($site_meta_values != null): ?>
|
|
<img src="<?= $site_meta_values['thumbnail']; ?>" />
|
|
<?php endif; ?>
|
|
</figure>
|
|
<p>
|
|
<?php if ($summary): ?>
|
|
<?php echo nl2br($this->escapeHtml($summary)); ?>
|
|
<?php endif; ?>
|
|
<a class="button small" href="<?= $site->siteUrl() ?>">View</a>
|
|
</p>
|
|
</div>
|
|
</li>
|