1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of shortArchives, a plugin for Dotclear. |
---|
4 | # |
---|
5 | # Copyright (c) 2009-10 - annso |
---|
6 | # contact@as-i-am.fr |
---|
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 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | if (!defined('DC_RC_PATH')) { return; } |
---|
13 | |
---|
14 | $core->addBehavior('initWidgets',array('shortArchivesWidgets','initWidgets')); |
---|
15 | |
---|
16 | class shortArchivesWidgets |
---|
17 | { |
---|
18 | public static function initWidgets($w) |
---|
19 | { |
---|
20 | $w->create('shortArchives',__('Short Archives'), array('tplShortArchives','shortArchivesWidgets')); |
---|
21 | $w->shortArchives->setting('title',__('Title:'),('Archives')); |
---|
22 | $w->shortArchives->setting('postcount',__('With entries counts'),1,'check'); |
---|
23 | $w->shortArchives->setting('homeonly',__('Display on:'),0,'combo', |
---|
24 | array( |
---|
25 | __('All pages') => 0, |
---|
26 | __('Home page only') => 1, |
---|
27 | __('Except on home page') => 2 |
---|
28 | ) |
---|
29 | ); |
---|
30 | $w->shortArchives->setting('content_only',__('Content only'),0,'check'); |
---|
31 | $w->shortArchives->setting('class',__('CSS class:'),''); |
---|
32 | } |
---|
33 | } |
---|
34 | ?> |
---|