/[drupal]/drupal/modules/user/user-profile.tpl.php
ViewVC logotype

Contents of /drupal/modules/user/user-profile.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (show annotations) (download) (as text)
Wed Sep 30 00:46:35 2009 UTC (8 weeks, 4 days ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-10, HEAD
Changes since 1.11: +11 -12 lines
File MIME type: text/x-php
- Patch #563526 by jhodgdon | anschinsan: fixed broken see also link in user-profile.tpl.php doc and re-organized some of the documentation.
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>

  ViewVC Help
Powered by ViewVC 1.1.2