Last change
on this file since 282 was
90,
checked in by guille, 16 years ago
|
importacion de spip-listes-1_9_2
|
File size:
750 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * definition du plugin "spiplistes" version "classe statique" |
---|
5 | * utilisee comme espace de nommage |
---|
6 | */ |
---|
7 | |
---|
8 | if (!defined('_DIR_PLUGIN_SPIPLISTES')){ |
---|
9 | $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); |
---|
10 | define('_DIR_PLUGIN_SPIPLISTES',(_DIR_PLUGINS.end($p)).'/'); |
---|
11 | } |
---|
12 | |
---|
13 | function spiplistes_ajouterBoutons($boutons_admin) { |
---|
14 | // si on est admin |
---|
15 | if ($GLOBALS['connect_statut'] == "0minirezo" && $GLOBALS["connect_toutes_rubriques"]) { |
---|
16 | // on voit le bouton dans la barre "naviguer" |
---|
17 | $boutons_admin['naviguer']->sousmenu["spip_listes"]= new Bouton( |
---|
18 | _DIR_PLUGIN_SPIPLISTES."img_pack/stock_mail.gif", // icone |
---|
19 | _T('spiplistes:bouton_listes') // titre |
---|
20 | ); |
---|
21 | } |
---|
22 | return $boutons_admin; |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.