webmaster@1
|
1 <?php |
webmaster@13
|
2 // $Id: user-profile.tpl.php,v 1.2.2.1 2008/10/15 13:52:04 dries 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@13
|
16 * history. Other data can be included by modules. $profile['user_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@13
|
29 * @code |
webmaster@13
|
30 * print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>'; |
webmaster@13
|
31 * @endcode |
webmaster@1
|
32 * |
webmaster@1
|
33 * @see user-profile-category.tpl.php |
webmaster@13
|
34 * Where the html is handled for the group. |
webmaster@1
|
35 * @see user-profile-field.tpl.php |
webmaster@13
|
36 * Where the html is handled for each item in the group. |
webmaster@1
|
37 * |
webmaster@1
|
38 * Available variables: |
webmaster@13
|
39 * - $user_profile: All user profile data. Ready for print. |
webmaster@13
|
40 * - $profile: Keyed array of profile categories and their items or other data |
webmaster@13
|
41 * provided by modules. |
webmaster@1
|
42 * |
webmaster@1
|
43 * @see template_preprocess_user_profile() |
webmaster@1
|
44 */ |
webmaster@1
|
45 ?> |
webmaster@1
|
46 <div class="profile"> |
webmaster@1
|
47 <?php print $user_profile; ?> |
webmaster@1
|
48 </div> |