Project

General

Profile

Paste
Download (1001 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / modules / user / user-profile-category.tpl.php @ c7768a53

1
<?php
2

    
3
/**
4
 * @file
5
 * Default theme implementation to present profile categories (groups of
6
 * profile items).
7
 *
8
 * Categories are defined when configuring user profile fields for the site.
9
 * It can also be defined by modules. All profile items for a category will be
10
 * output through the $profile_items variable.
11
 *
12
 * @see user-profile-item.tpl.php
13
 *      where each profile item is rendered. It is implemented as a definition
14
 *      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: Category title for the group of items.
20
 * - $profile_items: All the items for the group rendered through
21
 *   user-profile-item.tpl.php.
22
 * - $attributes: HTML attributes. Usually renders classes.
23
 *
24
 * @see template_preprocess_user_profile_category()
25
 */
26
?>
27
<?php if ($title): ?>
28
  <h3><?php print $title; ?></h3>
29
<?php endif; ?>
30

    
31
<dl<?php print $attributes; ?>>
32
  <?php print $profile_items; ?>
33
</dl>