author-pane-user-picture.tpl.php in Author Pane 7.2
Same filename and directory in other branches
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.
- $account: Array of account information. Potentially unsafe. Be sure to check_plain() before use.
- $imagecache_used: TRUE if imagecache was used to size the picture.
- $picture_link_profile: $picture with link to the user profile page if the viewer has permission to view the user's profile page, otherwise FALSE.
Use $picture_link_profile instead of $picture if you want the picture to link to the account profile page.
1 theme call to author-pane-user-picture.tpl.php
- template_preprocess_author_pane in ./
author_pane.module - Process variables for author-pane.tpl.php.
File
author-pane-user-picture.tpl.phpView source
<?php
/**
* @file
* 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.
* - $account: Array of account information. Potentially unsafe. Be sure to
* check_plain() before use.
* - $imagecache_used: TRUE if imagecache was used to size the picture.
* - $picture_link_profile: $picture with link to the user profile page if
* the viewer has permission to view the user's profile page, otherwise FALSE.
*
* Use $picture_link_profile instead of $picture if you want the picture to
* link to the account profile page.
*/
?>
<?php
if (!empty($picture)) {
?>
<div class="picture">
<?php
print $picture;
?>
</div>
<?php
}