replaces php site list with vue component

This commit is contained in:
buttle 2021-10-26 12:22:55 +02:00
parent d7aa820113
commit c56464e086
1 changed files with 17 additions and 54 deletions

View File

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