b2evolution PHP Cross Reference Blogging Systems

Source: /skins/_useritems.disp.php - 43 lines - 1472 bytes - Text - Print

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

   1  <?php
   2  /**

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

   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_ItemList;
  17  
  18  // Default params:

  19  $params = array_merge( array(
  20          'user_itemlist_title'      => T_('Posts created by %s'),
  21          'user_itemlist_no_results' => T_('User has not created any posts'),
  22      ), $params );
  23  
  24  
  25  $user_ItemList->title = sprintf( $params['user_itemlist_title'], $viewed_User->get_identity_link( array( 'link_text' => 'link' ) ) );
  26  $user_ItemList->no_results_text = $params['user_itemlist_no_results'];
  27  
  28  // Initialize Results object

  29  items_results( $user_ItemList, array(
  30          'field_prefix'       => $user_ItemList->param_prefix,
  31          'display_permalink'  => false,
  32          'display_title_flag' => false,
  33          'display_ord'        => false,
  34          'display_history'    => false,
  35          'display_blog'       => false,
  36          'display_author'     => false,
  37          'display_visibility_actions' => false,
  38          'display_actions'    => false,
  39      ) );
  40  
  41  $user_ItemList->display( $display_params );
  42  
  43  ?>

title

Description

title

Description

title

Description

title

title

Body