Valider 8171ed5f rédigé par esj's avatar esj
Parcourir les fichiers

Pour les blocs qui sont construits par des fonctions surchargeables, tester...

Pour les blocs qui sont construits par des fonctions surchargeables, tester les metas et variables de personnalisation (options etc) dans la fonction surchargeable, afin d'offrir une possibilité de régleages plus fin de ce qui s'affiche. Pour meme_rubrique, ne pas faire de demi-mesure: on affiche tout ou rien selon que l'on est en interface complète ou non.
parent c5b61df9
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+2 −10
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -91,7 +91,9 @@ function articles_affiche($id_article, $row, $cherche_auteur, $ids, $cherche_mot
 // chargement prealable des fonctions produisant des formulaires

	$dater = charger_fonction('dater', 'inc');
	$editer_mot = charger_fonction('editer_mot', 'inc');
	$editer_auteurs = charger_fonction('editer_auteurs', 'inc');
	$traduction = charger_fonction('referencer_traduction', 'inc');

	if ($flag_editable AND ($spip_display != 4)) 
		$iconifier = charger_fonction('iconifier', 'inc');
@@ -101,16 +103,6 @@ function articles_affiche($id_article, $row, $cherche_auteur, $ids, $cherche_mot
		$instituer_article = charger_fonction('instituer_article', 'inc');
	else $instituer_article ='';

	if ($options == 'avancees' AND $GLOBALS['meta']["articles_mots"] != 'non')
		$editer_mot = charger_fonction('editer_mot', 'inc');
	else $editer_mot = '';

	if (($GLOBALS['meta']['multi_articles'] == 'oui')
	OR (($GLOBALS['meta']['multi_rubriques'] == 'oui') 
	AND ($GLOBALS['meta']['gerer_trad'] == 'oui'))) 
		$traduction = charger_fonction('referencer_traduction', 'inc');
	else $traduction ='';

	$res = debut_gauche('accueil',true)

	.	boite_info_articles($id_article, $statut_article, $visites, $id_version)
+2 −5
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -127,11 +127,8 @@ function afficher_breves_voir($id_breve, $changer_lang, $cherche_mot, $select_gr
		}
	}

	if ($GLOBALS['meta']["articles_mots"]!='non' AND $flag_editable AND $options == 'avancees') {
	$f = charger_fonction('editer_mot', 'inc');
	echo $f('breve', $id_breve, $cherche_mot, $select_groupe, $flag_editable);
	}


	//
	// Langue de la breve
+1 −1
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -96,7 +96,7 @@ function exec_naviguer_dist()
	  }

/// Mots-cles
	    if ($GLOBALS['meta']["articles_mots"] != 'non' AND $id_rubrique > 0) {
	    if ($id_rubrique > 0) {
	      $f = charger_fonction('editer_mot', 'inc');
	      echo "\n<p>",
		$f('rubrique', $id_rubrique,  $cherche_mot,  $select_groupe, $flag_editable);
+4 −5
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -331,10 +331,9 @@ if ($flag_editable AND ($options == 'avancees' OR $statut == 'publie')) {
}
 echo "\n";

if ($flag_editable AND $options == 'avancees') {
 $f = charger_fonction('editer_mot', 'inc');
 echo $f('syndic', $id_syndic,  $cherche_mot,  $select_groupe, $flag_editable);
}

 echo pipeline('affiche_milieu',array('args'=>array('exec'=>'sites','id_syndic'=>$id_syndic),'data'=>''));

if ($flag_administrable) {
+5 −2
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -16,7 +16,10 @@ include_spip('inc/actions');

// http://doc.spip.org/@formulaire_mots
function inc_editer_mot_dist($objet, $id_objet, $cherche_mot, $select_groupe, $flag) {
	global $connect_statut, $spip_lang_rtl, $spip_lang_right, $spip_lang;
	global $options, $connect_statut, $spip_lang_rtl, $spip_lang_right, $spip_lang;

	if (!($options == 'avancees' AND $GLOBALS['meta']["articles_mots"] != 'non'))
		return '';

	$visible = ($cherche_mot OR ($flag === 'ajax'));

@@ -160,7 +163,7 @@ function recherche_mot_cle($cherche_mots, $id_groupe, $objet, $id_objet, $table,
// http://doc.spip.org/@afficher_mots_cles
function afficher_mots_cles($flag_editable, $objet, $id_objet, $table, $table_id, $url_base, $visible)
{
	global $spip_lang_rtl, $spip_lang, $spip_lang_right, $connect_statut, $connect_toutes_rubriques, $options;
	global $spip_lang_rtl, $spip_lang, $spip_lang_right, $connect_statut, $connect_toutes_rubriques;

	$les_mots = array();
	$id_groupes_vus = array();
Chargement en cours