phpDocumentor pond
[ class tree: pond ] [ index: pond ] [ all elements ]

Source for file _browse_comments.view.php

Documentation is available at _browse_comments.view.php

  1. <?php
  2. /**
  3.  * This file implements the comment browsing
  4.  *
  5.  * This file is part of the Quam Plures project - {@link http://quamplures.net/}.
  6.  * See also {@link https://launchpad.net/quam-plures}.
  7.  *
  8.  * @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
  9.  * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}.
  10.  *  Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
  11.  *
  12.  * @license http://quamplures.net/license.html GNU General Public License (GPL)
  13.  *
  14.  *  {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  15.  * @author fplanque: Francois PLANQUE.
  16.  *
  17.  * @package pond
  18.  */
  19. if!defined('QP_MAIN_INIT') ) die'Please, do not access this page directly.' );
  20.  
  21. /**
  22.  * @var Comment 
  23.  */
  24. global $Comment;
  25. /**
  26.  * @var Blog 
  27.  */
  28. global $Blog;
  29. /**
  30.  * @var CommentList 
  31.  */
  32. global $CommentList;
  33.  
  34. global $dispatcher;
  35.  
  36.  
  37. /*
  38.  * Display comments:
  39.  */
  40. $block_item_Widget new Widget'block_item' );
  41.  
  42. $block_item_Widget->title T_('Feedback (Comments, Trackbacks...)');
  43. $block_item_Widget->disp_template_replaced'block_start' );
  44.  
  45. // display a message if list is empty
  46. $CommentList->display_if_emptyarray() );
  47.  
  48. // Display list of comments:
  49. require dirname(__FILE__).'/_comment_list.inc.php';
  50.  
  51. $block_item_Widget->disp_template_replaced'block_end' );
  52.  
  53. ?>