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