/** * Return whether the user uses gravatar for avatars * * @return boolean */ public function usesGravatar() { if (!TBGSettings::isGravatarsEnabled()) { return false; } if ($this->isGuest()) { return false; } return (bool) $this->_use_gravatar; }
disabled<?php } ?> > <option value=1<?php if (TBGSettings::isGravatarsEnabled()) { ?> selected<?php } ?> ><?php echo __('Users icons will use the gravatar.com service'); ?> </option> <option value=0<?php if (!TBGSettings::isGravatarsEnabled()) { ?> selected<?php } ?> ><?php echo __('Users will use default user icons'); ?> </option> </select> </td> </tr> <tr> <td class="config_explanation" colspan="2"> <?php echo __('Select whether to use the %gravatar.com user icon service for user avatars, or just use the default ones', array('%gravatar.com' => link_tag('http://www.gravatar.com', 'gravatar.com')));