annotate modules/user/user-profile.tpl.php @ 1:c1f4ac30525a 6.0

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