user-picture.tpl.php 607 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to present a picture configured for the
  5. * user's account.
  6. *
  7. * Available variables:
  8. * - $user_picture: Image set by the user or the site's default. Will be linked
  9. * depending on the viewer's permission to view the user's 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. * @ingroup themeable
  16. */
  17. ?>
  18. <?php if ($user_picture): ?>
  19. <div class="<?php print $classes; ?>">
  20. <?php print $user_picture; ?>
  21. </div>
  22. <?php endif; ?>