File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1010 $widgets [' before_content' ][] = [
1111 ' type' => ' jumbotron' ,
1212 ' heading' => trans (' backpack::base.welcome' ),
13+ ' heading_class' => ' display-3 ' . (backpack_theme_config (' layout' ) === ' horizontal_overlap' ? ' text-white' : ' ' ),
1314 ' content' => trans (' backpack::base.use_sidebar' ),
15+ ' content_class' => backpack_theme_config (' layout' ) === ' horizontal_overlap' ? ' text-white' : ' ' ,
1416 ' button_link' => backpack_url (' logout' ),
1517 ' button_text' => trans (' backpack::base.logout' ),
1618 ];
Original file line number Diff line number Diff line change 66@endphp
77
88@includeWhen (! empty ($widget [' wrapper' ]), backpack_view (' widgets.inc.wrapper_start' ) )
9- <div class =" jumbotron mb-2" >
9+ <div class =" jumbotron mb-2 " >
1010
1111 @if (isset ($widget [' heading' ]) )
12- <h1 class =" display-3" >{!! $widget [' heading' ] ! !} </h1 >
12+ <h1 class =" {{ $widget [ ' heading_class ' ] ?? ' display-3' } } " >{!! $widget [' heading' ] ! !} </h1 >
1313 @endif
1414
1515 @if (isset ($widget [' content' ]) )
16- <p >{!! $widget [' content' ] ! !} </p >
16+ <p class = " {{ $widget [ ' content_class ' ] ?? ' ' } } " >{!! $widget [' content' ] ! !} </p >
1717 @endif
1818
1919 @if (isset ($widget [' button_link' ]) )
You can’t perform that action at this time.
0 commit comments