Dotclear

Changeset 851


Ignore:
Timestamp:
03/09/09 22:38:24 (15 years ago)
Author:
Tomtom33
Message:

Cleaning to release

Location:
plugins/randomComment
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/randomComment/_admin.php

    r638 r851  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1314 
  • plugins/randomComment/_define.php

    r638 r851  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_RC_PATH')) { return; } 
    1314 
    1415$this->registerModule( 
    15           /* Name */                    'randomComment', 
     16          /* Name */               'randomComment', 
    1617          /* Description */        'Display random comments on your blog', 
    1718          /* Author */             'Tomtom (http://plugins.zenstyle.fr/)', 
    18           /* Version */            '1.0-RC1', 
     19          /* Version */            '1.0', 
    1920          /* Premission */         'usage,contentadmin' 
    2021); 
  • plugins/randomComment/_prepend.php

    r638 r851  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213global $__autoload; 
    1314 
  • plugins/randomComment/_public.php

    r638 r851  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_RC_PATH')) { return; } 
    1314 
     
    1516$core->url->register('randomComment','randomComment','^randomComment$',array('randomCommentUrl','randomComment')); 
    1617 
    17 /** 
    18  * Class randomCommentUrl 
    19  */ 
    2018class randomCommentUrl extends dcUrlHandlers 
    2119{ 
     
    3129} 
    3230 
    33 /** 
    34  * Class randomCommentTpl 
    35  */ 
    3631class randomCommentTpl 
    3732{ 
     
    5449} 
    5550 
    56 /** 
    57  * Class randomCommentPublic 
    58  */ 
    5951class randomCommentPublic 
    6052{ 
     
    7466          } 
    7567 
     68          $title = strlen($w->title) > 0 ? '<h2>'.$w->title.'</h2>' : ''; 
     69 
    7670          $res = 
    7771               '<script type="text/javascript">'. 
     
    8175               '<script type="text/javascript" src="'.$core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)).'/_randomComment.js"></script>'. 
    8276               '<div id="randomcomment">'. 
    83                '<h2>'.$w->title.'</h2>'. 
     77               $title. 
    8478               '<div id="rd_content">'. 
    8579               '{{tlp:randomCommentContent}}'. 
  • plugins/randomComment/_randomComment.js

    r638 r851  
    11/* 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212*/ 
  • plugins/randomComment/_widgets.php

    r638 r851  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_RC_PATH')) { return; } 
    1314 
    1415$core->addBehavior('initWidgets',array('randomCommentWidgets','initWidgets')); 
    1516 
    16 /** 
    17  * Class randomCommentWidgets 
    18  */ 
    1917class randomCommentWidgets 
    2018{ 
  • plugins/randomComment/inc/_request.php

    r638 r851  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213global $core; 
    1314 
  • plugins/randomComment/inc/class.random.comment.php

    r638 r851  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin randomComment for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of randomComment, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zesntyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212 
    13 /** 
    14  * Class randomComment 
    15  */ 
    1613class randomComment 
    1714{ 
Note: See TracChangeset for help on using the changeset viewer.

Sites map