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