Dotclear

source: plugins/shortArchives/_widgets.php @ 3158

Revision 3158, 1.1 KB checked in by brol, 10 years ago (diff)

version 1.4 : modif widget

Line 
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 ------------------------------------
12if (!defined('DC_RC_PATH')) { return; }
13
14$core->addBehavior('initWidgets',array('shortArchivesWidgets','initWidgets'));
15
16class 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?>
Note: See TracBrowser for help on using the repository browser.

Sites map