Dotclear

Changeset 2982


Ignore:
Timestamp:
02/23/11 23:26:17 (13 years ago)
Author:
sacha
Message:

dcom - Dotclear 2.2.2 compatibility

Location:
plugins/dcom
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcom/CHANGELOG

    r407 r2982  
     12011-02-23  Alex Pirine  <alex pirine.fr> 
     2 
     3 * Dotclear 2.2.2 compatibility 
     4 
    152008-04-13  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
    26 
  • plugins/dcom/_admin.php

    r459 r2982  
    33 *  This is 'Dcom', a plugin for Dotclear 2                    * 
    44 *                                                             * 
    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.       * 
    77 *                                                             * 
    88 *  This is an open source software, distributed under the GNU * 
     
    1010 *                                                             * 
    1111 *  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);               * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16 
    1617if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1718 
    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 } 
     19require dirname(__FILE__).'/_widgets.php'; 
    4720?> 
  • plugins/dcom/_define.php

    r459 r2982  
    33 *  This is 'Dcom', a plugin for Dotclear 2                    * 
    44 *                                                             * 
    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.       * 
    77 *                                                             * 
    88 *  This is an open source software, distributed under the GNU * 
     
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16 
    1617if (!defined('DC_RC_PATH')) { return; } 
    1718 
     
    1920     /* Name */          'Dcom', 
    2021     /* Description*/    'Last comments with more options', 
    21      /* Author */        'Oleksandr Syenchuk', 
    22      /* Version */       '0.8', 
     22     /* Author */        'Alex Pirine', 
     23     /* Version */       '2011.02', 
    2324     /* Permissions */   'admin' 
    2425); 
  • plugins/dcom/_prepend.php

    r459 r2982  
    33 *  This is 'Dcom', a plugin for Dotclear 2                    * 
    44 *                                                             * 
    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.       * 
    77 *                                                             * 
    88 *  This is an open source software, distributed under the GNU * 
     
    1010 *                                                             * 
    1111 *  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);               * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16 
    1617if (!defined('DC_RC_PATH')) { return; } 
    1718 
     
    4950          $p['dateformat'] = !empty($r['dateformat']) 
    5051               ? (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; 
    5354     } 
    5455} 
  • plugins/dcom/_public.php

    r459 r2982  
    33 *  This is 'Dcom', a plugin for Dotclear 2                    * 
    44 *                                                             * 
    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.       * 
    77 *                                                             * 
    88 *  This is an open source software, distributed under the GNU * 
     
    1010 *                                                             * 
    1111 *  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);               * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16 
    1617if (!defined('DC_RC_PATH')) { return; } 
     18 
     19require dirname(__FILE__).'/_widgets.php'; 
    1720 
    1821$core->tpl->addValue('showDcom',array('publicDcom','showTpl')); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map