Changeset 851
- Timestamp:
- 03/09/09 22:38:24 (15 years ago)
- Location:
- plugins/randomComment
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/randomComment/_admin.php
r638 r851 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 14 -
plugins/randomComment/_define.php
r638 r851 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 13 14 14 15 $this->registerModule( 15 /* Name */ 16 /* Name */ 'randomComment', 16 17 /* Description */ 'Display random comments on your blog', 17 18 /* Author */ 'Tomtom (http://plugins.zenstyle.fr/)', 18 /* Version */ '1.0 -RC1',19 /* Version */ '1.0', 19 20 /* Premission */ 'usage,contentadmin' 20 21 ); -
plugins/randomComment/_prepend.php
r638 r851 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 global $__autoload; 13 14 -
plugins/randomComment/_public.php
r638 r851 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 13 14 … … 15 16 $core->url->register('randomComment','randomComment','^randomComment$',array('randomCommentUrl','randomComment')); 16 17 17 /**18 * Class randomCommentUrl19 */20 18 class randomCommentUrl extends dcUrlHandlers 21 19 { … … 31 29 } 32 30 33 /**34 * Class randomCommentTpl35 */36 31 class randomCommentTpl 37 32 { … … 54 49 } 55 50 56 /**57 * Class randomCommentPublic58 */59 51 class randomCommentPublic 60 52 { … … 74 66 } 75 67 68 $title = strlen($w->title) > 0 ? '<h2>'.$w->title.'</h2>' : ''; 69 76 70 $res = 77 71 '<script type="text/javascript">'. … … 81 75 '<script type="text/javascript" src="'.$core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)).'/_randomComment.js"></script>'. 82 76 '<div id="randomcomment">'. 83 '<h2>'.$w->title.'</h2>'.77 $title. 84 78 '<div id="rd_content">'. 85 79 '{{tlp:randomCommentContent}}'. -
plugins/randomComment/_randomComment.js
r638 r851 1 1 /* 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 */ -
plugins/randomComment/_widgets.php
r638 r851 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 13 14 14 15 $core->addBehavior('initWidgets',array('randomCommentWidgets','initWidgets')); 15 16 16 /**17 * Class randomCommentWidgets18 */19 17 class randomCommentWidgets 20 18 { -
plugins/randomComment/inc/_request.php
r638 r851 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 global $core; 13 14 -
plugins/randomComment/inc/class.random.comment.php
r638 r851 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 /**14 * Class randomComment15 */16 13 class randomComment 17 14 {
Note: See TracChangeset
for help on using the changeset viewer.