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

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

Prendre en compte la langue du contexte dans la balise #JABBER_ACTIVITY_ICON
pour la balise "alt".

File size: 632 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, 'lang'));
6}
7
8function balise_JABBER_ACTIVITY_ICON_stat($args, $filtres) {
9        return array(
10                isset($args[3]) ? $args[3] : $args[0],
11                $args[1],
12                $args[2],
13        );
14}
15
16function balise_JABBER_ACTIVITY_ICON_dyn($jid, $host, $locale) {
17        include_spip('inc/filtres');
18        $status = demander_action("pep/activity/value-$locale.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.