user-picture.tpl.php

  1. drupal
    1. 6 modules/user/user-picture.tpl.php
    2. 7 modules/user/user-picture.tpl.php
    3. 8 core/modules/user/user-picture.tpl.php

user-picture.tpl.php Default theme implementation to present an picture configured for the user's account.

Available variables:

  • $picture: Image set by the user or the site's default. Will be linked depending on the viewer's permission to view the users profile page.
  • $account: Array of account information. Potentially unsafe. Be sure to check_plain() before use.

See also

template_preprocess_user_picture()

6 theme calls to user-picture.tpl.php

File

modules/user/user-picture.tpl.php
View source
  1. <?php
  2. /**
  3. * @file user-picture.tpl.php
  4. * Default theme implementation to present an picture configured for the
  5. * user's account.
  6. *
  7. * Available variables:
  8. * - $picture: Image set by the user or the site's default. Will be linked
  9. * depending on the viewer's permission to view the users profile page.
  10. * - $account: Array of account information. Potentially unsafe. Be sure to
  11. * check_plain() before use.
  12. *
  13. * @see template_preprocess_user_picture()
  14. */
  15. ?>
  16. <div class="picture">
  17. <?php print $picture; ?>
  18. </div>
Login or register to post comments