Code Duplication    Length = 7-9 lines in 5 locations

ecrire/inc/afficher_objets.php 1 location

@@ 245-251 (lines=7) @@
242
		if ($chercher_logo) {
243
			if ($chercher_logo !== true
244
			    OR $chercher_logo = charger_fonction_logo_if())
245
			  if ($logo = $chercher_logo($id_objet, $primary, 'on')) {
246
				list($fid, $dir, $nom, $format) = $logo;
247
				include_spip('inc/filtres_images_mini');
248
				$logo = image_reduire("<img src='$fid' alt='' />", 26, 20);
249
				if ($logo)
250
					$flogo = "\n<span style='float: $spip_lang_right; margin-top: -2px; margin-bottom: -2px;'>$logo</span>";
251
			  }
252
		}
253
		if ($titre) {
254
			$titre = "<a href='"

ecrire/inc/forum.php 1 location

@@ 481-487 (lines=7) @@
478
	} else {
479
		if ($id_auteur AND $voir_logo) {
480
			$chercher_logo = charger_fonction('chercher_logo', 'inc');
481
			if ($logo = $chercher_logo($id_auteur, 'id_auteur', 'on')) {
482
				list($fid, $dir, $nom, $format) = $logo;
483
				include_spip('inc/filtres_images_mini');
484
				$logo = image_reduire("<img src='$fid' alt='' />", 48, 48);
485
				if ($logo)
486
					$titre_boite = "\n<div style='$voir_logo'>$logo</div>$titre_boite" ;
487
			}
488
		}
489
490

ecrire/inc/informer.php 1 location

@@ 38-44 (lines=7) @@
35
	if ($type == "rubrique" AND $spip_display != 1 AND $spip_display!=4 AND isset($GLOBALS['meta']['image_process']))
36
	  if ($GLOBALS['meta']['image_process'] != "non") {
37
		$chercher_logo = charger_fonction('chercher_logo', 'inc');
38
		if ($res = $chercher_logo($id, 'id_rubrique', 'on'))  {
39
			list($fid, $dir, $nom, $format) = $res;
40
			include_spip('inc/filtres_images_mini');
41
			$res = image_reduire("<img src='$fid' alt='' />", 100, 48);
42
			if ($res)
43
				$res =  "<div style='float: $spip_lang_right; margin-$spip_lang_right: -5px; margin-top: -5px;'>$res</div>";
44
		}
45
	}
46
47
	$rac = htmlentities($rac);

ecrire/inc/informer_auteur.php 1 location

@@ 45-51 (lines=7) @@
42
	$res = '';
43
	if ($spip_display != 1 AND $spip_display!=4 AND $GLOBALS['meta']['image_process'] != "non") {
44
		$chercher_logo = charger_fonction('chercher_logo', 'inc');
45
		if ($res = $chercher_logo($id, 'id_auteur', 'on'))  {
46
			list($fid, $dir, $n, $format) = $res;
47
			include_spip('inc/filtres_images_mini');
48
			$res = image_reduire("<img src='$fid' alt='' />", 100, 48);
49
			if ($res)
50
				$res =  "<div style='float: $spip_lang_right; margin-$spip_lang_right: -5px; margin-top: -5px;'>$res</div>";
51
		}
52
	}
53
54
	return "<div class='informer-auteur'>"

ecrire/inc/presenter_enfants.php 1 location

@@ 46-54 (lines=9) @@
43
			$lang_dir = lang_dir($row['lang']);
44
			$descriptif=propre($row['descriptif']);
45
46
			if ($voir_logo) {
47
				if ($logo = $chercher_logo($id_rubrique, 'id_rubrique', 'on')) {
48
					list($fid, $dir, $nom, $format) = $logo;
49
					include_spip('inc/filtres_images_mini');
50
					$logo = image_reduire("<img src='$fid' alt='' />", 48, 36);
51
					if ($logo)
52
						$logo =  "\n<div style='$voir_logo'>$logo</div>";
53
				}
54
			}
55
56
			$lib_bouton = (!acces_restreint_rubrique($id_rubrique) ? "" :
57
			   http_img_pack("admin-12.gif", '', " width='12' height='12'", _T('image_administrer_rubrique'))) .