1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of Dotwit, a plugin for Dotclear. |
---|
4 | # |
---|
5 | # Copyright (c) 2007 Valentin VAN MEEUWEN |
---|
6 | # <adresse email> |
---|
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 | |
---|
13 | $core->addBehavior('initWidgets',array('doTwitBehaviors','initWidgets')); |
---|
14 | |
---|
15 | class doTwitBehaviors |
---|
16 | { |
---|
17 | public static function initWidgets(&$widgets) |
---|
18 | { |
---|
19 | $widgets->create('dotwit',__('DoTwit'),array('DoTwit','dotwitWidget')); |
---|
20 | $widgets->dotwit->setting('title',__('Titre (facultatif):'),''); |
---|
21 | $widgets->dotwit->setting('idTwitter',__('Identifiant Twitter :'),''); |
---|
22 | $widgets->dotwit->setting('pwdTwitter',__('Mot de passe Twitter :'),''); |
---|
23 | $widgets->dotwit->setting('limit',__('Nombre de twit à afficher :'),1); |
---|
24 | $widgets->dotwit->setting('homeonly',__('Home page only'),1,'check'); |
---|
25 | $widgets->dotwit->setting('timeline_friends',__('Timeline amis (Timeline perso par défaut)'),1,'check'); |
---|
26 | $widgets->dotwit->setting('display_timeout',__('Affichage du temps écoulé'),1,'check'); |
---|
27 | $widgets->dotwit->setting('display_profil_image',__('Affichage des profils image'),1,'check'); |
---|
28 | } |
---|
29 | } |
---|
30 | |
---|
31 | ?> |
---|