File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,9 @@ This option is an array of pages that will be excluded from the drafts widget. A
5656
5757This option is a string, which is displayed instead of the list of drafts when there are no drafts.
5858
59-
60-
6159## To-do
62- - [ ] Get list of excluded pages from configuration instead of widget code
63- - [ ] Make it multi-lingual
60+ - [ ] Internationalize widget? Already ok for draft names, only message is not internationalized
61+ - [X] ~~ Get list of excluded pages from configuration instead of widget code ~~
6462- [X] ~~ Update readme~~
6563- [X] ~~ Make it CLI and submodule compatible~~
6664
Original file line number Diff line number Diff line change 55 'compressed ' => false ,
66 ),
77 'html ' => function () {
8+ $ excluded = c::get ('plugin.drafts.widget.exclude ' , 'error ' );
89 return tpl::load (__DIR__ . DS . 'template.php ' , array (
9- 'drafts ' => panel ()->site ()->index ()->invisible ()->not (' error ' )
10+ 'drafts ' => panel ()->site ()->index ()->invisible ()->not ($ excluded )
1011 ));
1112 }
1213);
You can’t perform that action at this time.
0 commit comments