本文整理汇总了PHP中BackendUser::getGravatar方法的典型用法代码示例。如果您正苦于以下问题:PHP BackendUser::getGravatar方法的具体用法?PHP BackendUser::getGravatar怎么用?PHP BackendUser::getGravatar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BackendUser
的用法示例。
在下文中一共展示了BackendUser::getGravatar方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: empty
<th>
Website:
</th>
<td>
<?php
echo empty($db_object->array['website']) ? 'None' : plain($db_object->array['website']);
?>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<?php
echo empty($db_object->array['bio']) ? ' ' : simple($db_object->array['bio']);
?>
</tr>
</tr>
</table>
</div>
<div id="gravatar_div" class="span-4 last">
<a href="http://en.gravatar.com/site/check/<?php
echo $db_object->array['email'];
?>
" target="_blank">
<img src="<?php
echo BackendUser::getGravatar($db_object->array['email']);
?>
" alt="Gravatar" />
</a>
</div>
<div class="clear"> </div>
示例2:
if (!empty($comment['BackendUser']['website'])) {
$posted_by = '<a href="http://' . $comment['BackendUser']['website'] . '">' . $posted_by . '</a>';
}
} else {
$posted_by = $comment['BackendUser']['username'];
if ($comment['BackendUser']['confirmed']) {
$posted_by = '<a href="?q=backend_user/' . $comment['user_id'] . '">' . $posted_by . '</a>';
}
}
?>
<div id="comment_<?php
echo $comment['id'];
?>
">
<img src="<?php
echo BackendUser::getGravatar($comment['BackendUser']['email'], 30);
?>
" style="float: left; margin-right: 5px;" width="30px" height="30px">
<p class="quiet">
posted by <?php
echo $posted_by;
?>
<span title="<?php
echo $comment['added'];
?>
"><?php
echo time_elapsed($comment['added']);
?>
</a>
</p>
<p>