Revision 863,
1.0 KB
checked in by Osku, 15 years ago
(diff) |
Private Mode : almost 0.7 :
- New way for managing sessions
- New options for widget
i-Cette ligne, et les suivantes ci-dessous, seront ignorées--
M _define.php
D LICENSE
M _prepend.php
M _public.php
M _widgets.php
M _admin.php
M index.php
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of Private mode, a plugin for Dotclear. |
---|
4 | # |
---|
5 | # Copyright (c) 2008, 2009 Osku |
---|
6 | # |
---|
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 | # -- END LICENSE BLOCK ------------------------------------ |
---|
11 | |
---|
12 | if (!defined('DC_RC_PATH')) { return; } |
---|
13 | |
---|
14 | $core->addBehavior('initWidgets',array('privateWidgets','initWidgets')); |
---|
15 | |
---|
16 | class privateWidgets |
---|
17 | { |
---|
18 | public static function initWidgets(&$widgets) |
---|
19 | { |
---|
20 | $widgets->create('privateblog',__('Blog logout'),array('tplPrivate','privateWidgets')); |
---|
21 | $widgets->privateblog->setting('title',__('Title:'),''); |
---|
22 | $widgets->privateblog->setting('text',__('Text:'),'','textarea'); |
---|
23 | $widgets->privateblog->setting('label',__('Button:'),__('Disconnect')); |
---|
24 | $widgets->privateblog->setting('homeonly',__('Home page only'),0,'check'); |
---|
25 | } |
---|
26 | } |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.