Changeset 2720
- Timestamp:
- 10/22/10 12:48:38 (12 years ago)
- Location:
- plugins/randomComment/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/randomComment/trunk/_define.php
r2593 r2720 17 17 /* Description */ 'Display random comments on your blog', 18 18 /* Author */ 'Tomtom (http://blog.zenstyle.fr/)', 19 /* Version */ '1.0. 6',19 /* Version */ '1.0.7', 20 20 /* Premission */ 'usage' 21 21 ); -
plugins/randomComment/trunk/_public.php
r2592 r2720 13 13 if (!defined('DC_RC_PATH')) { return; } 14 14 15 $core->tpl->addValue('randomCommentContent',array('randomCommentTpl','randomCommentContent'));16 17 15 class randomCommentUrl extends dcUrlHandlers 18 16 { … … 25 23 { 26 24 require dirname(__FILE__).'/inc/_request.php'; 27 }28 }29 30 class randomCommentTpl31 {32 /**33 * Returns a random comment without http cache34 *35 * @return string36 */37 public static function randomCommentContent()38 {39 global $core, $w;40 41 $rd = new randomComment($core,$w);42 $rd->getRandomComment();43 44 return45 '<p id="rd_text">'.$rd->getWidgetContent().'</p>'.46 '<p id="rd_info">'.$rd->getWidgetInfo().'</p>';47 25 } 48 26 } -
plugins/randomComment/trunk/inc/_request.php
r2591 r2720 40 40 41 41 echo 42 '<p >'.$rd->getWidgetContent().'</p>'.43 '<p >'.$rd->getWidgetInfo().'</p>';42 '<p id="rd_text">'.$rd->getWidgetContent().'</p>'. 43 '<p id="rd_info">'.$rd->getWidgetInfo().'</p>'; 44 44 } 45 45
Note: See TracChangeset
for help on using the changeset viewer.