home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / CMS / drupal-6.0.exe / drupal-6.0 / modules / user / user-profile.tpl.php < prev    next >
Encoding:
PHP Script  |  2007-08-07  |  1.9 KB  |  47 lines

  1. <?php
  2. // $Id: user-profile.tpl.php,v 1.2 2007/08/07 08:39:36 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['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.  *
  29.  *   <?php print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>'; ?>
  30.  *
  31.  * @see user-profile-category.tpl.php
  32.  *      where the html is handled for the group.
  33.  * @see user-profile-field.tpl.php
  34.  *      where the html is handled for each item in the group.
  35.  *
  36.  * Available variables:
  37.  * - $user_profile: All user profile data. Ready for print.
  38.  * - $profile: Keyed array of profile categories and their items or other data
  39.  *   provided by modules.
  40.  *
  41.  * @see template_preprocess_user_profile()
  42.  */
  43. ?>
  44. <div class="profile">
  45.   <?php print $user_profile; ?>
  46. </div>
  47.