author-pane-user-picture.tpl.php in Author Pane 6.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. Will use
- $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. This tells us if we want to link to the full sized image.
Note that this intentionally does not link to the user page. If you want it to link to the user page, change the link to: <a href="/user/<?php print $account->uid; ?>"><?php print $picture; ?></a>
1 theme call to author-pane-user-picture.tpl.php
- template_preprocess_author_pane in ./
author_pane.module - Preprocesses template variables for the author info template.
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. Will use
* - $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. This
* tells us if we want to link to the full sized image.
*
* Note that this intentionally does not link to the user page. If you want
* it to link to the user page, change the link to:
* <a href="/user/<?php print $account->uid; ?>"><?php print $picture; ?></a>
*
*/
?>
<?php
if (!empty($picture)) {
?>
<div class="picture">
<?php
if ($imagecache_used) {
?>
<a href="/<?php
print $account->picture;
?>" rel="lightbox"><?php
print $picture;
?></a>
<?php
}
else {
?>
<?php
print $picture;
?>
<?php
}
?>
</div>
<?php
}