Code coverage for /20081101/modules/user/user-profile.tpl.php

Line #Times calledCode
1
<?php
2
// $Id: user-profile.tpl.php,v 1.4 2008/10/15 13:51:53 dries 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
 * 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.
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
15
 * default $profile['summary'] is provided which contains data on the
user's
16
 * history. Other data can be included by modules. $profile['user_picture']
is
17
 * available by default showing the account picture.
18
 *
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,
21
 * if a site is configured with a category of "contact" with
22
 * fields for of addresses, phone numbers and other related info, then
doing a
23
 * straight print of $profile['contact'] will output everything in the
24
 * category. This is useful for altering source order and adding custom
25
 * markup for the group.
26
 *
27
 * To check for all available data within $profile, use the code below.
28
 *
29
 * @code
30
 *   print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>';
31
 * @endcode
32
 *
33
 * @see user-profile-category.tpl.php
34
 *   Where the html is handled for the group.
35
 * @see user-profile-field.tpl.php
36
 *   Where the html is handled for each item in the group.
37
 *
38
 * Available variables:
39
 *   - $user_profile: All user profile data. Ready for print.
40
 *   - $profile: Keyed array of profile categories and their items or other
data
41
 *     provided by modules.
42
 *
43
 * @see template_preprocess_user_profile()
44
 */
45
?>
46
<div class="profile">
47191
  <?php print $user_profile; ?>
48
</div>
49191