permettant aux boutons de jouer // du on/off au survol // -> fonction bandeau_gadgets() // 2. Au survol, sera execute un script en Ajax menu_{gadget}.php // // http://doc.spip.org/@bandeau_gadgets function bandeau_gadgets($largeur, $options, $id_rubrique) { return "
" . "\n
" . "\n
" . bandeau_gadget_menu_rubriques() . bandeau_gadget_navigation_rapide($id_rubrique) . bandeau_gadget_recherche() . (($GLOBALS['meta']['messagerie_agenda'] != 'non') ? bandeau_gadget_agenda_messagerie() : '') . bandeau_gadget_suivi_activite () . // -------- Affichage de droite ---------- bandeau_gadget_deconnection() . bandeau_gadget_couleurs() . "
\n"; } function bandeau_gadget_menu_rubriques() { global $spip_lang_left; return "\n
" . "" ._T('icone_site_entier') . "" . "\n
" . "
"; } // FIN GADGET Menu rubriques function bandeau_gadget_navigation_rapide($id_rubrique) { global $spip_lang_left; return "
" . "" . _T('icone_brouteur') . "" . "\n
\n" . "
\n"; } // FIN GADGET Navigation rapide function bandeau_gadget_recherche() { global $spip_lang_left; $r = _T('info_rechercher'); return "\n
" . generer_form_ecrire('recherche', (""), " method='get' style='margin: 0px; position: relative;'") . "
"; } // FIN GADGET recherche function bandeau_gadget_agenda_messagerie() { global $spip_lang_left; return "
" . "" . _T('icone_agenda') . "" . "\n
\n" . "
\n" // FIN GADGET Agenda // GADGET Messagerie . "
" . "" . _T('icone_messagerie_personnelle') . "" . "\n
\n" . "
"; } // FIN GADGET Messagerie function bandeau_gadget_suivi_activite () { global $spip_lang_left; return "
" . "" . _T('icone_suivi_activite') . "" // . "\n
 
" // . icone_horizontale(_T('analyse_xml'), parametre_url(self(),'transformer_xml', 'valider_xml'), 'racine-24.gif', '', false) // . "
". . "
\n"; /* // Infos perso $bandeau .= "\n
" . "" . _T('icone_informations_personnelles') . "" . "
"; */ } function bandeau_gadget_deconnection() { global $spip_lang_right; return "\n
" . ""._T('icone_deconnecter')."" . aide("deconnect") . "
"; } function bandeau_gadget_couleurs() { global $spip_ecran, $spip_lang, $spip_lang_rtl, $spip_lang_left, $spip_lang_right; $decal = 0; $decal = $decal + 150; $bandeau = "\n
"; // couleurs // $couleurs = charger_fonction('couleurs', 'inc'); // $bandeau .= "
"; // $bandeau .= $couleurs() . "
"; // menu $self = self('&'); $bandeau .= "\n
" . lien_change_var (generer_action_auteur('preferer',"display:1", $self),'','', '1,0,18,15', _T('lien_afficher_texte_seul')) . lien_change_var (generer_action_auteur('preferer',"display:2", $self),'','', '19,0,40,15', _T('lien_afficher_texte_icones')) . lien_change_var (generer_action_auteur('preferer',"display:3", $self),'','', '41,0,59,15', _T('lien_afficher_icones_seuls')) . "\n
"; $bandeau .= "
" . http_img_pack("choix-layout$spip_lang_rtl".($spip_lang=='he'?'_he':'').".gif", _T('choix_interface'), " style='vertical-align: middle' width='59' height='15' usemap='#map_layout'") . http_img_pack("rien.gif", "", "width='10' height='1'") . "
"; // ecran if ($spip_ecran == "large") $bandeau .= "
"._T('info_petit_ecran')."/"._T('info_grand_ecran')."
"; else $bandeau .= "
"._T('info_petit_ecran')."/"._T('info_grand_ecran')."
"; $bandeau .= "
"; return $bandeau; } // http://doc.spip.org/@gadget_messagerie function gadget_messagerie() { global $connect_statut; return "
 
" . icone_horizontale(_T('lien_nouvea_pense_bete'),generer_action_auteur("editer_message","pb"), "pense-bete.gif",'',false) . icone_horizontale(_T('lien_nouveau_message'),generer_action_auteur("editer_message","normal"), "message.gif",'',false) . (($connect_statut != "0minirezo") ? '' : icone_horizontale(_T('lien_nouvelle_annonce'),generer_action_auteur("editer_message","affich"), "annonce.gif",'',false)); } // http://doc.spip.org/@installer_gadgets function installer_gadgets($id_rubrique) { return "" . http_img_pack("tout-site.png", _T('icone_site_entier'), "width='26' height='20'") . "" . "" . http_img_pack("naviguer-site.png", _T('icone_brouteur'), "width='26' height='20'") ."" . "" . http_img_pack("loupe.png", _T('info_rechercher'), "width='26' height='20'") ."" . (($GLOBALS['meta']['messagerie_agenda'] != 'non') ? http_img_pack("rien.gif", "", "width='10'") . "" . http_img_pack("cal-rv.png", _T('icone_agenda'), "width='26' height='20'") ."" . "" . http_img_pack("cal-messagerie.png", _T('icone_messagerie_personnelle'), "width='26' height='20'") ."" . "" . http_img_pack("cal-suivi.png", _T('icone_suivi_activite'), "width='26' height='20'") . "" : ''); } // http://doc.spip.org/@repercuter_gadgets function repercuter_gadgets($id_rubrique) { if (!_SPIP_AJAX) return ''; // comme on cache fortement ce menu, // son url change en fonction de sa date de modif $d = isset($GLOBALS['meta']['date_calcul_rubriques']) ? $GLOBALS['meta']['date_calcul_rubriques'] : 0; $args = join("',\n'", array( "./?exec=menu_rubriques\\x26date=$d", "./?exec=menu_navigation\\x26id_rubrique=$id_rubrique", "./?exec=menu_agenda", str_replace('