#2231 Panel Logo Değişecek

This commit is contained in:
Diatrex 2020-09-28 15:58:16 +03:00
parent b8af419c7f
commit baef7495ed
4 changed files with 18 additions and 9 deletions

View File

@ -6,7 +6,13 @@ return [
'type' => 'anomaly.field_type.textarea', 'type' => 'anomaly.field_type.textarea',
'input_view' => 'visiosoft.theme.defaultadmin::admin/navigation/settings', 'input_view' => 'visiosoft.theme.defaultadmin::admin/navigation/settings',
], ],
"icon" => [ "login_icon" => [
"type" => "anomaly.field_type.file",
"config" => [
"folders" => ['images'],
]
],
"panel_icon" => [
"type" => "anomaly.field_type.file", "type" => "anomaly.field_type.file",
"config" => [ "config" => [
"folders" => ['images'], "folders" => ['images'],

View File

@ -11,8 +11,11 @@ return [
'warning' => 'The first accessible navigation item is used as the <strong>home</strong> area.', 'warning' => 'The first accessible navigation item is used as the <strong>home</strong> area.',
'reorder' => 'Drag and drop the primary navigation items in the <strong>sidebar</strong> to reorder them.', 'reorder' => 'Drag and drop the primary navigation items in the <strong>sidebar</strong> to reorder them.',
], ],
"icon" => [ "login_icon" => [
'name' => 'Icon', 'name' => 'Login Icon',
],
"panel_icon" => [
'name' => 'Panel Icon',
], ],
"title" => [ "title" => [
'name' => 'Title', 'name' => 'Title',

View File

@ -4,8 +4,8 @@
<div class="logo-container"> <div class="logo-container">
<div class="logo"> <div class="logo">
{% if setting_value('visiosoft.theme.defaultadmin::icon') %} {% if setting_value('visiosoft.theme.defaultadmin::login_icon') %}
<img src="{{ file(setting_value('visiosoft.theme.defaultadmin::icon')).url }}" alt="site icon"> <img src="{{ file(setting_value('visiosoft.theme.defaultadmin::login_icon')).url }}" alt="site icon">
{% else %} {% else %}
{{ img('theme::img/icon.svg').data|raw }} {{ img('theme::img/icon.svg').data|raw }}
{% endif %} {% endif %}
@ -18,8 +18,8 @@
<div class="login-wrapper container-fluid"> <div class="login-wrapper container-fluid">
<div class="logo"> <div class="logo">
{% if setting_value('visiosoft.theme.defaultadmin::icon') %} {% if setting_value('visiosoft.theme.defaultadmin::login_icon') %}
<img src="{{ file(setting_value('visiosoft.theme.defaultadmin::icon')).url }}" alt="site icon"> <img src="{{ file(setting_value('visiosoft.theme.defaultadmin::login_icon')).url }}" alt="site icon">
{% else %} {% else %}
{{ img('theme::img/icon.svg').data|raw }} {{ img('theme::img/icon.svg').data|raw }}
{% endif %} {% endif %}

View File

@ -2,8 +2,8 @@
<div class="topbar-left"> <div class="topbar-left">
<a href="/admin" class="logo variant-logo"> <a href="/admin" class="logo variant-logo">
{% if setting_value('visiosoft.theme.defaultadmin::icon') %} {% if setting_value('visiosoft.theme.defaultadmin::panel_icon') %}
<img src="{{ file(setting_value('visiosoft.theme.defaultadmin::icon')).url }}" alt="site icon"> <img src="{{ file(setting_value('visiosoft.theme.defaultadmin::panel_icon')).url }}" alt="site icon">
{% else %} {% else %}
{{ img('theme::img/icon.svg').data|raw }} {{ img('theme::img/icon.svg').data|raw }}
{% endif %} {% endif %}