b2evolution PHP Cross Reference Blogging Systems

Source: /skins/_usercomments.disp.php - 48 lines - 1727 bytes - Text - Print

Description: This is the template that displays user's comments

   1  <?php
   2  /**

   3   * This is the template that displays user's comments

   4   *

   5   * This file is not meant to be called directly.

   6   * It is meant to be called by an include in the main.page.php template.

   7   *

   8   * b2evolution - {@link http://b2evolution.net/}

   9   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

  10   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}

  11   *

  12   * @package evoskins

  13   */
  14  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15  
  16  global $user_ID, $viewed_User, $display_params, $user_CommentList;
  17  
  18  // Default params:

  19  $params = array_merge( array(
  20          'user_commentlist_title'      => T_('Comments posted by %s'),
  21          'user_commentlist_no_results' => T_('User has not posted any comment yet'),
  22          'user_commentlist_col_post'   => T_('Comment on:'),
  23      ), $params );
  24  
  25  
  26  $user_CommentList->title = sprintf( $params['user_commentlist_title'], $viewed_User->get_identity_link( array( 'link_text' => 'link' ) ) );
  27  $user_CommentList->no_results_text = $params['user_commentlist_no_results'];
  28  
  29  // Initialize Results object

  30  comments_results( $user_CommentList, array(
  31          'field_prefix'       => $user_CommentList->param_prefix,
  32          'display_permalink'  => false,
  33          'display_item'       => true,
  34          'display_status'     => true,
  35          'display_kind'       => false,
  36          'display_spam'       => false,
  37          'display_author'     => false,
  38          'display_url'        => false,
  39          'display_email'      => false,
  40          'display_ip'         => false,
  41          'display_visibility' => false,
  42          'display_actions'    => false,
  43          'col_post'           => $params['user_commentlist_col_post'],
  44      ) );
  45  
  46  $user_CommentList->display( $display_params );
  47  
  48  ?>

title

Description

title

Description

title

Description

title

title

Body