source: spip-zone/_plugins_/abomailmans/abomailmans_interface.php @ 31752

Last change on this file since 31752 was 31752, checked in by kent1@…, 10 years ago

Si on a le nouveau bando (plugin ou 2.1), on utilise les themes.

Amélioration des fichiers de langue

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Date Author Id Revision HeadURL
  • Property svn:mime-type set to text/plain
File size: 1.2 KB
Line 
1<?php
2/*
3 * Abomailmans
4 * MaZiaR - NetAktiv
5 * tech@netaktiv.com
6 * Printemps 2007 - 2009
7 * $Id: abomailmans_interface.php 31752 2009-09-23 00:09:48Z kent1@arscenic.info $
8*/
9
10function abomailmans_ajouter_boutons($flux) {
11        if (isset($flux['bando_edition'])){
12                return $flux;
13        }
14        global $visiteur_session;
15        // si on est admin
16        if ($visiteur_session['statut'] == "0minirezo" && !$visiteur_session['restreint']
17        AND (!isset($GLOBALS['meta']['activer_abomailmans']) OR $GLOBALS['meta']['activer_abomailmans']!="non") ) {
18                $menu = 'naviguer';
19                $icone = find_in_path("/img_pack/mailman.gif");
20                $flux[$menu]->sousmenu['abomailmans_tous'] = new Bouton(
21                        $icone,  // icone
22                        _T("abomailmans:bouton_listes_diffusion")
23                );
24        }
25        return $flux;
26}
27
28function abomailmans_header_prive($flux) {
29        $exec = _request('exec');
30        $flux .="\n\n<!-- PLUGIN ABOMAILMANS -->\n";
31        if ($exec=="abomailmans_envoyer") {
32                $flux .= "<script type=\"text/javascript\" src=\"" ._DIR_PLUGIN_ABOMAILMANS . "js/datePicker.js\"></script>\n";
33                $flux .= "<script type=\"text/javascript\" src=\"" ._DIR_PLUGIN_ABOMAILMANS . "js/datePicker_myScripts.js\"></script>\n";
34                $flux .= "<link rel=\"stylesheet\" href=\"" ._DIR_PLUGIN_ABOMAILMANS . "css/datePicker.css\" type=\"text/css\" />\n";}
35        $flux .="<!-- / PLUGIN ABOMAILMANS -->\n\n";
36        return $flux;
37}
38
39?>
Note: See TracBrowser for help on using the repository browser.