24 lines
607 B
PHTML
24 lines
607 B
PHTML
<?php
|
|
$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
|
|
?>
|
|
|
|
|
|
<?php
|
|
$data = [];
|
|
foreach($sites as $site){
|
|
$site_meta_values = $archiveSiteHelper->getSiteMetaValues($site);
|
|
$site_meta_values['url'] = $site->siteUrl();
|
|
$site_meta_values['title'] = $site->title();
|
|
$site_meta_values['summay'] = nl2br($this->escapeHtml($site->summary()));
|
|
array_push($data, $site_meta_values);
|
|
}
|
|
?>
|
|
|
|
|
|
<div data-vue-component="archive-list"
|
|
data-collections='<?= json_encode($data, JSON_UNESCAPED_SLASHES) ?>'>
|
|
</div>
|
|
|
|
|
|
<script src="/themes/archive/asset/js/archive-list.js"></script>>
|