Dotclear

source: plugins/lastImages/_widget.php @ 1704

Revision 1704, 1.2 KB checked in by kozlika, 13 years ago (diff)

Spéciale cassededi pour Philippe le Rebelle histoire que je puisse corriger ses plougs.

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3#
4# This file is part of lastImages, a plugin for Dotclear 2.
5#
6# Copyright (c) 2009 Philippe Amalgame and contributors
7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK ------------------------------------
12
13$core->addBehavior('initWidgets',array('lastImagesBehaviors','initWidgets'));
14
15class lastImagesBehaviors
16{
17     
18     public static function initWidgets(&$w)
19     {
20          global $core;
21         
22          $w->create('lastImages',__('Last images'),array('publicLastImages','lastImages'));
23
24          $w->lastImages->setting('title',__('Title:'),__('Last images'));
25          $w->lastImages->setting('limit',__('Limit (empty means no limit):'),'3');
26          $w->lastImages->setting('category',__('Category list:'),'','text');
27          $w->lastImages->setting('homeonly',__('Home page only'),1,'check');
28          $w->lastImages->setting('selected',__('Selected posts'),0,'check');
29          $w->lastImages->setting('random',__('Random sort'),0,'check');
30         
31          $w->lastImages->setting('size',__('Image size'),1,'combo',
32               array('thumbnail' => 't', 'square' => 'sq', 'small' => 's', 'medium' => 'm', 'original' => 'o'));
33     }
34}
35?>
Note: See TracBrowser for help on using the repository browser.

Sites map