mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
dashboard: use cache_safe() for last unprotected logo instance
Placement is debatable here, but for the sake of consistency do it like all the other spots already do. It's cool.
This commit is contained in:
parent
28f87839f2
commit
aa9c83571f
@ -124,7 +124,11 @@ include("fbegin.inc");?>
|
||||
<section class="col-xs-12">
|
||||
<div class="content-box" style="padding: 20px;">
|
||||
<div class="table-responsive">
|
||||
<img src="/ui/themes/<?=$themename;?>/build/images/default-logo.<?=file_exists("/usr/local/opnsense/www/themes/{$themename}/build/images/default-logo.svg") ? "svg" : "png";?>" border="0" alt="logo" style="max-width:380px;" />
|
||||
<?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") ?>" border="0" alt="logo" style="max-width:380px;" />
|
||||
<?php else: ?>
|
||||
<img src=" <?= cache_safe("/ui/themes/{$themename}/build/images/default-logo.png") ?>" border="0" alt="logo" style="max-width:380px;" />
|
||||
<?php endif ?>
|
||||
<br />
|
||||
<div class="content-box-main" style="padding-bottom:0px;">
|
||||
<?php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user