diff --git a/ecrire/inc/filtres_ecrire.php b/ecrire/inc/filtres_ecrire.php index b5188ecb9139b31e5b60a4a465793d7eaa80dd8a..40bce33cae30c95a92a437194e41510725ce7421 100644 --- a/ecrire/inc/filtres_ecrire.php +++ b/ecrire/inc/filtres_ecrire.php @@ -569,6 +569,7 @@ function filtre_afficher_enfant_rub_dist($id_rubrique) { * @return string */ function afficher_plus_info($lien, $titre = '+', $titre_lien = '') { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); $titre = attribut_html($titre); $icone = "\n<a href='$lien' title='$titre' class='plus_info'>" . http_img_pack('information-16.png', $titre) . '</a>'; diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index c7587af0e15b62977ad760f1520f31976817ae4c..2dff6340f4ba517803d5d2f73a3f3ed2901304e6 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -30,6 +30,7 @@ include_spip('inc/filtres_boites'); include_spip('inc/filtres_alertes'); function debut_cadre($style, $icone = '', $fonction = '', $titre = '', $id = '', $class = '', $padding = true) { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); $fond = null; $style_mapping = [ 'r' => 'simple', @@ -72,6 +73,7 @@ function debut_cadre($style, $icone = '', $fonction = '', $titre = '', $id = '', } function fin_cadre() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return boite_fermer(); } @@ -84,10 +86,12 @@ function debut_cadre_relief( $id = '', $class = '' ) { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return debut_cadre('r', $icone, $fonction, $titre, $id, $class); } function fin_cadre_relief() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return fin_cadre(); } @@ -99,10 +103,12 @@ function debut_cadre_enfonce( $id = '', $class = '' ) { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return debut_cadre('e', $icone, $fonction, $titre, $id, $class); } function fin_cadre_enfonce() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return fin_cadre(); } @@ -114,10 +120,12 @@ function debut_cadre_sous_rub( $id = '', $class = '' ) { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return debut_cadre('sous_rub', $icone, $fonction, $titre, $id, $class); } function fin_cadre_sous_rub() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return fin_cadre(); } @@ -129,10 +137,12 @@ function debut_cadre_couleur( $id = '', $class = '' ) { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return debut_cadre('couleur', $icone, $fonction, $titre, $id, $class); } function fin_cadre_couleur() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return fin_cadre(); } @@ -144,18 +154,22 @@ function debut_cadre_trait_couleur( $id = '', $class = '' ) { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return debut_cadre('trait-couleur', $icone, $fonction, $titre, $id, $class); } function fin_cadre_trait_couleur() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return fin_cadre(); } function debut_boite_alerte() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return debut_cadre('alerte', '', '', '', '', ''); } function fin_boite_alerte() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return fin_cadre(); } @@ -164,6 +178,7 @@ function debut_boite_info() { } function fin_boite_info() { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return fin_cadre(); } @@ -184,6 +199,7 @@ function gros_titre( // La boite des raccourcis // Se place a droite si l'ecran est en mode panoramique. function bloc_des_raccourcis($bloc) { + trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__); return creer_colonne_droite() . boite_ouvrir(_T('titre_cadre_raccourcis'), 'raccourcis') . $bloc . boite_fermer(); }