source: spip-zone/_plugins_/omnipresence/balise/jabber_activity_icon.php @ 30903

Last change on this file since 30903 was 30903, checked in by da@…, 11 years ago

Import du projet Omnipresence.
La structure générale du code a été nonchalamment pompée sur Gravatar.

File size: 611 bytes
Line 
1<?php
2include_spip('inc/omnipresence');
3
4function balise_JABBER_ACTIVITY_ICON($p) {
5        return calculer_balise_dynamique($p, 'JABBER_ACTIVITY_ICON', array(CHAMP_JID, CHAMP_SERVEUR_OMNIPRESENCE));
6}
7
8function balise_JABBER_ACTIVITY_ICON_stat($args, $filtres) {
9        return array(
10                isset($args[2]) ? $args[2] : $args[0],
11                $args[1],
12        );
13}
14
15function balise_JABBER_ACTIVITY_ICON_dyn($jid, $host) {
16        #TODO: Request value in the context's locale
17        $status = demander_action('pep/activity/value.txt', $jid, $host);
18        return inserer_attribut(demander_action('pep/activity/image.png'.$theme, $jid, $host), "alt", $status);
19}
20?>
Note: See TracBrowser for help on using the repository browser.