support for assets relative not hardcoded

This commit is contained in:
jorge 2022-03-29 18:20:03 +02:00
parent 11a99c7a08
commit f33e6e67ee
3 changed files with 2 additions and 2 deletions

1
asset Symbolic link
View File

@ -0,0 +1 @@
assets

View File

@ -36,4 +36,4 @@ $projects = htmlentities(json_encode($projects, JSON_HEX_QUOT), ENT_QUOTES, 'UTF
</div>
<script src="/themes/archive/assets/js/archive-list.js"></script>
<script src="<?php $this->assetUrl('js/archive-list.js');?>"></script>

View File

@ -11,7 +11,6 @@ $hasResults = false;
<?php
$img_src = $this->getHelperPluginManager()->get('archiveSiteMeta')->getSiteImage($this->site);
if (!$img_src) {
//$img_src = '/themes/archive/asset/img/default-header-image.jpg';
$img_src = $this->assetUrl('img/ARC-HIVE-logo.svg');
}
if ($this->site->title() == "Collections") {