Пример #1
0
function profilepic_internal_imagetag($authorID, $tags = '', $display = true)
{
    $path = profilepic_internal_picpath($authorID, false, 'absolute');
    $width = profilepic_internal_fingerdimensions($path, 'width');
    $height = profilepic_internal_fingerdimensions($path, 'height');
    $tag = '<img src="' . profilepic_internal_picpath($authorID, false, 'url') . '" width=' . $width . ' height=' . $height . ' ' . $tags . ' ' . ' id="authorpic" />';
    if ($display) {
        echo $tag;
    } else {
        return $tag;
    }
}
Пример #2
0
    $curauth = get_userdata(get_query_var('author'));
}
$authid = $curauth->ID;
?>
					<div id="author_about_container">
						<h1><span><?php 
echo $curauth->display_name;
?>
</span></h1>
						<div id="author_about_body" class="clearfix">
							<p>
								<?php 
if (function_exists('profilepic_internal_picpath')) {
    ?>
									<?php 
    $pic = profilepic_internal_picpath($curauth->ID, false);
    ?>
									<img src="<?php 
    echo $pic;
    ?>
" width="128" align="right" id="avatar_<?php 
    echo $curauth->ID;
    ?>
" />
								<?php 
} else {
    if (function_exists('userphoto_the_author_photo')) {
        ?>
									<?php 
        userphoto_the_author_photo('', '', array('align' => 'right', 'id' => 'avatar_' . $curauth->ID), get_bloginfo('template_directory') . '/img/avatar-sample.png');
        ?>