b2evolution PHP Cross Reference Blogging Systems

Source: /inc/comments/views/_comment_list_table.view.php - 64 lines - 2011 bytes - Text - Print

Description: This file implements the Comment List (table) view. This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}. See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This file implements the Comment List (table) view.
   4   *
   5   * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}.
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}.
   9  *
  10   * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
  11   *
  12   * {@internal Open Source relicensing agreement:
  13   * EVO FACTORY grants Francois PLANQUE the right to license
  14   * EVO FACTORY contributions to this file and the b2evolution project
  15   * under any OSI approved OSS license (http://www.opensource.org/licenses/).
  16   * }}
  17   *
  18   * @package evocore
  19   *
  20   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  21   * @author asimo: Evo Factory / Attila Simo
  22   *
  23   * @version $Id: _comment_list_table.view.php 6136 2014-03-08 07:59:48Z manuel $
  24   */
  25  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  26  
  27  /**
  28   * @var Blog
  29   */
  30  global $Blog;
  31  /**
  32   * @var CommentList
  33   */
  34  global $CommentList;
  35  
  36  /*
  37   * Display comments:
  38   */
  39  $CommentList->query();
  40  
  41  // Dispay a form to mass delete the comments:
  42  display_comment_mass_delete( $CommentList );
  43  
  44  // Display title depending on selection params:
  45  echo $CommentList->get_filter_title( '<h2>', '</h2>', '<br />', NULL, 'htmlbody' );
  46  
  47  $CommentList->title = T_('Comment List');
  48  
  49  if( check_comment_mass_delete( $CommentList ) )
  50  {    // A form for mass deleting is availabl, Display link
  51      $CommentList->global_icon( T_('Delete all comments!'), 'delete', regenerate_url( 'action', 'action=mass_delete' ), T_('Mass delete...'), 3, 3 );
  52  }
  53  
  54  if( $CommentList->is_filtered() )
  55  {    // List is filtered, offer option to reset filters:
  56      $CommentList->global_icon( T_('Reset all filters!'), 'reset_filters', '?ctrl=comments&amp;blog='.$Blog->ID.'&amp;tab3=listview&amp;filter=reset', T_('Reset filters'), 3, 3 );
  57  }
  58  
  59  // Initialize Results object
  60  comments_results( $CommentList );
  61  
  62  $CommentList->display();
  63  
  64  ?>

title

Description

title

Description

title

Description

title

title

Body