root / drupal7 / sites / all / modules / author_pane / author-pane-user-picture.tpl.php @ 4da4932d
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
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.
|
9 |
* - $account: Array of account information. Potentially unsafe. Be sure to
|
10 |
* check_plain() before use.
|
11 |
* - $imagecache_used: TRUE if imagecache was used to size the picture.
|
12 |
* - $picture_link_profile: $picture with link to the user profile page if
|
13 |
* the viewer has permission to view the user's profile page, otherwise FALSE.
|
14 |
*
|
15 |
* Use $picture_link_profile instead of $picture if you want the picture to
|
16 |
* link to the account profile page.
|
17 |
*/
|
18 |
?>
|
19 |
|
20 |
<?php if (!empty($picture)): ?> |
21 |
<div class="picture"> |
22 |
<?php print $picture; ?> |
23 |
</div>
|
24 |
<?php endif; ?> |