Skip to content
Extraits de code Groupes Projets
Valider c918c936 rédigé par b_b's avatar b_b
Parcourir les fichiers

deprecated: sur les fonctions désuettes de ecrire/inc/presentation

Fix: #3581
parent 1743324d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -569,6 +569,7 @@ function filtre_afficher_enfant_rub_dist($id_rubrique) { ...@@ -569,6 +569,7 @@ function filtre_afficher_enfant_rub_dist($id_rubrique) {
* @return string * @return string
*/ */
function afficher_plus_info($lien, $titre = '+', $titre_lien = '') { function afficher_plus_info($lien, $titre = '+', $titre_lien = '') {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
$titre = attribut_html($titre); $titre = attribut_html($titre);
$icone = "\n<a href='$lien' title='$titre' class='plus_info'>" . $icone = "\n<a href='$lien' title='$titre' class='plus_info'>" .
http_img_pack('information-16.png', $titre) . '</a>'; http_img_pack('information-16.png', $titre) . '</a>';
......
...@@ -30,6 +30,7 @@ include_spip('inc/filtres_boites'); ...@@ -30,6 +30,7 @@ include_spip('inc/filtres_boites');
include_spip('inc/filtres_alertes'); include_spip('inc/filtres_alertes');
function debut_cadre($style, $icone = '', $fonction = '', $titre = '', $id = '', $class = '', $padding = true) { function debut_cadre($style, $icone = '', $fonction = '', $titre = '', $id = '', $class = '', $padding = true) {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
$fond = null; $fond = null;
$style_mapping = [ $style_mapping = [
'r' => 'simple', 'r' => 'simple',
...@@ -72,6 +73,7 @@ function debut_cadre($style, $icone = '', $fonction = '', $titre = '', $id = '', ...@@ -72,6 +73,7 @@ function debut_cadre($style, $icone = '', $fonction = '', $titre = '', $id = '',
} }
function fin_cadre() { function fin_cadre() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return boite_fermer(); return boite_fermer();
} }
...@@ -84,10 +86,12 @@ function debut_cadre_relief( ...@@ -84,10 +86,12 @@ function debut_cadre_relief(
$id = '', $id = '',
$class = '' $class = ''
) { ) {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return debut_cadre('r', $icone, $fonction, $titre, $id, $class); return debut_cadre('r', $icone, $fonction, $titre, $id, $class);
} }
function fin_cadre_relief() { function fin_cadre_relief() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return fin_cadre(); return fin_cadre();
} }
...@@ -99,10 +103,12 @@ function debut_cadre_enfonce( ...@@ -99,10 +103,12 @@ function debut_cadre_enfonce(
$id = '', $id = '',
$class = '' $class = ''
) { ) {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return debut_cadre('e', $icone, $fonction, $titre, $id, $class); return debut_cadre('e', $icone, $fonction, $titre, $id, $class);
} }
function fin_cadre_enfonce() { function fin_cadre_enfonce() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return fin_cadre(); return fin_cadre();
} }
...@@ -114,10 +120,12 @@ function debut_cadre_sous_rub( ...@@ -114,10 +120,12 @@ function debut_cadre_sous_rub(
$id = '', $id = '',
$class = '' $class = ''
) { ) {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return debut_cadre('sous_rub', $icone, $fonction, $titre, $id, $class); return debut_cadre('sous_rub', $icone, $fonction, $titre, $id, $class);
} }
function fin_cadre_sous_rub() { function fin_cadre_sous_rub() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return fin_cadre(); return fin_cadre();
} }
...@@ -129,10 +137,12 @@ function debut_cadre_couleur( ...@@ -129,10 +137,12 @@ function debut_cadre_couleur(
$id = '', $id = '',
$class = '' $class = ''
) { ) {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return debut_cadre('couleur', $icone, $fonction, $titre, $id, $class); return debut_cadre('couleur', $icone, $fonction, $titre, $id, $class);
} }
function fin_cadre_couleur() { function fin_cadre_couleur() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return fin_cadre(); return fin_cadre();
} }
...@@ -144,18 +154,22 @@ function debut_cadre_trait_couleur( ...@@ -144,18 +154,22 @@ function debut_cadre_trait_couleur(
$id = '', $id = '',
$class = '' $class = ''
) { ) {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return debut_cadre('trait-couleur', $icone, $fonction, $titre, $id, $class); return debut_cadre('trait-couleur', $icone, $fonction, $titre, $id, $class);
} }
function fin_cadre_trait_couleur() { function fin_cadre_trait_couleur() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return fin_cadre(); return fin_cadre();
} }
function debut_boite_alerte() { function debut_boite_alerte() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return debut_cadre('alerte', '', '', '', '', ''); return debut_cadre('alerte', '', '', '', '', '');
} }
function fin_boite_alerte() { function fin_boite_alerte() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return fin_cadre(); return fin_cadre();
} }
...@@ -164,6 +178,7 @@ function debut_boite_info() { ...@@ -164,6 +178,7 @@ function debut_boite_info() {
} }
function fin_boite_info() { function fin_boite_info() {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return fin_cadre(); return fin_cadre();
} }
...@@ -184,6 +199,7 @@ function gros_titre( ...@@ -184,6 +199,7 @@ function gros_titre(
// La boite des raccourcis // La boite des raccourcis
// Se place a droite si l'ecran est en mode panoramique. // Se place a droite si l'ecran est en mode panoramique.
function bloc_des_raccourcis($bloc) { function bloc_des_raccourcis($bloc) {
trigger_deprecation('spip', '4.3', 'Using "%s" is deprecated', __FUNCTION__);
return creer_colonne_droite() return creer_colonne_droite()
. boite_ouvrir(_T('titre_cadre_raccourcis'), 'raccourcis') . $bloc . boite_fermer(); . boite_ouvrir(_T('titre_cadre_raccourcis'), 'raccourcis') . $bloc . boite_fermer();
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter