From c918c9361c1ca82341c0ed2ad6ccddc2e7737103 Mon Sep 17 00:00:00 2001
From: b_b <bruno@eliaz.fr>
Date: Thu, 2 May 2024 21:14:22 +0200
Subject: [PATCH] =?UTF-8?q?deprecated:=20sur=20les=20fonctions=20d=C3=A9su?=
 =?UTF-8?q?ettes=20de=20ecrire/inc/presentation?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix: #3581
---
 ecrire/inc/filtres_ecrire.php |  1 +
 ecrire/inc/presentation.php   | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/ecrire/inc/filtres_ecrire.php b/ecrire/inc/filtres_ecrire.php
index b5188ecb91..40bce33cae 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 c7587af0e1..2dff6340f4 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();
 }
-- 
GitLab