<?xml version="1.0" encoding="UTF-8"?>
<ajxp_plugin id="action.avatar" enabled="false" label="CONF_MESSAGE[Avatars]" description="CONF_MESSAGE[Get user avatar from Gravatar/Libravatar]"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <plugin_info>
        <plugin_author>Afterster</plugin_author>
        <core_relation packaged="true" tested_version="5.0"/>
    </plugin_info>
    <client_settings>
        <resources>
            <i18n namespace="avatar_gravatar" path="plugins/action.avatar/i18n" />
        </resources>
    </client_settings>
    <server_settings>
        <global_param name="AVATAR_PROVIDER" type="select" choices="gravatar|Gravatar,libravatar|Libravatar" label="CONF_MESSAGE[Provider]" description="CONF_MESSAGE[Choose an avatar web service]" mandatory="true" default="gravatar" expose="true"/>
        <global_param name="GRAVATAR_TYPE" type="select" choices="blank|Blank,identicon|IdentIcon,mm|Mystery-Man,monsterid|MonsterID,retro|Retro,wavatar|Wavatar" label="CONF_MESSAGE[Gravatar type]" description="CONF_MESSAGE[Gravatar type]" mandatory="true" default="identicon"/>
    </server_settings>
    <registry_contributions>
        <actions>
            <action name="get_avatar_url">
                <rightsContext adminOnly="false" noUser="true" read="false" userLogged="only" write="false"/>
                <processing>
                    <serverCallback methodName="receiveAction" developerComment="Get avatar URL for currently logged user"/>
                </processing>
            </action>
        </actions>
    </registry_contributions>
    <class_definition filename="plugins/action.avatar/class.AvatarProvider.php" classname="AvatarProvider"/>
</ajxp_plugin>
