Mercurial > defr > drupal > core
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/user/user-profile-category.tpl.php Tue Dec 23 14:28:28 2008 +0100 @@ -0,0 +1,34 @@ +<?php +// $Id: user-profile-category.tpl.php,v 1.2 2007/08/07 08:39:36 goba Exp $ + +/** + * @file user-profile-category.tpl.php + * Default theme implementation to present profile categories (groups of + * profile items). + * + * Categories are defined when configuring user profile fields for the site. + * It can also be defined by modules. All profile items for a category will be + * output through the $profile_items variable. + * + * @see user-profile-item.tpl.php + * where each profile item is rendered. It is implemented as a definition + * list by default. + * @see user-profile.tpl.php + * where all items and categories are collected and printed out. + * + * Available variables: + * - $title: Category title for the group of items. + * - $profile_items: All the items for the group rendered through + * user-profile-item.tpl.php. + * - $attributes: HTML attributes. Usually renders classes. + * + * @see template_preprocess_user_profile_category() + */ +?> +<?php if ($title) : ?> + <h3><?php print $title; ?></h3> +<?php endif; ?> + +<dl<?php print $attributes; ?>> + <?php print $profile_items; ?> +</dl>