update main branch #47

Merged
jorge merged 166 commits from develop into main 2021-12-01 11:20:13 +01:00
2 changed files with 79 additions and 62 deletions
Showing only changes of commit 7dc3de84c2 - Show all commits

View File

@ -2,23 +2,36 @@
$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta'); $archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
?> ?>
<div class="list-of-sites"> <section class="collections-list">
<div class="site-list">
<table> <header>
<thead> <h2> Latest in collections</h2>
<tr> </header>
<th>Title</th> <main class="">
<th>Artist</th> <article class="">
<th>Collection</th> <ul class="accordion" data-responsive-accordion-tabs="accordion small-accordion" data-multi-expand="true" data-allow-all-closed="true" data-deep-link="true">
<th>Date</th> <li class="accordion-item title" data-accordion-item disabled>
</tr> <a href="#" class="accordion-title">
</thead> <ul class="">
<tbody> <li class="title">Title</li>
<li class="curator">Artist</li>
<li class="collection-name">Collection</li>
<li class="date">Date</li>
</ul>
</a>
<div class="accordion-content" data-tab-content>
<figure>
</figure>
<p>
</p>
</div>
</li>
<?php <?php
// read each omeka site to publish
foreach($sites as $site): foreach($sites as $site):
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site); $site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
// table body build file
echo $this->partial('common/site-list-entry', [ echo $this->partial('common/site-list-entry', [
'site' => $site, 'site' => $site,
'showSummary' => $summaries, 'showSummary' => $summaries,
@ -27,15 +40,17 @@ $archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
]); ]);
endforeach; endforeach;
?> ?>
</ul>
</tbody> </article>
</table> </main>
<aside>
</div> <nav>
<?php <?php
if (1 == 0): if (1 == 0):
//if ($pagination): //if ($pagination):
echo $this->pagination(); echo $this->pagination();
endif; endif;
?> ?>
</div> </nav>
</aside>
</section>

View File

@ -1,41 +1,43 @@
<?php <?php
// publish as a table the content
$summary = $showSummary ? $site->summary() : null; $summary = $showSummary ? $site->summary() : null;
//
?> ?>
<tr class="_expand_site_item"> <li class="accordion-item" data-accordion-item>
<td> <a href="#" class="accordion-title">
<ul class="">
<li class="title">
<?= $site->title() ?> <?= $site->title() ?>
</td> </li>
<td> <li class="curator">
<?php if ($site_meta_values != null): ?> <?php if ($site_meta_values != null): ?>
<?= $site_meta_values['currator']; ?><br /> <?= $site_meta_values['currator']; ?><br />
<?php endif; ?> <?php endif; ?>
</td> </li>
<td> <li class="collection-name">
<?php if ($site_meta_values != null): ?> <?php if ($site_meta_values != null): ?>
<?= $archive_collections[$site_meta_values['collection']]; ?> <?= $archive_collections[$site_meta_values['collection']]; ?>
<?php endif; ?> <?php endif; ?>
</td> </li>
<td> <li class="date">
<?php if ($site_meta_values != null): ?> <?php if ($site_meta_values != null): ?>
<?= $site_meta_values['project_date']; ?> <?= $site_meta_values['project_date']; ?>
<?php endif; ?> <?php endif; ?>
</td> </li>
</tr> </ul>
<tr style="display:none"> </a>
<td> <div class="accordion-content" data-tab-content>
<figure>
<?php if ($site_meta_values != null): ?> <?php if ($site_meta_values != null): ?>
<img src="<?= $site_meta_values['thumbnail']; ?>" /> <img src="<?= $site_meta_values['thumbnail']; ?>" />
<?php endif; ?> <?php endif; ?>
</td> </figure>
<td colspan="3"> <p>
<?php if ($summary): ?> <?php if ($summary): ?>
<?php echo nl2br($this->escapeHtml($summary)); ?> <?php echo nl2br($this->escapeHtml($summary)); ?>
<br />
<?php endif; ?> <?php endif; ?>
<button class="go_to_site_button" <a class="button small" href="<?= $site->siteUrl() ?>">View</a>
onclick="window.location.href = '<?= $site->siteUrl() ?>'"> </p>
View </div>
</button> </li>
</td>
</tr>