Adaptation pour SPIP du squelette «Twenty» de html5up https://html5up.net/twenty
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
793 B
25 lines
793 B
<?php
|
|
if (!defined("_ECRIRE_INC_VERSION")) return;
|
|
|
|
// Inclure l'API Champs Extras
|
|
include_spip('inc/cextras');
|
|
// Inclure les champs déclarés à l'étape précédente
|
|
include_spip('base/html5up_twenty');
|
|
|
|
function html5up_twenty_upgrade($nom_meta_base_version,$version_cible) {
|
|
|
|
$maj = array();
|
|
|
|
// Première déclaration à l'installation du plugin
|
|
cextras_api_upgrade(html5up_twenty_declarer_champs_extras(), $maj['create']);
|
|
|
|
include_spip('base/upgrade');
|
|
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
|
|
|
}
|
|
|
|
// Désinstaller proprement le plugin en supprimant les champs de la base de données
|
|
function html5up_twenty_vider_tables($nom_meta_base_version) {
|
|
cextras_api_vider_tables(html5up_twenty_declarer_champs_extras());
|
|
effacer_meta($nom_meta_base_version);
|
|
}
|