Skip to content

Commit 4ed81c7

Browse files
committed
Version 1.2.0 final
1 parent f980fc1 commit 4ed81c7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,9 @@ This option is an array of pages that will be excluded from the drafts widget. A
5656

5757
This 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

drafts/drafts.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
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
);

0 commit comments

Comments
 (0)