Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1165 → Rev 1166

/trunk/modules/fiche/squelettes/fiche_illustrations.tpl.html
29,7 → 29,7
<? if (empty($organes) == false) :?>
<ul class="liste-illustrations">
<? foreach($organes as $tag => $image) : ?>
<? if ($image != null) : ?>
<? if ($image && $image['binaire.href']) : ?>
<li class="organe-moyen">
<?= ucfirst($tag); ?>
<a class="lien-image-cel" href="popup.php?module=popup-illustrations&action=fiche&referentiel=bdtfx&id=<?= $image['id_image'] ?>">
/trunk/modules/fiche/formateurs/Illustrations.php
199,9 → 199,10
public function getPhotosCaracteresIdentification() {
$caracteres = array();
$nnr = $this->nomCourant->getNnr();
$infosCaracteres = $this->images->getInfosMeilleuresImagesParTag($nnr, array_keys($this->getOrganes()), Eflore::PROTOCOLE_CARACTERES, 3);
// pas de tag: on cherche les mieux votées pour ce protocole sans tenir compte des tags
$infosCaracteres = $this->images->getInfosMeilleuresImagesParTag($nnr, '', Eflore::PROTOCOLE_CARACTERES, 3);
if (! empty($infosCaracteres) && ! empty($infosCaracteres[''])) { // le tag est vide, ici
$caracteres = $infosCaracteres;
$caracteres = $infosCaracteres[''];
}
$this->donnees['caracteres'] = $caracteres;
}