Revision 955,
1.1 KB
checked in by Osku, 15 years ago
(diff) |
Private mode 1.0 finally
|
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-2009 Osku and contributors |
---|
7 | ## Licensed under the GPL version 2.0 license. |
---|
8 | # A copy of this license is available in LICENSE file or at |
---|
9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
10 | # |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_RC_PATH')) { return; } |
---|
14 | |
---|
15 | $core->addBehavior('initWidgets',array('privateWidgets','initWidgets')); |
---|
16 | |
---|
17 | class privateWidgets |
---|
18 | { |
---|
19 | public static function initWidgets(&$widgets) |
---|
20 | { |
---|
21 | $widgets->create('privateblog',__('Blog logout'),array('tplPrivate','privateWidgets')); |
---|
22 | $widgets->privateblog->setting('title',__('Title:'),__('Blog logout')); |
---|
23 | $widgets->privateblog->setting('text',__('Text:'),'','textarea'); |
---|
24 | $widgets->privateblog->setting('label',__('Button:'),__('Disconnect')); |
---|
25 | $widgets->privateblog->setting('homeonly',__('Home page only'),0,'check'); |
---|
26 | } |
---|
27 | } |
---|
28 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.