Dotclear

source: plugins/lastImages/_widget.php @ 1109

Revision 1109, 879 bytes checked in by philippe, 14 years ago (diff)

New plugin Last Post Images created

Line 
1<?php
2
3$core->addBehavior('initWidgets',array('lastImagesBehaviors','initWidgets'));
4
5class lastImagesBehaviors
6{
7     
8     public static function initWidgets(&$w)
9     {
10          global $core;
11         
12          $w->create('lastImages',__('Last images'),array('publicLastImages','lastImages'));
13
14          $w->lastImages->setting('title',__('Title:'),__('Last images'));
15          $w->lastImages->setting('limit',__('Limit (empty means no limit):'),'3');
16          $w->lastImages->setting('category',__('Category list:'),'','text');
17          $w->lastImages->setting('homeonly',__('Home page only'),1,'check');
18          $w->lastImages->setting('selected',__('Selected posts'),0,'check');
19          $w->lastImages->setting('random',__('Random sort'),0,'check');
20         
21          $w->lastImages->setting('size',__('Image size'),1,'combo',
22               array('thumbnail' => 't', 'square' => 'sq', 'small' => 's', 'medium' => 'm', 'original' => 'o'));
23     }
24}
25?>
Note: See TracBrowser for help on using the repository browser.

Sites map