/** * Return whether the user uses gravatar for avatars * * @return boolean */ public function usesGravatar() { if (!framework\Settings::isGravatarsEnabled()) { return false; } if ($this->isGuest()) { return false; } return (bool) $this->_use_gravatar; }
disabled<?php } ?> > <option value=1<?php if (\thebuggenie\core\framework\Settings::isGravatarsEnabled()) { ?> selected<?php } ?> ><?php echo __('Users icons will use the gravatar.com service'); ?> </option> <option value=0<?php if (!\thebuggenie\core\framework\Settings::isGravatarsEnabled()) { ?> selected<?php } ?> ><?php echo __('Users will use default user icons'); ?> </option> </select> <?php echo config_explanation(__('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')))); ?> </td> </tr> <tr>