本文整理匯總了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>