| 1 |
<?php
|
| 2 |
// $Id: user-profile.tpl.php,v 1.11 2009/08/22 00:58:55 webchick Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 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 |
* Use render($user_profile) to print all profile items, or print a subset
|
| 12 |
* such as render($content['field_example']). Always call render($user_profile)
|
| 13 |
* at the end in order to print all remaining items. If the item is a category,
|
| 14 |
* it will contain all its profile items. By default, $user_profile['summary']
|
| 15 |
* is provided which contains data on the user's history. Other data can be
|
| 16 |
* included by modules. $user_profile['user_picture'] is available
|
| 17 |
* for showing the account picture.
|
| 18 |
*
|
| 19 |
* Available variables:
|
| 20 |
* - $user_profile: An array of profile items. Use render() to print them.
|
| 21 |
* - Field variables: for each field instance attached to the user a
|
| 22 |
* corresponding variable is defined; e.g., $user->field_example has a
|
| 23 |
* variable $field_example defined. When needing to access a field's raw
|
| 24 |
* values, developers/themers are strongly encouraged to use these
|
| 25 |
* variables. Otherwise they will have to explicitly specify the desired
|
| 26 |
* field language, e.g. $user->field_example['en'], thus overriding any
|
| 27 |
* language negotiation rule that was previously applied.
|
| 28 |
*
|
| 29 |
* @see user-profile-category.tpl.php
|
| 30 |
* Where the html is handled for the group.
|
| 31 |
* @see user-profile-item.tpl.php
|
| 32 |
* Where the html is handled for each item in the group.
|
| 33 |
* @see template_preprocess_user_profile()
|
| 34 |
*/
|
| 35 |
?>
|
| 36 |
<div class="profile">
|
| 37 |
<?php print render($user_profile); ?>
|
| 38 |
</div>
|