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

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

Inclure inc/filtres pour pouvoir utiliser la fonction "inserer_attribut".

File size: 641 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        include_spip('inc/filtres');
18        $status = demander_action('pep/activity/value.txt', $jid, $host);
19        return inserer_attribut(demander_action('pep/activity/image.png'.$theme, $jid, $host), "alt", $status);
20}
21?>
Note: See TracBrowser for help on using the repository browser.