Changeset 2982 for plugins/dcom
- Timestamp:
- 02/23/11 23:26:17 (13 years ago)
- Location:
- plugins/dcom
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcom/CHANGELOG
r407 r2982 1 2011-02-23 Alex Pirine <alex pirine.fr> 2 3 * Dotclear 2.2.2 compatibility 4 1 5 2008-04-13 Oleksandr Syenchuk <sacha@xn--phnix-csa.net> 2 6 -
plugins/dcom/_admin.php
r459 r2982 3 3 * This is 'Dcom', a plugin for Dotclear 2 * 4 4 * * 5 * Copyright (c) 2007 -2008*6 * Oleksandr Syenchuk, Jean-François Michaud and contributors.*5 * Copyright (c) 2007,2008,2011 * 6 * Alex Pirine, Jean-François Michaud and contributors. * 7 7 * * 8 8 * This is an open source software, distributed under the GNU * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along 'Dcom' (see COPYING.txt);*12 * License along with 'Dcom' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 if (!defined('DC_CONTEXT_ADMIN')) { return; } 17 18 18 $core->addBehavior('initWidgets',array('adminDcom','initWidget')); 19 20 class adminDcom 21 { 22 public static function initWidget(&$w) 23 { 24 global $core; 25 26 commonDcom::adjustDefaults($p); 27 28 $w->create('lastcomments',__('Last comments'), 29 array('publicDcom','showWidget')); 30 $w->lastcomments->setting('title', 31 __('Title:'),$p['title']); 32 $w->lastcomments->setting('c_limit', 33 __('Comments limit:'),$p['c_limit']); 34 $w->lastcomments->setting('t_limit', 35 __('Title lenght limit:'),$p['t_limit']); 36 $w->lastcomments->setting('co_limit', 37 __('Comment lenght limit:'),$p['co_limit']); 38 $w->lastcomments->setting('dateformat', 39 __('Date format (leave empty to use default blog format):'),$p['dateformat']); 40 $w->lastcomments->setting('stringformat', 41 __('String format (%1$s = date; %2$s = title; %3$s = author; %4$s = content of the comment; %5$s = comment URL):'), 42 $p['stringformat']); 43 $w->lastcomments->setting('homeonly', 44 __('Home page only'),$p['homeonly'],'check'); 45 } 46 } 19 require dirname(__FILE__).'/_widgets.php'; 47 20 ?> -
plugins/dcom/_define.php
r459 r2982 3 3 * This is 'Dcom', a plugin for Dotclear 2 * 4 4 * * 5 * Copyright (c) 2007 -2008*6 * Oleksandr Syenchuk, Jean-François Michaud and contributors.*5 * Copyright (c) 2007,2008,2011 * 6 * Alex Pirine, Jean-François Michaud and contributors. * 7 7 * * 8 8 * This is an open source software, distributed under the GNU * … … 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 if (!defined('DC_RC_PATH')) { return; } 17 18 … … 19 20 /* Name */ 'Dcom', 20 21 /* Description*/ 'Last comments with more options', 21 /* Author */ ' Oleksandr Syenchuk',22 /* Version */ ' 0.8',22 /* Author */ 'Alex Pirine', 23 /* Version */ '2011.02', 23 24 /* Permissions */ 'admin' 24 25 ); -
plugins/dcom/_prepend.php
r459 r2982 3 3 * This is 'Dcom', a plugin for Dotclear 2 * 4 4 * * 5 * Copyright (c) 2007 -2008*6 * Oleksandr Syenchuk, Jean-François Michaud and contributors.*5 * Copyright (c) 2007,2008,2011 * 6 * Alex Pirine, Jean-François Michaud and contributors. * 7 7 * * 8 8 * This is an open source software, distributed under the GNU * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along 'Dcom' (see COPYING.txt);*12 * License along with 'Dcom' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 if (!defined('DC_RC_PATH')) { return; } 17 18 … … 49 50 $p['dateformat'] = !empty($r['dateformat']) 50 51 ? (string) $r['dateformat'] 51 : $core->blog->settings-> date_format.','.52 $core->blog->settings-> time_format;52 : $core->blog->settings->system->date_format.','. 53 $core->blog->settings->system->time_format; 53 54 } 54 55 } -
plugins/dcom/_public.php
r459 r2982 3 3 * This is 'Dcom', a plugin for Dotclear 2 * 4 4 * * 5 * Copyright (c) 2007 -2008*6 * Oleksandr Syenchuk, Jean-François Michaud and contributors.*5 * Copyright (c) 2007,2008,2011 * 6 * Alex Pirine, Jean-François Michaud and contributors. * 7 7 * * 8 8 * This is an open source software, distributed under the GNU * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along 'Dcom' (see COPYING.txt);*12 * License along with 'Dcom' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 if (!defined('DC_RC_PATH')) { return; } 18 19 require dirname(__FILE__).'/_widgets.php'; 17 20 18 21 $core->tpl->addValue('showDcom',array('publicDcom','showTpl'));
Note: See TracChangeset
for help on using the changeset viewer.