comparison modules/user/user-profile.tpl.php @ 13:8b6c45761e01 6.6

Drupal 6.6
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:32:33 +0100
parents c1f4ac30525a
children
comparison
equal deleted inserted replaced
12:4ca9f57cc4d4 13:8b6c45761e01
1 <?php 1 <?php
2 // $Id: user-profile.tpl.php,v 1.2 2007/08/07 08:39:36 goba Exp $ 2 // $Id: user-profile.tpl.php,v 1.2.2.1 2008/10/15 13:52:04 dries Exp $
3 3
4 /** 4 /**
5 * @file user-profile.tpl.php 5 * @file user-profile.tpl.php
6 * Default theme implementation to present all user profile data. 6 * Default theme implementation to present all user profile data.
7 * 7 *
11 * By default, all user profile data is printed out with the $user_profile 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. 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 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 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 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 16 * history. Other data can be included by modules. $profile['user_picture'] is
17 * available by default showing the account picture. 17 * available by default showing the account picture.
18 * 18 *
19 * Also keep in mind that profile items and their categories can be defined by 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, 20 * site administrators. They are also available within $profile. For example,
21 * if a site is configured with a category of "contact" with 21 * if a site is configured with a category of "contact" with
24 * category. This is useful for altering source order and adding custom 24 * category. This is useful for altering source order and adding custom
25 * markup for the group. 25 * markup for the group.
26 * 26 *
27 * To check for all available data within $profile, use the code below. 27 * To check for all available data within $profile, use the code below.
28 * 28 *
29 * <?php print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>'; ?> 29 * @code
30 * print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>';
31 * @endcode
30 * 32 *
31 * @see user-profile-category.tpl.php 33 * @see user-profile-category.tpl.php
32 * where the html is handled for the group. 34 * Where the html is handled for the group.
33 * @see user-profile-field.tpl.php 35 * @see user-profile-field.tpl.php
34 * where the html is handled for each item in the group. 36 * Where the html is handled for each item in the group.
35 * 37 *
36 * Available variables: 38 * Available variables:
37 * - $user_profile: All user profile data. Ready for print. 39 * - $user_profile: All user profile data. Ready for print.
38 * - $profile: Keyed array of profile categories and their items or other data 40 * - $profile: Keyed array of profile categories and their items or other data
39 * provided by modules. 41 * provided by modules.
40 * 42 *
41 * @see template_preprocess_user_profile() 43 * @see template_preprocess_user_profile()
42 */ 44 */
43 ?> 45 ?>
44 <div class="profile"> 46 <div class="profile">