File tree Expand file tree Collapse file tree 5 files changed +36
-17
lines changed Expand file tree Collapse file tree 5 files changed +36
-17
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ public function extractWidgetInstances()
6161
6262 if ( $ widgetInstance instanceof WidgetInterface )
6363 {
64- if ( $ widgetInstance ->isWidgetActive () )
64+ $ disabledWidgetsArray = \Config::get ('backend.backend.disabled_widgets ' );
65+
66+ if ( $ widgetInstance ->isWidgetActive () && (!in_array ($ widgetInstance ->getWidgetInfo ()['name ' ],$ disabledWidgetsArray )) )
6567 {
6668 array_push (
6769 $ widgetInstances ,
Original file line number Diff line number Diff line change 5050
5151 <table data-ng-if =" contents.data.length>0" class =" table" >
5252 <tr >
53+ <th >ID</th >
5354 <th >Title</th >
5455 <th >Status</th >
5556 <th ><i class =" fa fa-user" ></i > Author</th >
5859 <th class =" action text-center" ><i class =" fa fa-bolt" ></i ></th >
5960 </tr >
6061 <tr data-ng-repeat =" c in contents.data" class =" content-item-@ {{$index}}" >
62+ <td >[@ {{c.id}}]</td >
6163 <td >@ {{c.title}}</td >
6264 <td >@ {{c.status}}</td >
6365 <td >@ {{c.author.first_name}}</td >
Original file line number Diff line number Diff line change 22
33@section (' content' )
44
5- @foreach ($widgets as $widget )
5+ @forelse ($widgets as $widget )
66 <div class =" panel panel-default" >
77 <div class =" panel-heading" >
88 <h3 class =" panel-title" >
1414 <?php include_once $widget -> getWidgetTemplate (); ? >
1515 </div >
1616 </div >
17- @endforeach
17+ @empty
18+ <div class =" panel panel-default" >
19+ <div class =" panel-body text-center" style =" min-height : 230px ; padding-top : 100px ;" >
20+ <i >No widgets yet..</i >
21+ </div >
22+ </div >
23+ @endforelse
1824
1925@stop
Original file line number Diff line number Diff line change 1818 </div >
1919 </div >
2020 </div >
21- <ul class =" list-group" >
22- <li data-ng-repeat =" nav in customNavigationList.data" class =" list-group-item clearfix" >
23- <i class =" fa fa-flag" ></i > @ {{nav.name}}
24- <span class =" pull-right" >
25- <button data-ng-click =" navigation.configure(nav, 'drawer-configure')" class =" btn btn-clear btn-xs" ><i class =" fa fa-cog" ></i > Configure</button >
26- <button data-ng-click =" navigation.trash(nav.id)" data-ng-disabled =" navigation.trashing" class =" btn btn-clear btn-xs" ><i class =" fa fa-trash" ></i > Delete</button >
27- </span >
28- </li >
29- <li data-ng-if =" customNavigationList.data.length==0" class =" list-group-item" >
30- <div class =" well text-center" >
31- No Navigation yet..
32- </div >
33- </li >
34- </ul >
21+ <table class =" table" >
22+ <tr >
23+ <th >ID</th >
24+ <th >Navigation Name</th >
25+ </tr >
26+ <tr data-ng-repeat =" nav in customNavigationList.data" >
27+ <td >[@ {{nav.id}}]</td >
28+ <td >
29+ <i class =" fa fa-flag" ></i > @ {{nav.name}}
30+ <span class =" pull-right" >
31+ <button data-ng-click =" navigation.configure(nav, 'drawer-configure')" class =" btn btn-clear btn-xs" ><i class =" fa fa-cog" ></i > Configure</button >
32+ <button data-ng-click =" navigation.trash(nav.id)" data-ng-disabled =" navigation.trashing" class =" btn btn-clear btn-xs" ><i class =" fa fa-trash" ></i > Delete</button >
33+ </span >
34+ </td >
35+ </tr >
36+ </table >
3537 </div >
3638 </div >
3739
Original file line number Diff line number Diff line change 1111 * The login url
1212 */
1313 'login_route ' => 'login ' , // this will be "backend/login"
14+
15+ /*
16+ * Disabled widgets
17+ */
18+ 'disabled_widgets ' => array (
19+ 'Dashboard Welcome Message '
20+ ),
1421];
You can’t perform that action at this time.
0 commit comments