root/_plugins_/_stable_/squelettes_par_mots_cle/squelettes_par_mots_cle_1_92/SquelettesMots.php
| Revision 14622, 2.2 kB (checked in by pierre.andrews@…, 17 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | // Fichier créé pour SPIP avec un bout de code emprunté à celui ci. |
| 3 | // Distribué sans garantie sous licence GPL./ |
| 4 | // Copyright (C) 2006 Pierre ANDREWS |
| 5 | // |
| 6 | // This program is free software; you can redistribute it and/or modify |
| 7 | // it under the terms of the GNU General Public License as published by |
| 8 | // the Free Software Foundation; either version 2 of the License, or any later version. |
| 9 | // |
| 10 | // This program is distributed in the hope that it will be useful, |
| 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | // GNU General Public License for more details. |
| 14 | // |
| 15 | // You should have received a copy of the GNU General Public License |
| 16 | // along with this program; if not, write to the Free Software |
| 17 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | |
| 19 | |
| 20 | $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); |
| 21 | define('_DIR_PLUGIN_CHERCHER_SQUELETTES',(_DIR_PLUGINS.end($p))); |
| 22 | |
| 23 | function SquelettesMots_ajouter_onglets($flux) { |
| 24 | if($flux['args']=='configuration') |
| 25 | $flux['data']['config_chercher_squelettes_mots']= new Bouton( |
| 26 | '../'._DIR_PLUGIN_CHERCHER_SQUELETTES.'/spip_death.png', 'Configurer Squelettes Mots', |
| 27 | generer_url_ecrire("config_chercher_squelettes_mots")); |
| 28 | return $flux; |
| 29 | } |
| 30 | |
| 31 | /* |
| 32 | pas de tel point d'entree. |
| 33 | function SquelettesMots_ajouter_boite_gauche($arguments) { |
| 34 | global $connect_statut, $connect_toutes_rubriques, $spip_lang; |
| 35 | if ($connect_statut != '0minirezo' OR !$connect_toutes_rubriques) { |
| 36 | if($arguments['args']['exec'] == 'articles') { |
| 37 | include('chercher_squelette.php'); |
| 38 | |
| 39 | $ext = $GLOBALS['extension_squelette']; |
| 40 | $arguments['data'] .= '<div class="cadre-info verdana1">'._T('SquelettesMots:utiliserasquelette',array('squelette' =>substr(cherher_squelette('article',$arguments['args']['id_rubrique'],$spip_lang),strpos('/')))).".$ext</div>"; |
| 41 | } |
| 42 | } |
| 43 | return $arguments; |
| 44 | }*/ |
| 45 | |
| 46 | function SquelettesMots_header_prive($texte) { |
| 47 | $texte.= '<link rel="stylesheet" type="text/css" href="'._DIR_PLUGIN_CHERCHER_SQUELETTES.'/chercher_squelettes_mots.css" />' . "\n"; |
| 48 | return $texte; |
| 49 | } |
| 50 | |
| 51 | ?> |
Note: See TracBrowser
for help on using the browser.
