sorti de la fabrique

This commit is contained in:
Christophe 2020-12-26 10:36:52 +01:00
parent 2f4142499b
commit 82b8fbc553
11 changed files with 252 additions and 0 deletions

106
fabrique_redirectmobile.php Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,16 @@
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
<h3 class="titrem"><:redirectmobile: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="redirectmobile" />
<p class="boutons"><span class="image_loading">&nbsp;</span><input type="submit" class="submit" value="<:bouton_enregistrer|attribut_html:/>" /></p>
</div>
</form>
</div>

View 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(
// R
'redirectmobile_description' => '',
'redirectmobile_nom' => 'Redirect Mobile',
'redirectmobile_slogan' => '',
);

View file

@ -0,0 +1,20 @@
<?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(
// R
'redirectmobile_titre' => 'Redirect Mobile',
// C
'cfg_exemple' => 'Exemple',
'cfg_exemple_explication' => 'Explication de cet exemple',
'cfg_titre_parametrages' => 'Paramétrages',
// T
'titre_page_configurer_redirectmobile' => 'Redirect Mobile',
);

24
paquet.xml Normal file
View file

@ -0,0 +1,24 @@
<paquet
prefix="redirectmobile"
categorie="communication"
version="1.0.0"
etat="dev"
compatibilite="[3.2.6-dev;3.3.*]"
logo="prive/themes/spip/images/redirectmobile-xx.svg"
documentation=""
>
<!--
Paquet généré le 2020-12-26 10:34:32
-->
<nom>Redirect Mobile</nom>
<auteur lien='https://gamuza.fr'>tofulm</auteur>
<licence>GNU/GPL</licence>
<pipeline nom="autoriser" inclure="redirectmobile_autorisations.php" />
</paquet>

View file

@ -0,0 +1,7 @@
[(#AUTORISER{configurer,_redirectmobile}|sinon_interdire_acces)]
<h1 class="grostitre"><:redirectmobile:titre_page_configurer_redirectmobile:/></h1>
<div class="ajax">
#FORMULAIRE_CONFIGURER_REDIRECTMOBILE
</div>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -0,0 +1,21 @@
<?php
/**
* Définit les autorisations du plugin Redirect Mobile
*
* @plugin Redirect Mobile
* @copyright 2020
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Redirectmobile\Autorisations
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Fonction d'appel pour le pipeline
* @pipeline autoriser */
function redirectmobile_autoriser() {
}

View file

@ -0,0 +1,14 @@
<?php
/**
* Fonctions utiles au plugin Redirect Mobile
*
* @plugin Redirect Mobile
* @copyright 2020
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Redirectmobile\Fonctions
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}

View file

@ -0,0 +1,14 @@
<?php
/**
* Options au chargement du plugin Redirect Mobile
*
* @plugin Redirect Mobile
* @copyright 2020
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Redirectmobile\Options
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}

View file

@ -0,0 +1,14 @@
<?php
/**
* Utilisations de pipelines par Redirect Mobile
*
* @plugin Redirect Mobile
* @copyright 2020
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Redirectmobile\Pipelines
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}