user-profile-category.tpl.php 1001 B

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