update main branch #47
|
@ -1,60 +1,23 @@
|
||||||
<?php
|
<?php
|
||||||
//
|
|
||||||
// as for 2021 07 28 this template is not being used
|
|
||||||
// consider deleting it
|
|
||||||
//
|
|
||||||
$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
|
$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section class="collections-list">
|
|
||||||
|
|
||||||
<header>
|
<?php
|
||||||
<h2> Latest in collections</h2>
|
$data = [];
|
||||||
</header>
|
foreach($sites as $site){
|
||||||
<main class="">
|
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
|
||||||
<article class="">
|
$site_meta_values['url'] = $site->siteUrl();
|
||||||
<ul class="accordion" data-responsive-accordion-tabs="accordion small-accordion" data-multi-expand="true" data-allow-all-closed="true" data-deep-link="true">
|
$site_meta_values['title'] = $site->title();
|
||||||
<li class="accordion-item title" data-accordion-item disabled>
|
$site_meta_values['summay'] = nl2br($this->escapeHtml($site->summary()));
|
||||||
<a href="#" class="accordion-title">
|
array_push($data, $site_meta_values);
|
||||||
<ul class="">
|
}
|
||||||
<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
|
|
||||||
// read each omeka site to publish
|
<div data-vue-component="archive-list"
|
||||||
foreach($sites as $site):
|
data-collections='<?= json_encode($data, JSON_UNESCAPED_SLASHES) ?>'>
|
||||||
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
|
</div>
|
||||||
// table body build file
|
|
||||||
echo $this->partial('common/site-list-entry', [
|
|
||||||
'site' => $site,
|
<script src="/themes/archive/asset/js/archive-list.js"></script>>
|
||||||
'showSummary' => $summaries,
|
|
||||||
'site_meta_values' => $site_meta_values,
|
|
||||||
'archive_collections' => $archiveSiteHelper->getCollections(),
|
|
||||||
]);
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</article>
|
|
||||||
</main>
|
|
||||||
<aside>
|
|
||||||
<nav>
|
|
||||||
<?php
|
|
||||||
if (1 == 0):
|
|
||||||
//if ($pagination):
|
|
||||||
echo $this->pagination();
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
</nav>
|
|
||||||
</aside>
|
|
||||||
</section>
|
|
||||||
|
|
Loading…
Reference in New Issue