156,6 → 156,7 |
$organes = $this->getOrganes(); |
$nnr = $this->nomCourant->getNnr(); |
$infosOrganes = $this->images->getInfosMeilleuresImagesParTag($nnr, array_keys($organes), Eflore::PROTOCOLE_CAPITALISATION, 6, 'CRX2S'); |
|
$vide = true; |
foreach ($infosOrganes as $tag => $organe) { |
$organes[$tag] = $organe; |
170,6 → 171,7 |
if ($vide) { |
$organes = array(); |
} |
|
return $organes; |
} |
|
233,6 → 235,7 |
$infosImg['auteur.id'] = $img['auteur.id']; |
if ($projet == "cel") { |
$infosImg['urlDetailImg'] = $this->appUrls->obtenirUrlPopUpIllustrations($idImg); |
$infosImg['urlImgGrandFormat'] = $this->obtenirUrlImageGrandFormatCel($idImg); |
$infosImg['urlContact'] = $this->appUrls->obtenirUrlPopUpContact($img['auteur.id'], $idImg); |
$infosImg['urlProfil'] = $this->appUrls->obtenirUrlProfilAnnuaire($img['auteur.id']); |
$infosImg['urlMauvaiseIdentification'] = $this->appUrls->obtenirUrlMauvaiseIdentification($img['observation.id']); |
241,6 → 244,16 |
} |
} |
|
private function obtenirUrlImageGrandFormatCel($id, $format = "X3L") { |
$tpl = Config::get('baseUrlImageCelTpl'); |
return sprintf($tpl, str_pad($id, 9, '0', STR_PAD_LEFT).$format.'.jpg'); |
} |
|
// XXX: public static pour ĂȘtre injectĂ© dans le squelette d'entete |
public static function obtenirTemplateUrlImageGrandFormatOrganes($format = "X3L") { |
return $tpl = sprintf(Config::get('baseUrlImageCelTpl').$format.'.jpg', '{id_image}'); |
} |
|
private function formaterMetaPhotos($projet) { |
$this->meta->setProjet($projet); |
$meta = $this->meta->getMetaDonnees(); |