Browse Source

gestion du plugin

On modifie la config SPIP pour html5 et mediabox
master
Fa_b 1 year ago
parent
commit
6111a58cbd
3 changed files with 23 additions and 2 deletions
  1. +21
    -0
      microedition_administrations.php
  2. +1
    -2
      microedition_options.php
  3. +1
    -0
      paquet.xml

+ 21
- 0
microedition_administrations.php View File

@ -0,0 +1,21 @@
<?php
function microedition_upgrade($nom_meta_base_version, $version_cible) {
$maj = array();
$maj['install'] = array(
array('microedition_ecrire_config'),
);
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);
}
/**
* configure mediabox et SPIP lors de l'installation du squelette
**/
function microedition_ecrire_config() {
ecrire_config('mediabox/skin','white-simple');
ecrire_config('version_html_max','html5');
}

+ 1
- 2
microedition_options.php View File

@ -1,11 +1,10 @@
<?php
// On active HTML5 si pas fait
$GLOBALS['meta']['version_html_max'] = 'html5';
// Les blocs Z requis
if (!isset($GLOBALS['z_blocs'])){
$GLOBALS['z_blocs'] = array('content','head','head_js','header','aside');
}
$plugins = unserialize($GLOBALS['meta']['plugin']);
if(is_array($plugins['IMAGE_RESPONSIVE'])) {
define("_IMAGE_RESPONSIVE_CALCULER", true);


+ 1
- 0
paquet.xml View File

@ -3,6 +3,7 @@
categorie="squelette"
version="0.0.3"
etat="dev"
schema="0.0.3"
compatibilite="[3.2.0;3.2.*]"
logo="prive/themes/spip/images/microedition-32.png"
documentation="https://framagit.org/zzzazzz/juliegallet.com/blob/master/README.md"


Loading…
Cancel
Save