profile-wrapper.tpl.php

  1. 7.x drupal-7.x/modules/profile/profile-wrapper.tpl.php
  2. 6.x drupal-6.x/modules/profile/profile-wrapper.tpl.php

Default theme implementation for wrapping member listings and their profiles.

This template is used when viewing a list of users. It can be a general list for viewing all users with the URL of "example.com/profile" or when viewing a set of users who share a specific value for a profile such as "example.com/profile/country/belgium".

Available variables:

  • $content: User account profiles iterated through profile-listing.tpl.php.
  • $current_field: The named field being browsed. Provided here for context. The above example would result in "last_name". An alternate template name is also based on this, e.g., "profile-wrapper-last_name.tpl.php".

See also

template_preprocess_profile_wrapper()

1 theme call to profile-wrapper.tpl.php
profile_browse in drupal-7.x/modules/profile/profile.pages.inc
Menu callback; display a list of user information.

File

drupal-7.x/modules/profile/profile-wrapper.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for wrapping member listings and their
  5. * profiles.
  6. *
  7. * This template is used when viewing a list of users. It can be a general
  8. * list for viewing all users with the URL of "example.com/profile" or when
  9. * viewing a set of users who share a specific value for a profile such
  10. * as "example.com/profile/country/belgium".
  11. *
  12. * Available variables:
  13. * - $content: User account profiles iterated through profile-listing.tpl.php.
  14. * - $current_field: The named field being browsed. Provided here for context.
  15. * The above example would result in "last_name". An alternate template name
  16. * is also based on this, e.g., "profile-wrapper-last_name.tpl.php".
  17. *
  18. * @see template_preprocess_profile_wrapper()
  19. */
  20. ?>
  21. <div id="profile">
  22. <?php print $content; ?>
  23. </div>