[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/modules/user/ -> user-profile.tpl.php (source)

   1  <?php
   2  // $Id: user-profile.tpl.php,v 1.2.2.2 2009/10/06 11:50:06 goba Exp $
   3  
   4  /**
   5   * @file user-profile.tpl.php
   6   * Default theme implementation to present all user profile data.
   7   *
   8   * This template is used when viewing a registered member's profile page,
   9   * e.g., example.com/user/123. 123 being the users ID.
  10   *
  11   * By default, all user profile data is printed out with the $user_profile
  12   * variable. If there is a need to break it up you can use $profile instead.
  13   * It is keyed to the name of each category or other data attached to the
  14   * account. If it is a category it will contain all the profile items. By
  15   * default $profile['summary'] is provided which contains data on the user's
  16   * history. Other data can be included by modules. $profile['user_picture'] is
  17   * available by default showing the account picture.
  18   *
  19   * Also keep in mind that profile items and their categories can be defined by
  20   * site administrators. They are also available within $profile. For example,
  21   * if a site is configured with a category of "contact" with
  22   * fields for of addresses, phone numbers and other related info, then doing a
  23   * straight print of $profile['contact'] will output everything in the
  24   * category. This is useful for altering source order and adding custom
  25   * markup for the group.
  26   *
  27   * To check for all available data within $profile, use the code below.
  28   * @code
  29   *   print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>';
  30   * @endcode
  31   *
  32   * Available variables:
  33   *   - $user_profile: All user profile data. Ready for print.
  34   *   - $profile: Keyed array of profile categories and their items or other data
  35   *     provided by modules.
  36   *
  37   * @see user-profile-category.tpl.php
  38   *   Where the html is handled for the group.
  39   * @see user-profile-item.tpl.php
  40   *   Where the html is handled for each item in the group.
  41   * @see template_preprocess_user_profile()
  42   */
  43  ?>
  44  <div class="profile">
  45    <?php print $user_profile; ?>
  46  </div>


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7