[PLUGINS] +maj menu_langue_lien plus passage en sous-module
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Mon, 28 Jun 2021 08:56:44 +0000 (10:56 +0200)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Mon, 28 Jun 2021 08:56:44 +0000 (10:56 +0200)
33 files changed:
.gitmodules
www/plugins/Menu_langue_lien/balise/menu_lang.php [deleted file]
www/plugins/Menu_langue_lien/fonds/cfg_menu_lang_liens.html [deleted file]
www/plugins/Menu_langue_lien/formulaires/configurer_menu_lang_liens.html [deleted file]
www/plugins/Menu_langue_lien/formulaires/menu_lang.html [deleted file]
www/plugins/Menu_langue_lien/img_pack/world_link-16.png [deleted file]
www/plugins/Menu_langue_lien/img_pack/world_link-24.png [deleted file]
www/plugins/Menu_langue_lien/img_pack/world_link-32.png [deleted file]
www/plugins/Menu_langue_lien/lang/mll.xml [deleted file]
www/plugins/Menu_langue_lien/lang/mll_en.php [deleted file]
www/plugins/Menu_langue_lien/lang/mll_es.php [deleted file]
www/plugins/Menu_langue_lien/lang/mll_fr.php [deleted file]
www/plugins/Menu_langue_lien/lang/mll_nl.php [deleted file]
www/plugins/Menu_langue_lien/lang/mll_ru.php [deleted file]
www/plugins/Menu_langue_lien/lang/mll_sk.php [deleted file]
www/plugins/Menu_langue_lien/lang/paquet-mll.xml [deleted file]
www/plugins/Menu_langue_lien/lang/paquet-mll_en.php [deleted file]
www/plugins/Menu_langue_lien/lang/paquet-mll_es.php [deleted file]
www/plugins/Menu_langue_lien/lang/paquet-mll_fr.php [deleted file]
www/plugins/Menu_langue_lien/lang/paquet-mll_nl.php [deleted file]
www/plugins/Menu_langue_lien/lang/paquet-mll_ru.php [deleted file]
www/plugins/Menu_langue_lien/lang/paquet-mll_sk.php [deleted file]
www/plugins/Menu_langue_lien/mll_options.php [deleted file]
www/plugins/Menu_langue_lien/mll_pipelines.php [deleted file]
www/plugins/Menu_langue_lien/mll_styles.css [deleted file]
www/plugins/Menu_langue_lien/paquet.xml [deleted file]
www/plugins/Menu_langue_lien/plugin.xml [deleted file]
www/plugins/Menu_langue_lien/prive/squelettes/contenu/configurer_mll.html [deleted file]
www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-16.png [deleted file]
www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-24.png [deleted file]
www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-32.png [deleted file]
www/plugins/Menu_langue_lien/svn.revision [deleted file]
www/plugins/menus_langues_liens [new submodule]

index ba63980..1cc9dbc 100644 (file)
@@ -49,3 +49,6 @@
 [submodule "www/plugins/spip_carte_de_sites"]
        path = www/plugins/spip_carte_de_sites
        url = git://git.heureux-cyclage.org/lhc/web/spip_carte_de_sites
+[submodule "www/plugins/menus_langues_liens"]
+       path = www/plugins/menus_langues_liens
+       url = https://git.spip.net/spip-contrib-extensions/menu_langues_liens.git
diff --git a/www/plugins/Menu_langue_lien/balise/menu_lang.php b/www/plugins/Menu_langue_lien/balise/menu_lang.php
deleted file mode 100644 (file)
index aa15650..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-if (!defined("_ECRIRE_INC_VERSION")) return;   #securite
-
-// #MENU_LANG affiche le menu des langues de l'espace public
-// et preselectionne celle la globale $lang
-// ou de l'argument fourni: #MENU_LANG{#ENV{malangue}} 
-
-// https://code.spip.net/@balise_MENU_LANG
-function balise_MENU_LANG ($p) {
-       $i_boucle = $p->nom_boucle ? $p->nom_boucle : ($p->id_boucle ? $p->id_boucle :'');
-       if($i_boucle){
-               $_id_objet = $p->boucles[$i_boucle]->primary;
-       }
-       
-       return calculer_balise_dynamique(
-               $p,
-               'MENU_LANG',
-               array(
-                       'LANG_TYPE_BOUCLE', // demande du type d'objet
-                       $_id_objet
-               )
-       );
-}
-
-// s'il n'y a qu'une langue eviter definitivement la balise ?php 
-// https://code.spip.net/@balise_MENU_LANG_stat
-function balise_MENU_LANG_stat ($args, $context_compil) {
-       if (strpos($GLOBALS['meta']['langues_multilingue'],',') === false) return '';
-       $objet = $args[0];
-       $id_objet = $args[1];
-       if ($objet == 'balise_hors_boucle') {
-               $objet = '';
-               $id_objet = '';
-               $id_table_objet ='';
-       }else{
-               $objet = table_objet($objet);
-               $id_table_objet = id_table_objet($objet);
-       }
-       return array($objet, $id_objet,$id_table_objet);
-}
-
-// normalement $opt sera toujours non vide suite au test ci-dessus
-// https://code.spip.net/@balise_MENU_LANG_dyn
-function balise_MENU_LANG_dyn($objet,$id_objet,$id_table_objet) {
-       include_spip('inc/lang');
-       # lien a partir de /
-       $cible = parametre_url(self(), 'lang' , '', '&');
-       $post = generer_url_action('converser', 'redirect='. rawurlencode($cible), '&');
-
-       return array('formulaires/menu_lang',
-               3600,
-               array(
-                       //'nom' => $nom,
-                       'lang' => $GLOBALS['spip_lang'],
-                       'url' => $post,
-                       $id_table_objet => $id_objet
-               )
-       );
-}
-
-// balise type_boucle de Rastapopoulos dans le plugin etiquettes
-// present aussi dans plugin ajaxforms...
-// bref, a integrer dans le core ? :p
-function balise_LANG_TYPE_BOUCLE($p) {
-       $type = $p->boucles[$p->id_boucle]->id_table;
-       $p->code = $type ? $type : "balise_hors_boucle";
-       return $p;
-}
-?>
\ No newline at end of file
diff --git a/www/plugins/Menu_langue_lien/fonds/cfg_menu_lang_liens.html b/www/plugins/Menu_langue_lien/fonds/cfg_menu_lang_liens.html
deleted file mode 100644 (file)
index c4f5082..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<!-- titre=<:mll:cfg_titre_mll:> -->
-<!-- icone=img_pack/world_link-16.png -->
-<!-- autoriser=webmestre -->
-<!-- refus=<:cfg:refus_configuration_webmestre:> -->
-
-#CACHE{0}
-<div class="ajax">
-#FORMULAIRE_CONFIGURER_MENU_LANG_LIENS
-</div>
diff --git a/www/plugins/Menu_langue_lien/formulaires/configurer_menu_lang_liens.html b/www/plugins/Menu_langue_lien/formulaires/configurer_menu_lang_liens.html
deleted file mode 100644 (file)
index f91b608..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!-- autoriser=webmestre -->\r
-<!-- refus=<:cfg:refus_configuration_webmestre:> -->\r
-<!-- nom=menu_lang_liens -->\r
-\r
-<div class="formulaire_spip formulaire_configurer formulaire_configurer_mll">\r
-[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]\r
-[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]\r
-<form method="post" action="#ENV{action}"><div>\r
-       #ACTION_FORMULAIRE{#ENV{action}}\r
-       <ul class="editer-groupe">\r
-               <li class="editer editer_mll_langues_invisibles[ (#ENV**{erreurs}|table_valeur{langues_invisibles}|oui)erreur]">\r
-                       <label for="langues_invisibles"><:mll:label_langues_invisibles:></label>\r
-                       <p class="explication"><:mll:explication_langues_invisibles:></p>\r
-                       <select name="langues_invisibles[]" id="langues_invisibles" multiple="oui">\r
-                               <BOUCLE_langues(POUR){tableau #CONFIG{langues_multilingue}|explode{','}}>\r
-                               <option value="#VALEUR"[(#VALEUR|in_array{#ENV{langues_invisibles,#ARRAY}}|oui)selected="selected"]>[(#VALEUR|traduire_nom_langue)]</option>\r
-                               </BOUCLE_langues>\r
-                       </select>\r
-               </li>\r
-               <li class="editer editer_mll_langues_supprimer[ (#ENV**{erreurs}|table_valeur{format}|oui)erreur]">\r
-                       <label for="format"><:mll:label_format:></label>\r
-                       <div class="choix">\r
-                               <input type="radio" name="format" id="abrege" value="abrege" [(#ENV{format,abrege}|=={'abrege'}|?{' ',''})checked]/> \r
-                               <label for="abrege"><:mll:label_format_abrege:></label>\r
-                       </div>\r
-                       <div class="choix">\r
-                               <input type="radio" name="format" id="complet" value="complet" [(#ENV{format,abrege}|=={'complet'}|?{' ',''})checked]/> \r
-                               <label for="complet"><:mll:label_format_complet:></label>\r
-                       </div>\r
-               </li>\r
-               <li class="editer editer_mll_langues_supprimer[ (#ENV**{erreurs}|table_valeur{formatliste}|oui)erreur]">\r
-                       <label for="formatliste"><:mll:label_format_liste:></label>\r
-                       <div class="choix">\r
-                               <input type="radio" name="formatliste" id="bloc" value="bloc" [(#ENV{formatliste,bloc}|=={'bloc'}|?{' ',''})checked]/> \r
-                               <label for="bloc"><:mll:label_format_liste_bloc:></label>\r
-                       </div>\r
-                       <div class="choix">\r
-                               <input type="radio" name="formatliste" id="liste" value="liste" [(#ENV{formatliste,bloc}|=={'liste'}|?{' ',''})checked]/> \r
-                               <label for="liste"><:mll:label_format_liste_liste:></label>\r
-                       </div>\r
-               </li>\r
-               <li class="editer editer_mll_separateur[ (#ENV**{erreurs}|table_valeur{licence_defaut}|oui)erreur]">\r
-                       <label for="seprateur"><:mll:label_separateur:></label>\r
-                       <p class="explication"><:mll:explication_separateur:></p>\r
-                       <input type="texte" name="separateur" id="separateur" class="text" value="#ENV{separateur}" />\r
-               </li>\r
-       </ul>\r
-       <p class="boutons">\r
-               <input type="submit" name="_cfg_ok" class="submit" value="<:bouton_enregistrer:>" />\r
-       </p>\r
-</div></form>\r
-</div>
\ No newline at end of file
diff --git a/www/plugins/Menu_langue_lien/formulaires/menu_lang.html b/www/plugins/Menu_langue_lien/formulaires/menu_lang.html
deleted file mode 100644 (file)
index 4848fca..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-[(#REM) 
-       Stocker les traductions eventuelles de la rubrique en cours si le plugin Tradrub est installe (permet l'utilisation du
-       critere traduction sur les rubriques)
-]
-<BOUCLE_tradrub(CONDITION){si #PLUGIN{tradrub}}>
-       <BOUCLE_rubrique(RUBRIQUES){id_rubrique}>
-               #SET{ListeTraductions, #ARRAY{}}
-               <BOUCLE_TraductionRubriqueCourante(RUBRIQUES){traduction}{lang !IN #CONFIG{menu_lang_liens/langues_invisibles,#ARRAY}}>
-                       #SET_MERGE{ListeTraductions,#GET{ListeTraductions},#ARRAY{#LANG,#URL_RUBRIQUE}}
-               </BOUCLE_TraductionRubriqueCourante>
-       </BOUCLE_rubrique>
-</BOUCLE_tradrub>
-
-[(#REM) 
-       Stocker les traductions eventuelles de l'article en cours
-]
-<BOUCLE_article(ARTICLES){id_article}>
-#SET{ListeTraductions, #ARRAY{}}
-<BOUCLE_TraductionArticleCourant(ARTICLES){traduction}{lang !IN #CONFIG{menu_lang_liens/langues_invisibles,#ARRAY}}>
-       #SET_MERGE{ListeTraductions,#GET{ListeTraductions},#ARRAY{#LANG,#URL_ARTICLE}}
-</BOUCLE_TraductionArticleCourant>
-</BOUCLE_article>
-
-[(#REM)
-       Y-a-t'il plus d'une langue à afficher (moins les langues "invisibles") ?
-       Si oui, on affiche le menu de langue
-       Si non, rien
-       
-       Si _MLL_LANGUES_MULTILINGUE est definie, on utilise la variable meta langues_multilingue (langues à disposition des rédacteurs, comportement natif de SPIP).
-       Sinon, on utilise langues_utilisees (langues reellement utilisees dans les articles).
-       
-       Les langues "invisibles" sont les langues que le webmestre peut choisir de ne pas afficher dans le menu,
-       a partir du formulaire de configuration du plugin.
-       
-       Note : 'explode' est une fonction PHP : http://php.net/manual/fr/function.explode.php, utilisee ici pour renvoyer un tableau contenant
-       les langues utilisees, a partir de la variable meta 'langues_utilisees'. Ce tableau est compare avec le tableau des langues invisibles
-       avec la fonction PHP 'array_diff' http://www.php.net/manual/fr/function.array-diff.php qui renvoie elle-meme un tableau.
-]
-
-[(#VAL{_MLL_LANGUES_MULTILINGUE}|defined|et{#VAL{_MLL_LANGUES_MULTILINGUE}|constant|=={true}}|?{
-       #SET{mll_langues,langues_multilingue}
-,
-       #SET{mll_langues,langues_utilisees}
-})]
-[(#SET{langues_a_afficher,[(#CONFIG{#GET{mll_langues}}|explode{","}|array_diff{#CONFIG{menu_lang_liens/langues_invisibles, #ARRAY}})]})]
-#SET{liste,#CONFIG{menu_lang_liens/formatliste,bloc}}
-#SET{format,#CONFIG{menu_lang_liens/format,abrege}}
-#SET{separateur,#CONFIG{menu_lang_liens/separateur,''}}
-[(#GET{liste}|=={liste}|?{#SET{separateur,#CONFIG{menu_lang_liens/separateur,''}},''})]
-<BOUCLE_PlusieursLanguesUtilisees(POUR){tableau #GET{langues_a_afficher}}{1,1}>
-<[(#GET{liste}|=={liste}|?{ul,div})] id="menu_lang">[(#REM)
-
-       On liste les langues utilisees dans le site
-       
-]<BOUCLE_ListeLangues(POUR){tableau #GET{langues_a_afficher}}>[(#GET{format}|=={'complet'}|?{[(#SET{nom_langue,[(#VALEUR|traduire_nom_langue)]})],[(#SET{nom_langue,[(#VALEUR)]})]})][
-       (#GET{liste}|=={liste}|oui)<li [(#COMPTEUR_BOUCLE|=={1}|oui)class="first"] [(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|oui)class="last"]>
-       ][(#REM)
-               
-               Si la langue n'est pas celle en cours, on fait un lien qui fait 2 actions :
-               - fixer le cookie de langue sur la langue demandee
-               - rediriger sur l'article dans la langue demandee si opportun
-                 sinon, revenir sur la page en cours
-               
-               url_absolue pour éviter des problèmes en urls arbo
-       ]
-       [[[[(#GET{separateur})](#GET{liste}|=={liste}|non)](#COMPTEUR_BOUCLE|>{1}|oui)][<a href="[(#SELF|parametre_url{action,converser}|parametre_url{var_lang,#VALEUR}|parametre_url{redirect,#GET{ListeTraductions}|table_valeur{#VALEUR}|sinon{#SELF}|url_absolue})]" rel="alternate" lang="#VALEUR"[(#GET{format}|=={'abrege'}|oui) title="[(#VALEUR|traduire_nom_langue|ucfirst|attribut_html)]"] class="langue_#VALEUR">(#GET{nom_langue}|ucfirst)</a>](#VALEUR|=={#ENV{lang}}|non)][
-       (#REM)
-       
-               Si la langue est celle en cours, afficher celle-ci en gras, sans lien
-
-       ][[[[[(#GET{separateur})](#GET{liste}|=={liste}|non)](#COMPTEUR_BOUCLE|>{1}|oui)]<strong class="langue_#VALEUR" title="[(#VALEUR|traduire_nom_langue|ucfirst|attribut_html)]">(#GET{nom_langue}|ucfirst)</strong>](#VALEUR|=={#ENV{lang}}|oui)][
-       (#GET{liste}|=={liste}|oui)</li>
-]</BOUCLE_ListeLangues>
-</[(#GET{liste}|=={liste}|?{ul,div})]>
-</BOUCLE_PlusieursLanguesUtilisees>
-#FILTRE{trim}
diff --git a/www/plugins/Menu_langue_lien/img_pack/world_link-16.png b/www/plugins/Menu_langue_lien/img_pack/world_link-16.png
deleted file mode 100755 (executable)
index e737026..0000000
Binary files a/www/plugins/Menu_langue_lien/img_pack/world_link-16.png and /dev/null differ
diff --git a/www/plugins/Menu_langue_lien/img_pack/world_link-24.png b/www/plugins/Menu_langue_lien/img_pack/world_link-24.png
deleted file mode 100644 (file)
index fcd0d5f..0000000
Binary files a/www/plugins/Menu_langue_lien/img_pack/world_link-24.png and /dev/null differ
diff --git a/www/plugins/Menu_langue_lien/img_pack/world_link-32.png b/www/plugins/Menu_langue_lien/img_pack/world_link-32.png
deleted file mode 100755 (executable)
index 5c1384a..0000000
Binary files a/www/plugins/Menu_langue_lien/img_pack/world_link-32.png and /dev/null differ
diff --git a/www/plugins/Menu_langue_lien/lang/mll.xml b/www/plugins/Menu_langue_lien/lang/mll.xml
deleted file mode 100644 (file)
index 4b388c9..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<traduction module="mll" gestionnaire="salvatore" url="https://trad.spip.net" source="svn://zone.spip.org/spip-zone/_plugins_/menu_langues_liens/lang/" reference="fr">
-       <langue code="en" url="https://trad.spip.net/tradlang_module/mll?lang_cible=en" total="11" traduits="11" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="Hanjo" lien="https://trad.spip.net/auteur/hanjo" />
-       </langue>
-       <langue code="es" url="https://trad.spip.net/tradlang_module/mll?lang_cible=es" total="11" traduits="8" relire="0" modifs="1" nouveaux="2" pourcent="72.73">
-               <traducteur nom="Raquel S. Bujaldón" lien="https://trad.spip.net/auteur/raquel-s-bujaldon" />
-       </langue>
-       <langue code="fr" url="https://trad.spip.net/tradlang_module/mll?lang_cible=fr" total="11" traduits="11" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-       </langue>
-       <langue code="nl" url="https://trad.spip.net/tradlang_module/mll?lang_cible=nl" total="11" traduits="11" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="Hanjo" lien="https://trad.spip.net/auteur/hanjo" />
-       </langue>
-       <langue code="ru" url="https://trad.spip.net/tradlang_module/mll?lang_cible=ru" total="11" traduits="11" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="olly" lien="https://trad.spip.net/auteur/olly" />
-       </langue>
-       <langue code="sk" url="https://trad.spip.net/tradlang_module/mll?lang_cible=sk" total="11" traduits="11" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="jaro" lien="https://trad.spip.net/auteur/jaro" />
-       </langue>
-</traduction>
diff --git a/www/plugins/Menu_langue_lien/lang/mll_en.php b/www/plugins/Menu_langue_lien/lang/mll_en.php
deleted file mode 100755 (executable)
index 9a737b7..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/mll?lang_cible=en
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // C
-       'cfg_titre_mll' => 'Language menu as links',
-
-       // E
-       'explication_langues_invisibles' => 'Allows to remove some languages ​​from the menu',
-       'explication_separateur' => 'Text used to divide the languages in the menu',
-
-       // L
-       'label_format' => 'Languages display format',
-       'label_format_abrege' => 'Shortened (for instance, Fr)',
-       'label_format_complet' => 'Complete (for instance, Français)',
-       'label_format_liste' => 'Languages list display format',
-       'label_format_liste_bloc' => 'A block divided by spaces',
-       'label_format_liste_liste' => 'A bulleted list',
-       'label_langues_invisibles' => 'Invisible languages in the​​ menu',
-       'label_separateur' => 'Language divider'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/mll_es.php b/www/plugins/Menu_langue_lien/lang/mll_es.php
deleted file mode 100644 (file)
index 9357a01..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/mll?lang_cible=es
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // C
-       'cfg_titre_mll' => 'Menú de idiomas en forma de enlaces',
-
-       // E
-       'explication_langues_invisibles' => 'Permite quitar algunos idiomas del menú',
-
-       // L
-       'label_format' => 'Formato de visualización de los idiomas',
-       'label_format_abrege' => 'Abreviado (por ejemplo, Es)',
-       'label_format_complet' => 'Completo (por ejemplo, Español)',
-       'label_format_liste' => 'Formato de la lista de idiomas',
-       'label_format_liste_bloc' => 'Bloque separado por espacios', # MODIF
-       'label_format_liste_liste' => 'Lista por viñetas',
-       'label_langues_invisibles' => 'Idiomas invisibles del menú'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/mll_fr.php b/www/plugins/Menu_langue_lien/lang/mll_fr.php
deleted file mode 100755 (executable)
index f0dc0fe..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// Fichier source, a modifier dans svn://zone.spip.org/spip-zone/_plugins_/menu_langues_liens/lang/
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // C
-       'cfg_titre_mll' => 'Menu de langues sous forme de liens',
-
-       // E
-       'explication_langues_invisibles' => 'Permet d’enlever certaines langues du menu',
-       'explication_separateur' => 'Texte utilisé pour séparer les langues dans le menu',
-
-       // L
-       'label_format' => 'Format d’affichage des langues',
-       'label_format_abrege' => 'Abrégé (par exemple, Fr)',
-       'label_format_complet' => 'Complet (par exemple, Français)',
-       'label_format_liste' => 'Format de la liste des langues',
-       'label_format_liste_bloc' => 'Un bloc séparé par des espaces (ou séparateur configuré)',
-       'label_format_liste_liste' => 'Une liste à puces',
-       'label_langues_invisibles' => 'Langues invisibles du menu',
-       'label_separateur' => 'Séparateur des langues'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/mll_nl.php b/www/plugins/Menu_langue_lien/lang/mll_nl.php
deleted file mode 100644 (file)
index 6a143ba..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/mll?lang_cible=nl
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // C
-       'cfg_titre_mll' => 'Taalmenu door middel van links',
-
-       // E
-       'explication_langues_invisibles' => 'Laat toe bepaalde talen van het menu te verwijderen',
-       'explication_separateur' => 'Te gebruiken tekst om de talen in het menu te scheiden',
-
-       // L
-       'label_format' => 'Formaat van de taalaanduiding',
-       'label_format_abrege' => 'Afgekort (bijvoorbeeld: Fr)',
-       'label_format_complet' => 'Compleet (bijvoorbeeld: Français)',
-       'label_format_liste' => 'Formaat van de taallijst',
-       'label_format_liste_bloc' => 'Een blok gescheiden door spaties (of een ander scheidingsteken)',
-       'label_format_liste_liste' => 'Puntsgewijze lijst',
-       'label_langues_invisibles' => 'Talen die niet in het menu zichtbaar zijn',
-       'label_separateur' => 'Scheiding van de talen'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/mll_ru.php b/www/plugins/Menu_langue_lien/lang/mll_ru.php
deleted file mode 100644 (file)
index 67f0b38..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/mll?lang_cible=ru
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // C
-       'cfg_titre_mll' => 'Языковое меню в виде ссылок',
-
-       // E
-       'explication_langues_invisibles' => 'Позволяет удалить некоторые языки из меню',
-       'explication_separateur' => 'Текст, используемый для разделения языков в меню',
-
-       // L
-       'label_format' => 'Формат отображения языков',
-       'label_format_abrege' => 'Краткий (например, Fr)',
-       'label_format_complet' => 'Полный (например, Français)',
-       'label_format_liste' => 'Формат отображения списка языков',
-       'label_format_liste_bloc' => 'Блок, разделенный пробелами (или настроить сепаратор)',
-       'label_format_liste_liste' => 'Маркированный список',
-       'label_langues_invisibles' => 'Невидимые языки в меню',
-       'label_separateur' => 'Разделитель языков'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/mll_sk.php b/www/plugins/Menu_langue_lien/lang/mll_sk.php
deleted file mode 100644 (file)
index c7b8b02..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/mll?lang_cible=sk
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // C
-       'cfg_titre_mll' => 'Jazykové menu vo forme odkazov',
-
-       // E
-       'explication_langues_invisibles' => 'Umožňuje odstrániť z menu niektoré jazyky',
-       'explication_separateur' => 'Text sa používa na odde­lenie jazy­kov v menu',
-
-       // L
-       'label_format' => 'Formát zobrazenia jazykov',
-       'label_format_abrege' => 'Skrátený (napríklad Sk)',
-       'label_format_complet' => 'Úplný (napríklad Slovenčina)',
-       'label_format_liste' => 'Formát zoznamu jazykov',
-       'label_format_liste_bloc' => 'Blok oddelený medzerami (nastavený oddeľovač)',
-       'label_format_liste_liste' => 'Zoznam s odrážkami',
-       'label_langues_invisibles' => 'Jazyky, ktoré nebudú zobrazené v menu',
-       'label_separateur' => 'Oddeľovač jazykov'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/paquet-mll.xml b/www/plugins/Menu_langue_lien/lang/paquet-mll.xml
deleted file mode 100644 (file)
index 96685c4..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<traduction module="paquet-mll" gestionnaire="salvatore" url="https://trad.spip.net" source="svn://zone.spip.org/spip-zone/_plugins_/menu_langues_liens/lang/" reference="fr">
-       <langue code="en" url="https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=en" total="3" traduits="3" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-       </langue>
-       <langue code="es" url="https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=es" total="3" traduits="3" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="Raquel S. Bujaldón" lien="https://trad.spip.net/auteur/raquel-s-bujaldon" />
-       </langue>
-       <langue code="fr" url="https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=fr" total="3" traduits="3" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-       </langue>
-       <langue code="nl" url="https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=nl" total="3" traduits="3" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="Hanjo" lien="https://trad.spip.net/auteur/hanjo" />
-       </langue>
-       <langue code="ru" url="https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=ru" total="3" traduits="3" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="olly" lien="https://trad.spip.net/auteur/olly" />
-       </langue>
-       <langue code="sk" url="https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=sk" total="3" traduits="3" relire="0" modifs="0" nouveaux="0" pourcent="100.00">
-               <traducteur nom="jaro" lien="https://trad.spip.net/auteur/jaro" />
-       </langue>
-</traduction>
diff --git a/www/plugins/Menu_langue_lien/lang/paquet-mll_en.php b/www/plugins/Menu_langue_lien/lang/paquet-mll_en.php
deleted file mode 100644 (file)
index d05eab8..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=en
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // M
-       'mll_description' => 'Replace the original language menu by a clickable menu. This menu is displayed only if at least two languages are ​​actually used on the site.',
-       'mll_nom' => 'Language menu as links',
-       'mll_slogan' => 'View languages ​​as clickable links'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/paquet-mll_es.php b/www/plugins/Menu_langue_lien/lang/paquet-mll_es.php
deleted file mode 100644 (file)
index 63be8cb..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=es
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // M
-       'mll_description' => 'Remplaza al menú desplegable de idiomas por un menú en el que hacer click. Este menú no se muestra salvo si hay al menos 2 idiomas verdaderamente utilizados en el sitio.',
-       'mll_nom' => 'Menú de idiomas con enlaces',
-       'mll_slogan' => 'Mostrar los idiomas bajo la forma de enlaces en los que hacer click'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/paquet-mll_fr.php b/www/plugins/Menu_langue_lien/lang/paquet-mll_fr.php
deleted file mode 100644 (file)
index d424e05..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// Fichier source, a modifier dans svn://zone.spip.org/spip-zone/_plugins_/menu_langues_liens/lang/
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // M
-       'mll_description' => 'Remplace le menu déroulant de langues par un menu cliquable. Ce menu n’est affiché que s’il y a au moins 2 langues vraiment utilisées dans le site.',
-       'mll_nom' => 'Menu de langues avec liens',
-       'mll_slogan' => 'Afficher les langues sous forme de liens cliquables'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/paquet-mll_nl.php b/www/plugins/Menu_langue_lien/lang/paquet-mll_nl.php
deleted file mode 100644 (file)
index 79ac958..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=nl
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // M
-       'mll_description' => 'Vervang het dropdown-menu voor de taalkeuze door een menu waarop geklikt kan worden. Het menu wordt getoond wanneer er tenminste 2 talen op de site gebruikt worden.',
-       'mll_nom' => 'Taalmenu met links',
-       'mll_slogan' => 'Toon een taalkeuze met klik-optie'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/paquet-mll_ru.php b/www/plugins/Menu_langue_lien/lang/paquet-mll_ru.php
deleted file mode 100644 (file)
index 895c07a..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=ru
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // M
-       'mll_description' => 'Заменить оригинальное языковое меню интерактивным меню. Это меню отображается только если по крайней мере два языка на самом деле используется на сайте.',
-       'mll_nom' => 'Языковое меню в виде ссылок',
-       'mll_slogan' => 'Отображать языки как кликабельные ссылки'
-);
diff --git a/www/plugins/Menu_langue_lien/lang/paquet-mll_sk.php b/www/plugins/Menu_langue_lien/lang/paquet-mll_sk.php
deleted file mode 100644 (file)
index c7bc457..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
-// extrait automatiquement de https://trad.spip.net/tradlang_module/paquet-mll?lang_cible=sk
-// ** ne pas modifier le fichier **
-
-if (!defined('_ECRIRE_INC_VERSION')) {
-       return;
-}
-
-$GLOBALS[$GLOBALS['idx_lang']] = array(
-
-       // M
-       'mll_description' => 'Rozbaľovacie menu s jazykmi nahradí klikateľným. Toto menu sa nezobrazí, ak sa na stránke naozaj nepoužívajú aspoň 2 jazyky.',
-       'mll_nom' => 'Jazykové menu s odkazmi',
-       'mll_slogan' => 'Zobraziť jazyky vo forme klikateľných odkazov'
-);
diff --git a/www/plugins/Menu_langue_lien/mll_options.php b/www/plugins/Menu_langue_lien/mll_options.php
deleted file mode 100644 (file)
index 19d6dbe..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php\r
-if (!defined("_ECRIRE_INC_VERSION")) return;\r
-\r
-$GLOBALS['forcer_lang'] = true;\r
diff --git a/www/plugins/Menu_langue_lien/mll_pipelines.php b/www/plugins/Menu_langue_lien/mll_pipelines.php
deleted file mode 100755 (executable)
index 7e88b7b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php\r
-if (!defined("_ECRIRE_INC_VERSION")) return; \r
-\r
-function mll_insert_head_css($flux){\r
-       // Insertion de la feuille de styles du menu de langues\r
-       $css_mll = find_in_path('mll_styles.css');\r
-       $flux .='<link rel="stylesheet" type="text/css" media="screen" href="'.$css_mll.'" />';\r
-\r
-       return $flux;\r
-}\r
-\r
-?>
\ No newline at end of file
diff --git a/www/plugins/Menu_langue_lien/mll_styles.css b/www/plugins/Menu_langue_lien/mll_styles.css
deleted file mode 100755 (executable)
index 66e9f0c..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#menu_lang {\r
-    list-style: none outside none;    \r
-}\r
-\r
-#menu_lang li {\r
-    float: left;\r
-}\r
-\r
-#menu_lang li a, #menu_lang li span, #menu_lang li strong {\r
-    border-left: 1px solid;\r
-}\r
-\r
-#menu_lang li a, #menu_lang li span, #menu_lang li strong {\r
-    padding: 0 5px;\r
-    font-size: 11px;\r
-}\r
-\r
-#menu_lang li.first a, #menu_lang li.first span, #menu_lang li.first strong {\r
-    border: none;\r
-}\r
-\r
-#menu_lang li.last a, #menu_lang li.last span, #menu_lang li.last strong {\r
-    padding-right: 0;\r
-}\r
-\r
-#menu_lang li a:hover {\r
-    text-decoration: underline;\r
-}
\ No newline at end of file
diff --git a/www/plugins/Menu_langue_lien/paquet.xml b/www/plugins/Menu_langue_lien/paquet.xml
deleted file mode 100644 (file)
index bf10143..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<paquet
-       prefix="mll"
-       categorie="navigation"
-       version="1.3.3"
-       etat="stable"
-       compatibilite="[2.0.10;3.2.*]"
-       logo="prive/themes/spip/images/world_link-32.png"
-       documentation="https://contrib.spip.net/Menu-de-langues-sous-forme-de-liens"
->
-       <nom>Menu de langues avec liens</nom>
-
-       <!-- Afficher les langues sous forme de liens cliquables -->
-       <auteur lien="https://contrib.spip.net/RealET">Jacques</auteur>
-       <auteur>Jean-Baptiste Pressac</auteur>
-       <auteur lien="http://www.kent1.info">kent1</auteur>
-       <auteur>Cédric Morin</auteur>
-
-       <credit lien="http://www.fatcow.com/free-icons">icône par FatCow</credit>
-       <copyright>2009-2014</copyright>
-       <licence lien="http://www.gnu.org/licenses/gpl-3.0.html">GPL 3</licence>
-
-       <menu nom="config_mll" titre="mll:cfg_titre_mll" parent="menu_squelette" icone="images/world_link-16.png" action="configurer_mll"/>
-       <pipeline nom="insert_head_css" inclure="mll_pipelines.php" />
-
-       <necessite nom="spip_bonux" compatibilite="[3.0.7;]" />
-       <utilise nom="tradrub" compatibilite="[3.1.2;[" />
-
-</paquet>
\ No newline at end of file
diff --git a/www/plugins/Menu_langue_lien/plugin.xml b/www/plugins/Menu_langue_lien/plugin.xml
deleted file mode 100644 (file)
index e18b728..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<plugin>\r
-       <prefix>mll</prefix>\r
-       <categorie>navigation</categorie>\r
-       <version>1.3.3</version>\r
-       <etat>stable</etat>\r
-       <icon>img_pack/world_link-32.png</icon>\r
-       <lien>https://contrib.spip.net/Menu-de-langues-sous-forme-de-liens</lien>\r
-\r
-       <nom>\r
-               <multi>\r
-                       [fr]Menu de langues avec liens\r
-                       [en]Language menu as links\r
-               </multi>\r
-       </nom>\r
-\r
-       <slogan>\r
-               <multi>\r
-               [fr]Afficher les langues sous forme de liens cliquables\r
-               [en]View languages ​​as clickable links\r
-               </multi>\r
-       </slogan>\r
-\r
-       <auteur>[Jacques->https://contrib.spip.net/RealET] - Jean-Baptiste Pressac - Quentin Drouet - Cedric Morin</auteur>\r
-       <licence>&#169; 2009-2014 GNU/GPL</licence>\r
-\r
-       <description>\r
-               <multi>\r
-[fr]Remplace le menu d&#233;roulant de langues par un menu cliquable. Ce menu n'est affich&#233; que s'il y a au moins 2 langues vraiment utilis&#233;es dans le site.\r
-\r
-Icone par [FatCow->http://www.fatcow.com/free-icons]\r
-[en]Replace the original language menu by a clickable menu. This menu is displayed only if at least two languages are ​​actually used on the site.\r
-       \r
-Icon by [FatCow->http://www.fatcow.com/free-icons]\r
-               </multi>\r
-       </description>\r
-\r
-       <options>mll_options.php</options>\r
-\r
-       <pipeline>\r
-               <nom>insert_head_css</nom>\r
-               <inclure>mll_pipelines.php</inclure>\r
-       </pipeline>\r
-\r
-       <bouton id="config_mll" parent="configuration">\r
-               <icone>img_pack/world_link-24.png</icone>\r
-               <titre>mll:cfg_titre_mll</titre>\r
-               <url>cfg</url>\r
-               <args>cfg=menu_lang_liens</args>\r
-       </bouton>\r
-\r
-       <bouton id="bando_config_mll" parent="bando_configuration">\r
-               <icone>img_pack/world_link-16.png</icone>\r
-               <titre>mll:cfg_titre_mll</titre>\r
-               <url>cfg</url>\r
-               <args>cfg=menu_lang_liens</args>\r
-       </bouton>\r
-       \r
-       <necessite id="SPIP" version="[2.0.10;3.2.99]" />\r
-       <necessite id='spip_bonux' version='[2.3.3;]' src="https://files.spip.net/spip-zone/spip-bonux.zip" />\r
-       <utilise id='tradrub' version='[2.1.1;]' src="https://files.spip.net/spip-zone/tradrub.zip" />\r
-       <utilise id='cfg' version='[1.3.6;]' src="https://files.spip.net/spip-zone/cfg.zip" />\r
-</plugin>
\ No newline at end of file
diff --git a/www/plugins/Menu_langue_lien/prive/squelettes/contenu/configurer_mll.html b/www/plugins/Menu_langue_lien/prive/squelettes/contenu/configurer_mll.html
deleted file mode 100644 (file)
index d1fe94c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[(#AUTORISER{configurer,mll}|sinon_interdire_acces)]
-<h1 class="grostitre"><:mll:cfg_titre_mll:></h1>
-<div class="ajax">
-       #FORMULAIRE_CONFIGURER_MENU_LANG_LIENS
-</div>
diff --git a/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-16.png b/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-16.png
deleted file mode 100755 (executable)
index e737026..0000000
Binary files a/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-16.png and /dev/null differ
diff --git a/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-24.png b/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-24.png
deleted file mode 100644 (file)
index fcd0d5f..0000000
Binary files a/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-24.png and /dev/null differ
diff --git a/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-32.png b/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-32.png
deleted file mode 100755 (executable)
index 5c1384a..0000000
Binary files a/www/plugins/Menu_langue_lien/prive/themes/spip/images/world_link-32.png and /dev/null differ
diff --git a/www/plugins/Menu_langue_lien/svn.revision b/www/plugins/Menu_langue_lien/svn.revision
deleted file mode 100644 (file)
index 27f1e73..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<svn_revision>
-<text_version>
-Origine: file:///home/svn/repository/spip-zone/_plugins_/menu_langues_liens
-Revision: 105927
-Dernier commit: 2017-08-24 20:27:00 +0200 
-</text_version>
-<origine>file:///home/svn/repository/spip-zone/_plugins_/menu_langues_liens</origine>
-<revision>105927</revision>
-<commit>2017-08-24 20:27:00 +0200 </commit>
-</svn_revision>
\ No newline at end of file
diff --git a/www/plugins/menus_langues_liens b/www/plugins/menus_langues_liens
new file mode 160000 (submodule)
index 0000000..57058ef
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 57058ef50e436fbb0d173ee6061942921ea61241