| 1 | <?php |
| 2 | // $Id: user-profile-item.tpl.php,v 1.3 2008/10/13 12:31:43 dries Exp $ |
| 3 | |
| 4 | /** |
| 5 | * @file |
| 6 | * Default theme implementation to present profile items (values from user |
| 7 | * account profile fields or modules). |
| 8 | * |
| 9 | * This template is used to loop through and render each field configured |
| 10 | * for the user's account. It can also be the data from modules. The output is |
| 11 | * grouped by categories. |
| 12 | * |
| 13 | * @see user-profile-category.tpl.php |
| 14 | * for the parent markup. Implemented as a definition list by default. |
| 15 | * @see user-profile.tpl.php |
| 16 | * where all items and categories are collected and printed out. |
| 17 | * |
| 18 | * Available variables: |
| 19 | * - $title: Field title for the profile item. |
| 20 | * - $value: User defined value for the profile item or data from a module. |
| 21 | * - $attributes: HTML attributes. Usually renders classes. |
| 22 | * |
| 23 | * @see template_preprocess_user_profile_item() |
| 24 | */ |
| 25 | ?> |
| 26 | <dt<?php print $attributes; ?>><?php print $title; ?></dt> |
| 27 | <dd<?php print $attributes; ?>><?php print $value; ?></dd> |
| 28 |