Mercurial > defr > drupal > core
comparison modules/user/user-profile-category.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:5a113a1c4740 | 1:c1f4ac30525a |
---|---|
1 <?php | |
2 // $Id: user-profile-category.tpl.php,v 1.2 2007/08/07 08:39:36 goba Exp $ | |
3 | |
4 /** | |
5 * @file user-profile-category.tpl.php | |
6 * Default theme implementation to present profile categories (groups of | |
7 * profile items). | |
8 * | |
9 * Categories are defined when configuring user profile fields for the site. | |
10 * It can also be defined by modules. All profile items for a category will be | |
11 * output through the $profile_items variable. | |
12 * | |
13 * @see user-profile-item.tpl.php | |
14 * where each profile item is rendered. It is implemented as a definition | |
15 * list by default. | |
16 * @see user-profile.tpl.php | |
17 * where all items and categories are collected and printed out. | |
18 * | |
19 * Available variables: | |
20 * - $title: Category title for the group of items. | |
21 * - $profile_items: All the items for the group rendered through | |
22 * user-profile-item.tpl.php. | |
23 * - $attributes: HTML attributes. Usually renders classes. | |
24 * | |
25 * @see template_preprocess_user_profile_category() | |
26 */ | |
27 ?> | |
28 <?php if ($title) : ?> | |
29 <h3><?php print $title; ?></h3> | |
30 <?php endif; ?> | |
31 | |
32 <dl<?php print $attributes; ?>> | |
33 <?php print $profile_items; ?> | |
34 </dl> |