46
20.1 Legacy Series / Re: Modify default-logo.svg
« on: June 12, 2020, 07:40:31 am »
No,
the code seems to say that .svg has precedence over .png, so if I delete .svg, it should display the .png:
the code seems to say that .svg has precedence over .png, so if I delete .svg, it should display the .png:
Code: [Select]
<?php if (file_exists("/usr/local/opnsense/www/themes/{$themename}/build/images/default-logo.svg")) : ?>
<img src="<?= cache_safe("/ui/themes/{$themename}/build/images/default-logo.svg") ?>" height="30" alt="logo" />
<?php else : ?>
<img src="<?= cache_safe("/ui/themes/{$themename}/build/images/default-logo.png") ?>" height="30" alt="logo" />
<?php endif ?>