Dotclear

source: plugins/private/_widgets.php @ 570

Revision 570, 1.5 KB checked in by Osku, 15 years ago (diff)

New plugin - Private Mode : protect your blog with a password

Line 
1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
2/***************************************************************\
3 *  This is 'Private', a plugin for Dotclear 2                 *
4 *                                                             *
5 *  Copyright (c) 2008                                         *
6 *  Osku and contributors.                                     *
7 *                                                             *
8 *  This is an open source software, distributed under the GNU *
9 *  General Public License (version 2) terms and  conditions.  *
10 *                                                             *
11 *  You should have received a copy of the GNU General Public  *
12 *  License along with 'Private blog' (see LICENSE);           *
13 *  if not, write to the Free Software Foundation, Inc.,       *
14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    *
15\***************************************************************/
16if (!defined('DC_RC_PATH')) { return; }
17
18$core->addBehavior('initWidgets',array('privateWidgets','initWidgets'));
19
20class privateWidgets 
21{
22        public static function initWidgets(&$widgets)
23        {
24                $widgets->create('privateblog',__('Blog logout'),array('tplPrivate','privateWidgets'));
25                $widgets->privateblog->setting('title',__('Title:'),'');
26                $widgets->privateblog->setting('homeonly',__('Home page only'),0,'check');
27        }
28}
29?>
Note: See TracBrowser for help on using the repository browser.

Sites map