sortie de la Fabrique
This commit is contained in:
commit
75744f6302
11 changed files with 243 additions and 0 deletions
45
corpus_web_administrations.php
Normal file
45
corpus_web_administrations.php
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Fichier gérant l'installation et désinstallation du plugin Traitement corpus web
|
||||||
|
*
|
||||||
|
* @plugin Traitement corpus web
|
||||||
|
* @copyright 2021
|
||||||
|
* @author gamuza
|
||||||
|
* @licence GNU/GPL
|
||||||
|
* @package SPIP\Corpus\Installation
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fonction d'installation et de mise à jour du plugin Traitement corpus web.
|
||||||
|
*
|
||||||
|
* @param string $nom_meta_base_version
|
||||||
|
* Nom de la meta informant de la version du schéma de données du plugin installé dans SPIP
|
||||||
|
* @param string $version_cible
|
||||||
|
* Version du schéma de données dans ce plugin (déclaré dans paquet.xml)
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
function corpus_web_upgrade($nom_meta_base_version, $version_cible) {
|
||||||
|
$maj = array();
|
||||||
|
|
||||||
|
include_spip('base/upgrade');
|
||||||
|
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fonction de désinstallation du plugin Traitement corpus web.
|
||||||
|
*
|
||||||
|
* @param string $nom_meta_base_version
|
||||||
|
* Nom de la meta informant de la version du schéma de données du plugin installé dans SPIP
|
||||||
|
* @return void
|
||||||
|
**/
|
||||||
|
function corpus_web_vider_tables($nom_meta_base_version) {
|
||||||
|
|
||||||
|
|
||||||
|
effacer_meta($nom_meta_base_version);
|
||||||
|
}
|
21
corpus_web_autorisations.php
Normal file
21
corpus_web_autorisations.php
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Définit les autorisations du plugin Traitement corpus web
|
||||||
|
*
|
||||||
|
* @plugin Traitement corpus web
|
||||||
|
* @copyright 2021
|
||||||
|
* @author gamuza
|
||||||
|
* @licence GNU/GPL
|
||||||
|
* @package SPIP\Corpus\Autorisations
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fonction d'appel pour le pipeline
|
||||||
|
* @pipeline autoriser */
|
||||||
|
function corpus_web_autoriser() {
|
||||||
|
}
|
14
corpus_web_fonctions.php
Normal file
14
corpus_web_fonctions.php
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Fonctions utiles au plugin Traitement corpus web
|
||||||
|
*
|
||||||
|
* @plugin Traitement corpus web
|
||||||
|
* @copyright 2021
|
||||||
|
* @author gamuza
|
||||||
|
* @licence GNU/GPL
|
||||||
|
* @package SPIP\Corpus\Fonctions
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
|
return;
|
||||||
|
}
|
14
corpus_web_options.php
Normal file
14
corpus_web_options.php
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Options au chargement du plugin Traitement corpus web
|
||||||
|
*
|
||||||
|
* @plugin Traitement corpus web
|
||||||
|
* @copyright 2021
|
||||||
|
* @author gamuza
|
||||||
|
* @licence GNU/GPL
|
||||||
|
* @package SPIP\Corpus\Options
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
|
return;
|
||||||
|
}
|
14
corpus_web_pipelines.php
Normal file
14
corpus_web_pipelines.php
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Utilisations de pipelines par Traitement corpus web
|
||||||
|
*
|
||||||
|
* @plugin Traitement corpus web
|
||||||
|
* @copyright 2021
|
||||||
|
* @author gamuza
|
||||||
|
* @licence GNU/GPL
|
||||||
|
* @package SPIP\Corpus\Pipelines
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
|
return;
|
||||||
|
}
|
16
formulaires/configurer_corpus_web.html
Normal file
16
formulaires/configurer_corpus_web.html
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
|
||||||
|
|
||||||
|
<h3 class="titrem"><:corpus:cfg_titre_parametrages:></h3>
|
||||||
|
|
||||||
|
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
|
||||||
|
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
|
||||||
|
|
||||||
|
<form method="post" action="#ENV{action}">
|
||||||
|
<div>
|
||||||
|
#ACTION_FORMULAIRE
|
||||||
|
|
||||||
|
<input type="hidden" name="_meta_casier" value="corpus" />
|
||||||
|
<p class="boutons"><span class="image_loading"> </span><input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
18
lang/corpus_web_fr.php
Normal file
18
lang/corpus_web_fr.php
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
|
||||||
|
|
||||||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$GLOBALS[$GLOBALS['idx_lang']] = array(
|
||||||
|
|
||||||
|
// C
|
||||||
|
'corpus_titre' => 'Traitement corpus web',
|
||||||
|
'cfg_exemple' => 'Exemple',
|
||||||
|
'cfg_exemple_explication' => 'Explication de cet exemple',
|
||||||
|
'cfg_titre_parametrages' => 'Paramétrages',
|
||||||
|
|
||||||
|
// T
|
||||||
|
'titre_page_configurer_corpus' => 'Configuration du plugin Corpus web',
|
||||||
|
);
|
14
lang/paquet-corpus_web_fr.php
Normal file
14
lang/paquet-corpus_web_fr.php
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
|
||||||
|
|
||||||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$GLOBALS[$GLOBALS['idx_lang']] = array(
|
||||||
|
|
||||||
|
// C
|
||||||
|
'corpus_description' => '',
|
||||||
|
'corpus_nom' => 'Traitement corpus web',
|
||||||
|
'corpus_slogan' => '',
|
||||||
|
);
|
20
paquet.xml
Normal file
20
paquet.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<paquet
|
||||||
|
prefix="corpus_web"
|
||||||
|
categorie="outil"
|
||||||
|
version="1.0.0"
|
||||||
|
etat="dev"
|
||||||
|
compatibilite="[3.3.0-dev;3.3.*]"
|
||||||
|
logo="prive/themes/spip/images/corpus-xx.svg"
|
||||||
|
documentation=""
|
||||||
|
schema="1.0.0"
|
||||||
|
>
|
||||||
|
|
||||||
|
<nom>Traitement corpus web</nom>
|
||||||
|
|
||||||
|
<auteur>gamuza</auteur>
|
||||||
|
|
||||||
|
<licence>GNU/GPL</licence>
|
||||||
|
|
||||||
|
<pipeline nom="autoriser" inclure="corpus_web_autorisations.php" />
|
||||||
|
|
||||||
|
</paquet>
|
7
prive/squelettes/contenu/configurer_corpus_web.html
Normal file
7
prive/squelettes/contenu/configurer_corpus_web.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[(#AUTORISER{configurer,_corpus}|sinon_interdire_acces)]
|
||||||
|
|
||||||
|
<h1 class="grostitre"><:corpus:titre_page_configurer_corpus:></h1>
|
||||||
|
|
||||||
|
<div class="ajax">
|
||||||
|
#FORMULAIRE_CONFIGURER_CORPUS
|
||||||
|
</div>
|
60
prive/themes/spip/images/corpus-xx.svg
Normal file
60
prive/themes/spip/images/corpus-xx.svg
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
data-name="Слой 1"
|
||||||
|
viewBox="0 0 116.0959 128.0816"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
version="1.1"
|
||||||
|
id="svg10"
|
||||||
|
sodipodi:docname="logo_corpus.svg"
|
||||||
|
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
|
||||||
|
width="116.0959"
|
||||||
|
height="128.0816">
|
||||||
|
<metadata
|
||||||
|
id="metadata16">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title>Spider Web, Spooky, Halloween, Insect, Network, Spider, web, </dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs14" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="640"
|
||||||
|
inkscape:window-height="480"
|
||||||
|
id="namedview12"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="5.1723735"
|
||||||
|
inkscape:cx="77.356435"
|
||||||
|
inkscape:cy="72.266606"
|
||||||
|
inkscape:current-layer="svg10"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" />
|
||||||
|
<title
|
||||||
|
id="title2">Spider Web, Spooky, Halloween, Insect, Network, Spider, web, </title>
|
||||||
|
<path
|
||||||
|
d="m 114.97295,94.46 -2.07,-1.19 -3,-57 5,-2.91 a 2,2 0 1 0 -2,-3.46 l -5.13,3 L 60.022951,7 V 2 a 2,2 0 0 0 -4,0 v 5 l -46.65,26.54 -6.3,-3.64 a 2,2 0 1 0 -2,3.46 l 6.44,3.71 6.35,50 -12.79,7.39 a 2,2 0 1 0 2,3.46 l 13.13,-7.57 39.82,14.79 V 126 a 2.0015994,2.0015994 0 0 0 4,0.16 l 50.999999,-29.4 2,1.16 a 2,2 0 1 0 2,-3.46 z m -6.2,-3.58 -13.409999,-7.73 -2.47,-37 13.129999,-7.63 z m -59.499999,-24.22 -1.45,-6.32 6.2,3.58 z m 10.75,-14.26 8.67,3.06 -8.67,5 z m -4,8.06 -7.15,-4.13 7.15,-4 z m 6,3.46 8.73,-5 1,10.66 z m 8.32,9.42 -10.32,6.86 V 67.38 Z m 2.88,-20.5 a 1.94,1.94 0 0 0 -0.2,-0.1 l -13,-4.58 V 32.71 l 26.48,12.47 z m -17.2,-5.15 -11.17,6.31 -12.3,-7.1 23.47,-13.84 z m -12.93,9.92 2.56,11.14 -10.43,6 -4,-24 z m 12.93,9.77 v 14 l -17,-4.2 z m 4,17.62 14.18,-9.44 15.16,8.74 -29.34,16.08 z m 16,-13 -1.46,-15.32 14.46,-8.35 2.16,32.41 z m 27.749999,-36.78 -12.999999,7.53 -30.75,-14.46 V 11.52 Z M 56.022951,11.6 v 16.82 l -27.45,16.2 -15.18,-8.76 z m -44.16,28 14.9,8.6 4.76,28.7 -13.9,8 z m 8.83,48.17 13.33,-7.7 22,5.43 v 15.38 z m 39.33,33.77 v -16.6 l 33.39,-18.3 13.549999,7.82 z"
|
||||||
|
id="path4" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
Loading…
Add table
Reference in a new issue