add new graphics/logos; theme dependent logos; layout fixes in forgot-password/reset-password sites;

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-04 13:18:33 +01:00
parent b3da3cf218
commit 4eaf9d2c46
10 changed files with 34 additions and 29 deletions

View File

@@ -187,8 +187,8 @@ if (is_array($_themeoptions) && (!array_key_exists('variants', $_themeoptions) |
$hl_path = 'templates/' . $theme . '/assets/img'; $hl_path = 'templates/' . $theme . '/assets/img';
// default is theme-image // default is theme-image
$header_logo = $hl_path . '/logo_white.png'; $header_logo = $hl_path . '/' . ($_themeoptions['variants'][$themevariant]['img']['ui'] ?? 'logo_white.png');
$header_logo_login = $hl_path . '/logo.png'; $header_logo_login = $hl_path . '/' . ($_themeoptions['variants'][$themevariant]['img']['login'] ?? 'logo_white.png');
if (Settings::Get('panel.logo_overridetheme') == 1 || Settings::Get('panel.logo_overridecustom') == 1) { if (Settings::Get('panel.logo_overridetheme') == 1 || Settings::Get('panel.logo_overridecustom') == 1) {
// logo settings shall overwrite theme logo and possible custom logo // logo settings shall overwrite theme logo and possible custom logo

View File

@@ -56,7 +56,6 @@ if ($action == 'delete') {
'page' => $page 'page' => $page
]); ]);
} elseif (isset($_POST['send']) && $_POST['send'] == 'send' && $action == 'deletesure' && $id > 0) { } elseif (isset($_POST['send']) && $_POST['send'] == 'send' && $action == 'deletesure' && $id > 0) {
if ($id > 0) {
try { try {
$json_result = Certificates::getLocal($userinfo, [ $json_result = Certificates::getLocal($userinfo, [
'id' => $id 'id' => $id
@@ -65,7 +64,6 @@ if ($action == 'delete') {
} catch (Exception $e) { } catch (Exception $e) {
Response::dynamicError($e->getMessage()); Response::dynamicError($e->getMessage());
} }
}
} }
$log->logAction(FroxlorLogger::USR_ACTION, LOG_NOTICE, "viewed domains::ssl_certificates"); $log->logAction(FroxlorLogger::USR_ACTION, LOG_NOTICE, "viewed domains::ssl_certificates");
@@ -73,7 +71,8 @@ $log->logAction(FroxlorLogger::USR_ACTION, LOG_NOTICE, "viewed domains::ssl_cert
try { try {
$certificates_list_data = include_once dirname(__FILE__) . '/lib/tablelisting/tablelisting.sslcertificates.php'; $certificates_list_data = include_once dirname(__FILE__) . '/lib/tablelisting/tablelisting.sslcertificates.php';
$collection = (new Collection(Certificates::class, $userinfo)) $collection = (new Collection(Certificates::class, $userinfo))
->withPagination($certificates_list_data['sslcertificates_list']['columns'], $certificates_list_data['sslcertificates_list']['default_sorting']); ->withPagination($certificates_list_data['sslcertificates_list']['columns'],
$certificates_list_data['sslcertificates_list']['default_sorting']);
if ($userinfo['adminsession'] == 1) { if ($userinfo['adminsession'] == 1) {
$collection->has('domains', Domains::class, 'domainid', 'id'); $collection->has('domains', Domains::class, 'domainid', 'id');
} else { } else {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@@ -1,6 +1,10 @@
{ {
"variants": { "variants": {
"default": { "default": {
"img": {
"login": "logo.png",
"ui": "logo_white.png"
},
"css": [ "css": [
"main.css", "main.css",
"custom.css" "custom.css"
@@ -12,6 +16,10 @@
"description": "Default" "description": "Default"
}, },
"dark": { "dark": {
"img": {
"login": "logo_white.png",
"ui": "logo_white.png"
},
"css": [ "css": [
"dark.css", "dark.css",
"custom.css" "custom.css"

View File

@@ -8,23 +8,16 @@
{{ call_static('\\Froxlor\\Froxlor', 'getFullVersion') }} {{ call_static('\\Froxlor\\Froxlor', 'getFullVersion') }}
{% endif %} {% endif %}
{% endif %} {% endif %}
&copy; 2009-{{ "now"|date("Y") }} by <a href="https://www.froxlor.org/" rel="external">the Froxlor Team</a><br> &copy; 2009-{{ "now"|date("Y") }} by <a href="https://www.froxlor.org/" rel="external" target="_blank">the Froxlor Team</a><br>
{% if install_mode is not defined %} {% if install_mode is not defined %}
{% if (get_setting('panel.imprint_url') != '') %} {% if (get_setting('panel.imprint_url') != '') %}<a href="{{ get_setting('panel.imprint_url') }}" target="_blank" class="footer-link">{{ lng('imprint') }}</a>{% endif %}
<a href="{{ get_setting('panel.imprint_url') }}" target="_blank" class="footer-link">{{ lng('imprint') }}</a> {% if (get_setting('panel.terms_url') != '') %}<a href="{{ get_setting('panel.terms_url') }}" target="_blank" class="footer-link">{{ lng('terms') }}</a>{% endif %}
{% endif %} {% if (get_setting('panel.privacy_url') != '') %}<a href="{{ get_setting('panel.privacy_url') }}" target="_blank" class="footer-link">{{ lng('privacy') }}</a>{% endif %}
{% if (get_setting('panel.terms_url') != '') %}
<a href="{{ get_setting('panel.terms_url') }}" target="_blank" class="footer-link">{{ lng('terms') }}</a>
{% endif %}
{% if (get_setting('panel.privacy_url') != '') %}
<a href="{{ get_setting('panel.privacy_url') }}" target="_blank" class="footer-link">{{ lng('privacy') }}</a>
{% endif %}
{% endif %} {% endif %}
</span> </span>
{% if lng('translator') %} {% if lng('translator') %}
<span class="mt-3"> <br/>
{{ lng('panel.translator') }}: {{ lng('translator') }} <small class="mt-3">{{ lng('panel.translator') }}: {{ lng('translator') }}</small>
</span>
{% endif %} {% endif %}
</footer> </footer>

View File

@@ -1,10 +1,10 @@
{% extends "Froxlor/base.html.twig" %} {% extends "Froxlor/base.html.twig" %}
{% block body %} {% block content %}
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row justify-content-center">
<form class="col-12 max-w-420 d-flex flex-column" method="post" enctype="application/x-www-form-urlencoded"> <form class="col-12 max-w-420 d-flex flex-column" method="post" enctype="application/x-www-form-urlencoded">
<img class="align-self-center mb-5" src="{{ header_logo_login }}" alt="Froxlor Server Management Panel"/> <img class="align-self-center my-5" src="{{ header_logo_login }}" alt="Froxlor Server Management Panel"/>
<div class="card shadow"> <div class="card shadow">
<div class="card-body"> <div class="card-body">

View File

@@ -1,10 +1,10 @@
{% extends "Froxlor/base.html.twig" %} {% extends "Froxlor/base.html.twig" %}
{% block body %} {% block content %}
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row justify-content-center">
<form action="{{ formaction }}" class="col-12 max-w-420 d-flex flex-column" method="post" enctype="application/x-www-form-urlencoded"> <form action="{{ formaction }}" class="col-12 max-w-420 d-flex flex-column" method="post" enctype="application/x-www-form-urlencoded">
<img class="align-self-center mb-5" src="{{ header_logo_login }}" alt="Froxlor Server Management Panel"/> <img class="align-self-center my-5" src="{{ header_logo_login }}" alt="Froxlor Server Management Panel"/>
<div class="card shadow"> <div class="card shadow">
<div class="card-body"> <div class="card-body">

View File

@@ -5,4 +5,9 @@ footer {
@extend .text-muted; @extend .text-muted;
@extend .text-decoration-none; @extend .text-decoration-none;
} }
.footer-link:not(:last-child):after {
content: '';
padding: 0 0.25rem;
}
} }