Revision 2378,
952 bytes
checked in by Osku, 13 years ago
(diff) |
private : version 1.3 - ready for Dotaddict
- PHP 5.3 compliant
- For Dotclear 2.2 & 2.16
- Title and message are now optionnal
- New icon menu
- minor improvements
- Add a LICENSE file
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # |
---|
4 | # This file is part of Private mode, a plugin for Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2008-2010 Osku and contributors |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # |
---|
12 | # -- END LICENSE BLOCK ------------------------------------ |
---|
13 | |
---|
14 | if (!defined('DC_RC_PATH')) { return; } |
---|
15 | |
---|
16 | $core->addBehavior('initWidgets',array('privateWidgets','initWidgets')); |
---|
17 | |
---|
18 | class privateWidgets |
---|
19 | { |
---|
20 | public static function initWidgets($w) |
---|
21 | { |
---|
22 | $w->create('privateblog',__('Blog logout'),array('widgetsPrivage','widgetLogout')); |
---|
23 | $w->privateblog->setting('title',__('Title:'),__('Blog logout')); |
---|
24 | $w->privateblog->setting('text',__('Text:'),'','textarea'); |
---|
25 | $w->privateblog->setting('label',__('Button:'),__('Disconnect')); |
---|
26 | $w->privateblog->setting('homeonly',__('Home page only'),0,'check'); |
---|
27 | } |
---|
28 | } |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.