Skip to content

Commit 481588e

Browse files
authored
Merge pull request #45 from antonioandrade/apply-sidebar-classes-from-config
make sidebar template classes dynamic per config (as they should)
2 parents 5f2a920 + 1a7e31c commit 481588e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/theme-coreuiv4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
'body' => 'app aside-menu-fixed sidebar-lg-show',
3333
// Try sidebar-hidden, sidebar-fixed, sidebar-compact, sidebar-lg-show
3434

35-
'sidebar' => 'sidebar sidebar-pills bg-light',
35+
'sidebar' => 'sidebar sidebar-dark sidebar-fixed bg-dark-gradient',
3636
// Remove "sidebar-transparent" for standard sidebar look
3737
// Try "sidebar-light" or "sidebar-dark" for dark/light links
3838
// You can also add a background class like bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan

resources/views/inc/sidebar.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@if (backpack_auth()->check())
2-
<div class="sidebar sidebar-dark sidebar-fixed bg-dark-gradient" id="sidebar">
2+
<div class="{{ backpack_theme_config('classes.sidebar') }}" id="sidebar">
33
<div class="sidebar-brand d-none d-md-flex">
44
<a class="navbar-brand fs-6 text-decoration-none text-uppercase" href="{{ url(backpack_theme_config('home_link')) }}" title="{{ backpack_theme_config('project_name') }}">
55
{!! backpack_theme_config('project_logo') !!}

0 commit comments

Comments
 (0)