[PLUGINS] +set de base
[lhc/web/www.git] / www / plugins / seo-v1 / pipelines / seo_ajouter_onglets.php
1 <?php
2 /**
3 * BouncingOrange SPIP SEO plugin
4 *
5 * @category SEO
6 * @package SPIP_SEO
7 * @author Pierre ROUSSET (p.rousset@gmail.com)
8 * @copyright Copyright (c) 2009 BouncingOrange (http://www.bouncingorange.com)
9 * @license http://opensource.org/licenses/gpl-2.0.php General Public License (GPL 2.0)
10 */
11
12 if (!defined("_ECRIRE_INC_VERSION")) return;
13
14 function seo_ajouter_onglets($flux){
15
16 global $connect_statut, $connect_toutes_rubriques;
17
18 // seul les administrateurs globaux ont acces au bouton de configuration
19 if ($connect_statut && $connect_toutes_rubriques){
20 if ($flux['args']=='configuration'){
21 $flux['data']['seo'] = new Bouton(_DIR_PLUGIN_SEO . "img_pack/seo-24.png", _T("seo:seo"), generer_url_ecrire('seo_config'));
22 }
23 }
24
25 return ($flux);
26 }
27
28 ?>