Compare commits

..

No commits in common. "a735970d9b7bc8858b8f6cc0d5729535a5fa16e7" and "8e1c27de2d3fa26e5f4baa0acf3ab5c20e04672f" have entirely different histories.

3 changed files with 57 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,30 +1,60 @@
<?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">
<?php <header>
$collections = []; <h2> Latest in collections</h2>
foreach($sites as $site){ </header>
$site_data = $archiveSiteHelper->getSiteMetaValues($site); <main class="">
$site_data['id'] = $site->id(); <article class="">
$site_data['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_data['title'] = $site->title(); <li class="accordion-item title" data-accordion-item disabled>
$site_data['summary'] = nl2br($this->escapeHtml($site->summary())); <a href="#" class="accordion-title">
array_push($collections, $site_data); <ul class="">
} <li class="title">Title</li>
//$collections = json_encode($collections, JSON_UNESCAPED_SLASHES); <li class="curator">Artist</li>
//$collections = json_encode($collections, JSON_HEX_APOS); <li class="collection-name">Collection</li>
//$collections = htmlspecialchars(json_encode($collections), ENT_QUOTES, 'UTF-8'); <li class="date">Date</li>
//$collections = str_replace("'", "\'", $collections); </ul>
$collections = htmlentities(json_encode($collections, JSON_HEX_QUOT), ENT_QUOTES, 'UTF-8'); </a>
//$collections = json_encode($collections); <div class="accordion-content" data-tab-content>
?> <figure>
</figure>
<p>
</p>
</div>
</li>
<div data-vue-component="archive-list" <?php
data-collections='<?= $collections ?>'> // read each omeka site to publish
</div> foreach($sites as $site):
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
// table body build file
echo $this->partial('common/site-list-entry', [
<script src="/themes/archive/asset/js/archive-list.js"></script> 'site' => $site,
'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>

View File

@ -27,5 +27,8 @@
<?= $this->site->title() ?> <?= $this->site->title() ?>
</a> </a>
</h2> </h2>
<nav class="">
<?php echo $this->partial('common/search-form.phtml'); ?>
</nav>
</aside> </aside>
</section> </section>