File: user-picture.tpl.php

package info (click to toggle)
drupal7 7.32-1%2Bdeb8u12
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 23,496 kB
  • sloc: php: 43,501; pascal: 41,001; sh: 1,635; xml: 466; makefile: 21; sql: 1
file content (23 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

/**
 * @file
 * Default theme implementation to present a picture configured for the
 * user's account.
 *
 * Available variables:
 * - $user_picture: Image set by the user or the site's default. Will be linked
 *   depending on the viewer's permission to view the user's profile page.
 * - $account: Array of account information. Potentially unsafe. Be sure to
 *   check_plain() before use.
 *
 * @see template_preprocess_user_picture()
 *
 * @ingroup themeable
 */
?>
<?php if ($user_picture): ?>
  <div class="user-picture">
    <?php print $user_picture; ?>
  </div>
<?php endif; ?>