summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/user/user-profile-category.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/user/user-profile-category.tpl.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/user/user-profile-category.tpl.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/user/user-profile-category.tpl.php b/kolab.org/www/drupal-7.26/modules/user/user-profile-category.tpl.php
new file mode 100644
index 0000000..0a86c76
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/user/user-profile-category.tpl.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @file
+ * 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>